Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131252 - net-analyzer/ethereal-0.99.00 fails with LDFLAGS="-Wl,--as-needed"
Summary: net-analyzer/ethereal-0.99.00 fails with LDFLAGS="-Wl,--as-needed"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current 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:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2006-04-25 11:59 UTC by Hanno Böck
Modified: 2006-04-25 19:53 UTC (History)
1 user (show)

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


Attachments
ethereal-0.99.0-as-needed.patch (ethereal-0.99.0-as-needed.patch,882 bytes, patch)
2006-04-25 15:08 UTC, Mike Auty (RETIRED)
Details | Diff
ethereal-0.99.0-as-needed.patch (ethereal-0.99.0-as-needed.patch,917 bytes, patch)
2006-04-25 17:38 UTC, Daniel Black (RETIRED)
Details | Diff
ethereal-0.99.0-as-needed.patch (ethereal-0.99.0-as-needed.patch,921 bytes, patch)
2006-04-25 17:42 UTC, Daniel Black (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Böck gentoo-dev 2006-04-25 11:59:14 UTC
angocairo-1.0.so -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib -L/usr/lib/gcc/i686-pc-linux-gnu/../../../i686-pc-linux-gnu/lib /usr/lib/libpangoft2-1.0.so /usr/lib/libpango-1.0.so -lm /usr/lib/libcairo.so /usr/lib/libXrender.so /usr/lib/libX11.so /usr/lib/libXau.so /usr/lib/libXdmcp.so -lpng12 /usr/lib/libglitz.so /usr/lib/libfontconfig.so /usr/lib/libfreetype.so /usr/lib/libexpat.so /usr/lib/gcc/i686-pc-linux-gnu/4.1.0/libstdc++.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libgthread-2.0.so -lpthread /usr/lib/libglib-2.0.so -L/usr/lib /usr/lib/libgnutls.so /usr/lib/libgcrypt.so -lnsl /usr/lib/libgpg-error.so -lz
epan/.libs/libethereal.so: undefined reference to `gcry_mpi_print'
epan/.libs/libethereal.so: undefined reference to `gcry_md_get_algo_dlen'
epan/.libs/libethereal.so: undefined reference to `gcry_mpi_scan'
epan/.libs/libethereal.so: undefined reference to `gcry_md_close'
epan/.libs/libethereal.so: undefined reference to `gcry_md_read'
epan/.libs/libethereal.so: undefined reference to `gcry_md_setkey'
epan/.libs/libethereal.so: undefined reference to `gcry_cipher_get_algo_keylen'
epan/.libs/libethereal.so: undefined reference to `gnutls_global_init'
epan/.libs/libethereal.so: undefined reference to `gcry_cipher_get_algo_blklen'
epan/.libs/libethereal.so: undefined reference to `gnutls_x509_privkey_export_rsa_raw'
epan/.libs/libethereal.so: undefined reference to `gcry_sexp_build'
epan/.libs/libethereal.so: undefined reference to `gcry_sexp_nth_mpi'
epan/.libs/libethereal.so: undefined reference to `gcry_md_write'
epan/.libs/libethereal.so: undefined reference to `gcry_strsource'
epan/.libs/libethereal.so: undefined reference to `gcry_cipher_open'
epan/.libs/libethereal.so: undefined reference to `gcry_cipher_ctl'
epan/.libs/libethereal.so: undefined reference to `gnutls_x509_privkey_init'
epan/.libs/libethereal.so: undefined reference to `gnutls_x509_privkey_import'
epan/.libs/libethereal.so: undefined reference to `gcry_md_get_algo'
epan/.libs/libethereal.so: undefined reference to `gcry_pk_decrypt'
epan/.libs/libethereal.so: undefined reference to `gcry_md_open'
epan/.libs/libethereal.so: undefined reference to `gnutls_check_version'
epan/.libs/libethereal.so: undefined reference to `gcry_sexp_release'
epan/.libs/libethereal.so: undefined reference to `gcry_cipher_decrypt'
epan/.libs/libethereal.so: undefined reference to `gcry_md_map_name'
epan/.libs/libethereal.so: undefined reference to `gcry_mpi_release'
epan/.libs/libethereal.so: undefined reference to `gcry_cipher_map_name'
epan/.libs/libethereal.so: undefined reference to `gcry_strerror'
Comment 1 Mike Auty (RETIRED) gentoo-dev 2006-04-25 15:08:49 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:)
Comment 2 Mike Auty (RETIRED) gentoo-dev 2006-04-25 15:11:35 UTC
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
Comment 3 Daniel Black (RETIRED) gentoo-dev 2006-04-25 15:41:10 UTC
FYI I'm looking into this.

Mike - thanks for the patch.
Comment 4 Hanno Böck gentoo-dev 2006-04-25 16:03:12 UTC
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'
Comment 5 Daniel Black (RETIRED) gentoo-dev 2006-04-25 16:52:39 UTC
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.
Comment 6 Daniel Black (RETIRED) gentoo-dev 2006-04-25 17:37:28 UTC
Looking at ref URL i've modified the patch to include -lm at the end (around the bottom) and a few other libs.
Comment 7 Daniel Black (RETIRED) gentoo-dev 2006-04-25 17:38:40 UTC
Created attachment 85506 [details, diff]
ethereal-0.99.0-as-needed.patch

comments appreciated.
Comment 8 Daniel Black (RETIRED) gentoo-dev 2006-04-25 17:42:45 UTC
Created attachment 85507 [details, diff]
ethereal-0.99.0-as-needed.patch
Comment 9 Daniel Black (RETIRED) gentoo-dev 2006-04-25 19:53:01 UTC
commited. Thanks.