Summary: | net-analyzer/ethereal-0.99.00 fails with LDFLAGS="-Wl,--as-needed" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Hanno Böck <hanno> |
Component: | Current packages | Assignee: | Gentoo Netmon project <netmon> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ikelos |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://www.gentoo.org/proj/en/qa/asneeded.xml | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 129413 | ||
Attachments: |
ethereal-0.99.0-as-needed.patch
ethereal-0.99.0-as-needed.patch ethereal-0.99.0-as-needed.patch |
Description
Hanno Böck
2006-04-25 11:59:14 UTC
Created attachment 85493 [details, diff]
ethereal-0.99.0-as-needed.patch
Hanno, please could you test out this patch and see if it fixes your problem. I had a very similar problem, except that it only manifest itself when you ran ethereal, not during compilation. Anyway, this patch incorporates the 0.10.14-asneeded.patch, so you no longer need that one (nor will they apply successfully together). Hope this helps... 5:)
I forgot to mention, if this doesn't fix your problems, could you please post your use flags (or some emerge --info output). The use flags that I've successfully compiled this with are: gtk ipv6 kerberos snmp ssl -adns -threads FYI I'm looking into this. Mike - thanks for the patch. With your patch the error message changed, seems to be -lm-problem now. My use-flags for ethereal: gtk ipv6 ssl -adns -kerberos -snmp -threads (cd .libs && i686-pc-linux-gnu-gcc -O -march=pentium-m -fomit-frame-pointer -pipe -c -fno-builtin "tetherealS.c") rm -f .libs/tetherealS.c .libs/tethereal.nm .libs/tethereal.nmS .libs/tethereal.nmT i686-pc-linux-gnu-gcc -DINET6 "-D_U_=__attribute__((unused))" -Wall -Wpointer-arith -W -O -march=pentium-m -fomit-frame-pointer -pipe -I/usr/local/include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wl,-O1 -Wl,--as-needed -o .libs/tethereal capture-pcap-util-unix.o capture_errs.o capture-pcap-util.o capture_stop_conditions.o capture_ui_utils.o cfile.o clopts_common.o conditions.o disabled_protos.o packet-range.o print.o ps.o pcapio.o ringbuffer.o timestats.o util.o version_info.o tap-afpstat.o tap-ansi_astat.o tap-bootpstat.o tap-dcerpcstat.o tap-funnel.o tap-gsm_astat.o tap-h225counter.o tap-h225rassrt.o tap-httpstat.o tap-iostat.o tap-iousers.o tap-mgcpstat.o tap-protocolinfo.o tap-protohierstat.o tap-rpcstat.o tap-rpcprogs.o tap-sctpchunkstat.o tap-sipstat.o tap-smbsids.o tap-smbstat.o tap-stats_tree.o tap-wspstat.o capture_opts.o capture_loop.o tempfile.o tethereal-tap-register.o tethereal.o .libs/tetherealS.o -Wl,--export-dynamic -Wl,--export-dynamic -L/usr/local/lib wiretap/.libs/libwiretap.so epan/.libs/libethereal.so -L/usr/lib -lcrypto /usr/lib/libpcre.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -lm -lpcap /usr/lib/libgnutls.so /usr/lib/libgcrypt.so -lnsl /usr/lib/libgpg-error.so -lz epan/.libs/libethereal.so: undefined reference to `ceil' epan/.libs/libethereal.so: undefined reference to `floor' epan/.libs/libethereal.so: undefined reference to `pow' epan/.libs/libethereal.so: undefined reference to `exp' net-analyzer/ethereal-0.99.0 USE="gtk ipv6 kerberos -adns -snmp -ssl -threads" with attached patch: $ ethereal ethereal: symbol lookup error: /usr/lib/libethereal.so.0: undefined symbol: krb5_c_decrypt guessing I'll just add the kerberos libs in the same manner. I'm not sure what to do about -lm. Looking at ref URL i've modified the patch to include -lm at the end (around the bottom) and a few other libs. Created attachment 85506 [details, diff]
ethereal-0.99.0-as-needed.patch
comments appreciated.
Created attachment 85507 [details, diff]
ethereal-0.99.0-as-needed.patch
commited. Thanks. |