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'
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.