Closed grokkaine closed 7 years ago
Hmm... Well normally with this sort of error I would have thought that it was due to the development version of zlib not being installed, but configure should pick that up. You should just double check that manually though to make sure that there is libz.so
in /usr/lib
. Another possibility is the order of the linker flags that is messing things up, for example the linker flags should be at the end of the line after the local archives.
/bin/bash ../../libtool --tag=CXX --mode=link g++ -I/usr/include -I/usr/include/xercesc -pedantic -Wall -g -O2 -L/usr/lib -o crass crass.o libcrass.a ../../src/aho-corasick/libacism.a -lz -lxerces-c
This doesn't seem to be an issue with the versions of autoconf, automake, libtool, and gcc that I'm using but I am a few versions behind you. maybe something has changed.
True, if I run this line that threw my error from the crass source directory it seems to work, any insight on how to set this as part of the autotools though, so that my build process would continue?
$ g++ -I/usr/include -I/usr/include/xercesc -pedantic -Wall -g -O2 -o crass crass.o -L/usr/lib libcrass.a ../../src/aho-corasick/libacism.a -lz -lxerces-c
UPDATE:
Well I managed to somehow fix it by running the badly configured line with the above (making sure to be in the right directory). and then I just had the idea of running make again, it seemed that automake considered that step passed and just went forward.
Still, it would be nice to find an answer on how to change the order with the autotools!
I really have no idea why it is ordering things this way; autotools is a mystery to me.
BTW I think I've fixed the problem with the latest commit. Just needed to change how the linker variables were called in autotools
I had Crass installed and running on my Ubuntu 14.04 LTS laptop with gcc/g++ 4.8 and I wanted to install it on my workstation as well. The workstation runs the Ubuntu 16.04 LTS which has gcc 5* as default so after meeting the error I thought I should regress. I tried both gcc/g++ 4.7 and 4.8 with no luck. I still get the -lz related error bellow. The ./config tests list -lz as fine too. It is looking more like a code error at this point. Separately libcrispr installs, in case you're wondering. Do you have some clue?
(same for gcc of course)
As I said, -lz test checks out in ./configure. At make I get this: