Hi Alexei!

Alexei Sheplyakov wrote:

I think libcln-dev should depend on libgmp3-dev, since the static
library (libcln.a) is useless without GMP static library (libgmp.a).

I don't think so.

$ g++ -O e.cc -o e /usr/lib/libcln.a -lgmp
$ ldd e
       libgmp.so.3 => /usr/lib/libgmp.so.3 (0xb7f8f000)
       libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xb7ed4000)
       libm.so.6 => /lib/tls/libm.so.6 (0xb7eb2000)
       libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7ea9000)
       libc.so.6 => /lib/tls/libc.so.6 (0xb7d74000)
       /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7fc9000)

works just fine, doesn't it?

On the other hand, libgmp3-dev is not necessary for dynamic linking
(because CLN does not re-export GMP functions via public headers):

$ g++ /usr/share/doc/libcln-dev/examples/e.cc -lcln

works just fine (no matter if libgmp3-dev is installed or not).

Right, and that's intentional.

But cln-config insists on linking with libgmp.so (BTW this is bug on
its own, for more details see
<http://lists.debian.org/debian-devel-announce/2005/11/msg00016.html>),
thus linker will fail unless libgmp3-dev is installed:

$ g++ `cln-config --libs` `cln-config --cppflags` /usr/share/doc/libcln-dev/examples/e.cc /usr/bin/ld: cannot find -lgmp

Hmm, I see. That's a problem. Can you recommend a patch?

Cheers
 -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]

Reply via email to