On Sat, 20 Aug 2005, Martin Waitz wrote: [...] > previously, it couldn't find cln-config, because libcln-dev was missing. > now it does, but it can't compile a test program. > > could you please send me the config.log from your machine? > > Richard: do you have any idea?
CLN's autoconf macro collection cln/m4/gmp.m4 contains a macro called CL_GMP_CHECK that basically defines $LIBS=-lgmp. Invoking `cln-config --libs` returns that variable. But you cannot link against it since libgmp.so (provided by libgmp3-dev package) is missing, only libgmp.so.3 is there (provided by libgmp3c2). This has never been spotted before because all other packages using cln seem to build-depend on libgmp3-dev, in addition to libcln-dev. So, who's wrong? Can I safely omit -lgmp from the output of `cln-config --libs`? I'm inclined to say no, because generally, I cannot assume that -lcln implies -lgmp. The library libcln.so.x.y.z may depend on a Linux ELF system on libgmp.so.3, but that might not be true on other Unix systems. After all, that is what `cln-config --libs` is all about! Maybe, `cln-config --libs` could be improved. But it would have to take into account situations like configure --disable-shared. This is because a libcln.a library doesn't bring a linker dependency on libgmp.a. :-( Lacking a better analysis how `cln-config --libs` could be improved, I suggest to add libgmp3-dev to qalculate's bulid-depend line. Regards -richy. -- .''`. Richard B. Kreckel : :' : <[EMAIL PROTECTED]> `. `' <[EMAIL PROTECTED]> `- <http://www.ginac.de/~kreckel/> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]