Wireshark-bugs: [Wireshark-bugs] [Bug 5800] New: net-analyzer/wireshark fails to build with net-
Date: Fri, 1 Apr 2011 09:48:32 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5800

           Summary: net-analyzer/wireshark fails to build with
                    net-libs/gnutls[nettle]
           Product: Wireshark
           Version: 1.4.4
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: pva@xxxxxxxxxx


Build Information:
build issue
--
GnuTLS can be built to use libnettle instead of libgrcypt as crypto library.
This breaks assumptions like in ./epan/dissectors/packet-ssl-utils.c :

#ifdef HAVE_LIBGNUTLS
...

        err_str = gcry_strerror(err);
        err_src = gcry_strsource(err);

and this build fails in case --with-gnutls --without-gcrypt was provided to
./configure and build fails with:

libtool: link: i686-pc-linux-gnu-gcc -DINET6 "-D_U_=__attribute__((unused))"
-O2 -pipe -Wall -W -Wextra -Wdeclaration-after-statement -Wendif-labels
-Wpointer-arith -Wno-pointer-sign -Warray-bounds -Wcast-align -Wformat-security
-fexcess-precision=fast -I/usr/include -I/usr/local/include -pthread
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include -Wl,-O1
-Wl,--as-needed -Wl,--hash-style=gnu -Wl,--as-needed -o .libs/tshark
tshark-capture-pcap-util-unix.o tshark-capture-pcap-util.o tshark-cfile.o
tshark-clopts_common.o tshark-disabled_protos.o tshark-packet-range.o
tshark-print.o tshark-ps.o tshark-sync_pipe_write.o tshark-timestats.o
tshark-util.o tshark-tap-megaco-common.o tshark-tap-rtp-common.o
tshark-version_info.o tshark-capture_errs.o tshark-capture_ifinfo.o
tshark-capture_ui_utils.o tshark-tap-afpstat.o tshark-tap-ansi_astat.o
tshark-tap-bootpstat.o tshark-tap-camelcounter.o tshark-tap-camelsrt.o
tshark-tap-comparestat.o tshark-tap-dcerpcstat.o tshark-tap-diameter-avp.o
tshark-tap-funnel.o tshark-tap-gsm_astat.o tshark-tap-h225counter.o
tshark-tap-h225rassrt.o tshark-tap-httpstat.o tshark-tap-iostat.o
tshark-tap-iousers.o tshark-tap-mgcpstat.o tshark-tap-megacostat.o
tshark-tap-protocolinfo.o tshark-tap-protohierstat.o tshark-tap-radiusstat.o
tshark-tap-rpcstat.o tshark-tap-rpcprogs.o tshark-tap-rtp.o
tshark-tap-sctpchunkstat.o tshark-tap-sipstat.o tshark-tap-smbsids.o
tshark-tap-smbstat.o tshark-tap-stats_tree.o tshark-tap-sv.o
tshark-tap-wspstat.o tshark-capture_opts.o tshark-capture_sync.o
tshark-tempfile.o tshark-tshark-tap-register.o tshark-tshark.o .libs/tsharkS.o
-Wl,--export-dynamic -pthread -Wl,--export-dynamic  -L/usr/lib -L/usr/local/lib
wiretap/.libs/libwiretap.so epan/.libs/libwireshark.so
wsutil/.libs/libwsutil.so -lpcre /usr/lib/libgmodule-2.0.so -lrt
/usr/lib/libglib-2.0.so -lm -lpcap /usr/lib/libgnutls.so -lz -pthread
epan/.libs/libwireshark.so: undefined reference to `gcry_md_map_name'
epan/.libs/libwireshark.so: undefined reference to `gcry_md_close'
epan/.libs/libwireshark.so: undefined reference to `gcry_cipher_setiv'
epan/.libs/libwireshark.so: undefined reference to
`gcry_cipher_get_algo_keylen'
epan/.libs/libwireshark.so: undefined reference to
`gcry_cipher_get_algo_blklen'
epan/.libs/libwireshark.so: undefined reference to `gcry_md_read'
epan/.libs/libwireshark.so: undefined reference to `gcry_pk_decrypt'
epan/.libs/libwireshark.so: undefined reference to `gcry_strsource'
epan/.libs/libwireshark.so: undefined reference to `gcry_sexp_sprint'
epan/.libs/libwireshark.so: undefined reference to `gcry_md_get_algo'
epan/.libs/libwireshark.so: undefined reference to `gcry_cipher_setkey'
epan/.libs/libwireshark.so: undefined reference to `gcry_cipher_map_name'
epan/.libs/libwireshark.so: undefined reference to `gcry_mpi_scan'
epan/.libs/libwireshark.so: undefined reference to `gcry_md_setkey'
epan/.libs/libwireshark.so: undefined reference to `gcry_md_get_algo_dlen'
epan/.libs/libwireshark.so: undefined reference to `gcry_sexp_release'
epan/.libs/libwireshark.so: undefined reference to `gcry_md_write'
epan/.libs/libwireshark.so: undefined reference to `gcry_strerror'
epan/.libs/libwireshark.so: undefined reference to `gcry_mpi_print'
epan/.libs/libwireshark.so: undefined reference to `gcry_cipher_open'
epan/.libs/libwireshark.so: undefined reference to `gcry_cipher_close'
epan/.libs/libwireshark.so: undefined reference to `gcry_cipher_decrypt'
epan/.libs/libwireshark.so: undefined reference to `gcry_sexp_build'
epan/.libs/libwireshark.so: undefined reference to `gcry_sexp_nth_mpi'
epan/.libs/libwireshark.so: undefined reference to `gcry_md_open'
epan/.libs/libwireshark.so: undefined reference to `gcry_mpi_release'

Full build log is provided at http://bugs.gentoo.org/show_bug.cgi?id=361315

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.