I'm reporting this bug because the package in summary breaks when forcing --as-needed on through spec files (check out http://blog.flameeyes.eu/2008/11/14/problems-and-mitigation-strategies-for-as-needed for details). Check the attached build log. Thanks, Diego
Created attachment 172674 [details] Build log for libnasl
<snip> i686-pc-linux-gnu-gcc -pipe -O2 -pipe `sh ./cflags` -I. -I/var/tmp/portage/net-analyzer/libnasl-2.2.9/work/libnasl/include -o nasl -DVERSION=\"2.2.9\" nasl.c nasl_packet_forgery.o nasl_socket.o nasl_crypto.o nasl_crypto2.o nasl_http.o nasl_host.o nasl_text_utils.o nasl_nessusd_glue.o nasl_misc_funcs.o nasl_cmd_exec.o capture_packet.o nasl_grammar.tab.o nasl_tree.o nasl_var.o exec.o lint.o nasl_lex_ctxt.o nasl_func.o nasl_init.o strutils.o regex.o lfind.o preparse.o nasl_server.o nasl_debug.o -lrpcsvc `/usr/bin/nessus-config --libs` /usr/lib/libnessus.so: undefined reference to `SSL_connect' </snip> but `nessus-config --libs` is working fine here: $ nessus-config --libs -L/usr/lib -lnessus -lhosts_gatherer -lpcap-nessus -lutil -lnsl -lresolv -L/usr/lib/lib -lssl -lcrypto -ldl and libnasl doesn't fail to build, so I it's not clear from the provided log why it doesn't work for you. please provide a build.log, config.log of nessus-libraries, and likely also /usr/bin/nessus-config script, as well as nessus-config --libs output here please.
The build log will have to wait because the tinderbox is resetting to tackel ossl1 right now. The output of --libs doesn't count, the problem is whether libnessus.so has a NEEDED line toward libssl or not.
(In reply to comment #3) > The output of --libs doesn't count, the problem is whether libnessus.so has a > NEEDED line toward libssl or not. ah, yes. of course. + 01 Jul 2010; Samuli Suominen <ssuominen@gentoo.org> + nessus-libraries-2.2.9.ebuild, + +files/nessus-libraries-2.2.9-asneeded.patch: + Link libnessus.so to -lcrypto and -lssl wrt #247931 by Diego E. Pettenò.
Needs libpcap as well.
Created attachment 239015 [details] Build log for nessus-core
*** Bug 342839 has been marked as a duplicate of this bug. ***
+*nessus-libraries-2.2.9-r1 (20 Apr 2011) + + 20 Apr 2011; Justin Lecher <jlec@gentoo.org> + +nessus-libraries-2.2.9-r1.ebuild, + +files/nessus-libraries-2.2.9-linking.patch: + Respecting LDFLAGS, linking correctly, #247931 & #343339; More config options + added +