Dear Niels, thanks for your immediate answer. Here is what I found on 3 of the failing tests (dsa-keygen-test does not failing, anyway the result is the same)..
zaamus@zaamuspc:~/Dependencies/nettle-2.7.1$ LD_LIBRARY_PATH=.lib ldd testsuite/ecc-mul-g-test linux-gate.so.1 => (0x40022000) libhogweed.so.2 => .lib/libhogweed.so.2 (0x40026000) libnettle.so.4 => .lib/libnettle.so.4 (0x40054000) libgmp.so.10 => /usr/lib/i386-linux-gnu/libgmp.so.10 (0x400a5000) libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0x40124000) /lib/ld-linux.so.2 (0x40000000) zaamus@zaamuspc:~/Dependencies/nettle-2.7.1$ LD_LIBRARY_PATH=.lib ldd testsuite/ecdsa-sign-test linux-gate.so.1 => (0x40022000) libhogweed.so.2 => .lib/libhogweed.so.2 (0x40026000) libnettle.so.4 => .lib/libnettle.so.4 (0x40054000) libgmp.so.10 => /usr/lib/i386-linux-gnu/libgmp.so.10 (0x400a5000) libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0x40124000) /lib/ld-linux.so.2 (0x40000000) zaamus@zaamuspc:~/Dependencies/nettle-2.7.1$ LD_LIBRARY_PATH=.lib ldd testsuite/ecc-mul-a-test linux-gate.so.1 => (0x40022000) libhogweed.so.2 => .lib/libhogweed.so.2 (0x40026000) libnettle.so.4 => .lib/libnettle.so.4 (0x40054000) libgmp.so.10 => /usr/lib/i386-linux-gnu/libgmp.so.10 (0x400a5000) libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0x40124000) /lib/ld-linux.so.2 (0x40000000)
Il 2014-11-09 12:22 nisse@lysator.liu.se ha scritto:
braga Vittorio.Braga@roma2.infn.it writes:
I am triyng to install nettle2.7.1 (because I want to install gnutls-cli but it doesn't support nettle3.0) on my
Ubuntu 12.04 i686 architecture
PASS: dsa-keygen ./ecc-mod-test: symbol lookup error: ../.lib/libhogweed.so.2: undefined symbol: __gmpz_limbs_read
[...]
I have libgcrypt1.6.2, libgpg-error1.17, m4 macro processor and gmp6.0.0 installed.
Note that libgcrypt and libgpg-error are not used by nettle.
Library lgmp is correctly found when I compile some random c source. Can you help me? Do you need other information?
It looks like you found gmp-6.0 header files, but link with an older version of gmp at runtime.
Can you try ldd on some of the failing test programs? E.g.,
LD_LIBRARY_PATH=.lib ldd testsuite/dsa-keygen-test
Regards, /Niels