Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247931 - net-analyzer/nessus-libraries: breaks with forced --as-needed
Summary: net-analyzer/nessus-libraries: breaks with forced --as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL: http://www.gentoo.org/proj/en/qa/asne...
Whiteboard:
Keywords:
: 342839 (view as bug list)
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2008-11-21 12:18 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2011-04-20 07:17 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log for libnasl (net-analyzer:libnasl-2.2.9:20081121-080830.log,15.21 KB, text/plain)
2008-11-21 12:18 UTC, Diego Elio Pettenò (RETIRED)
Details
Build log for nessus-core (nessus-core-2.2.9:20100714-233655.log,17.99 KB, text/plain)
2010-07-16 08:13 UTC, Diego Elio Pettenò (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-21 12:18:04 UTC
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
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-21 12:18:32 UTC
Created attachment 172674 [details]
Build log for libnasl
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-07-01 13:19:29 UTC
<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.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-07-01 13:23:29 UTC
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.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-07-01 13:58:34 UTC
(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ò.

Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-07-16 08:13:06 UTC
Needs libpcap as well.
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-07-16 08:13:42 UTC
Created attachment 239015 [details]
Build log for nessus-core
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2010-10-26 22:48:00 UTC
*** Bug 342839 has been marked as a duplicate of this bug. ***
Comment 8 Justin Lecher (RETIRED) gentoo-dev 2011-04-20 07:17:20 UTC
+*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
+