braga <[email protected]> writes: >> Try rerunning nettle's ./configure as >> >> ./configure LDFLAGS="-L/usr/local/lib -Wl,rpath,/usr/local/lib" >> > > zaamus@zaamuspc:~/Dependencies/nettle-2.7.1$ ./configure > LDFLAGS="-L/usr/local/lib -Wl,rpath,/usr/local/lib" > checking build system type... i686-pc-linux-gnu > checking host system type... i686-pc-linux-gnu > checking for -R flag... using -Wl,-rpath, > Searching for libraries > checking /usr/local/lib/lib... not found > checking /usr/local/lib... added > checking /sw/local/lib... not found > checking /sw/lib... not found > checking /usr/gnu/lib... not found > checking /opt/gnu/lib... not found > checking /sw/gnu/lib... not found > checking /usr/freeware/lib... not found > checking /usr/pkg/lib... not found > checking for gcc... gcc > checking whether the C compiler works... no > configure: error: in `/home/zaamus/Dependencies/nettle-2.7.1': > configure: error: C compiler cannot create executables > See `config.log' for more details
Ok, then the flags I gave you aren't quite right. You have to follow the suggestion to look in config.log to see what went wrong. But I think I made a typo, it should probably be "-rpath", not "rpath". If this is confusing, you may also want to read up on how the runtime linker locates libraries. >> Or as a quick test to see if this really is the problem, try setting >> LD_LIBRARY_PATH, and run >> >> LD_LIBRARY_PATH=.lib:/usr/local/lib ldd testsuite/ecc-mul-g-test >> LD_LIBRARY_PATH=.lib:/usr/local/lib ./testsuite/ecc-mul-g-test >> > > zaamus@zaamuspc:~/Dependencies/nettle-2.7.1$ > LD_LIBRARY_PATH=.lib:/usr/local/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/local/lib/libgmp.so.10 (0x40087000) > libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0x40119000) > /lib/ld-linux.so.2 (0x40000000) > zaamus@zaamuspc:~/Dependencies/nettle-2.7.1$ > LD_LIBRARY_PATH=.lib:/usr/local/lib ./testsuite/ecc-mul-g-test > zaamus@zaamuspc:~/Dependencies/nettle-2.7.1$ This indicates that your nettle build works fine, if you only get it to link with the right libgmp.so file at runtime (/usr/local/lib/libgmp.so.10 above). Regards, /Niels -- Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26. Internet email is subject to wholesale government surveillance. _______________________________________________ nettle-bugs mailing list [email protected] http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs
