Bug 100645 - Wireshark 0.99.2 does not compile without GNUTLS library
Summary: Wireshark 0.99.2 does not compile without GNUTLS library
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Joe Marcus Clarke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-21 06:10 UTC by Esa Karkkainen
Modified: 2006-07-23 18:42 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (959 bytes, patch)
2006-07-21 06:10 UTC, Esa Karkkainen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Esa Karkkainen 2006-07-21 06:10:15 UTC
It seems, at least to me, that wireshark 0.99.2 needs gnutls library, at least
in the build phase.

Please note that I've installed net/wireshark-lite port and resulting wireshark
works for me.

Fix: This patch makes gnutls dependecy explicit.
How-To-Repeat: # pkg_delete gnutls-1.4.1
# cd /usr/ports/net/wireshark-lite && make all
===>  Extracting for wireshark-lite-0.99.2
===>   wireshark-lite-0.99.2 depends on file: /usr/local/bin/perl5.8.8 - found
===>  Patching for wireshark-lite-0.99.2
===>   wireshark-lite-0.99.2 depends on file: /usr/local/bin/perl5.8.8 - found
===>  Applying FreeBSD patches for wireshark-lite-0.99.2
===>   wireshark-lite-0.99.2 depends on file: /usr/local/lib/libcrypto.so.5 - found
===>   wireshark-lite-0.99.2 depends on file: /usr/local/bin/python - found
===>   wireshark-lite-0.99.2 depends on file: /usr/local/bin/perl5.8.8 - found
===>   wireshark-lite-0.99.2 depends on file: /usr/local/bin/intltool-extract - found
===>   wireshark-lite-0.99.2 depends on executable: pkg-config - found
===>   wireshark-lite-0.99.2 depends on shared library: iconv.3 - found
===>   wireshark-lite-0.99.2 depends on shared library: atk-1.0.0 - found
===>   wireshark-lite-0.99.2 depends on shared library: glib-2.0.0 - found
===>   wireshark-lite-0.99.2 depends on shared library: gtk-x11-2.0.0 - found
===>   wireshark-lite-0.99.2 depends on shared library: pango-1.0.0 - found
===>   wireshark-lite-0.99.2 depends on shared library: X11.6 - found
===>  Configuring for wireshark-lite-0.99.2
===>  Building for wireshark-lite-0.99.2
[ lines deleted ]
epan/.libs/libwireshark.so: undefined reference to `gpg_strerror'
epan/.libs/libwireshark.so: undefined reference to `gcry_cipher_decrypt'
epan/.libs/libwireshark.so: undefined reference to `gcry_cipher_algo_name'
*** Error code 1

Stop in /usr/ports/net/wireshark-lite/work/wireshark-0.99.2.
*** Error code 1

Stop in /usr/ports/net/wireshark-lite/work/wireshark-0.99.2.
*** Error code 1

Stop in /usr/ports/net/wireshark-lite/work/wireshark-0.99.2.
*** Error code 1

Stop in /usr/ports/net/wireshark-lite.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-07-21 09:45:47 UTC
Responsible Changed
From-To: freebsd-ports-bugs->marcus

Over to maintainer
Comment 2 Joe Marcus Clarke freebsd_committer freebsd_triage 2006-07-23 07:15:09 UTC
State Changed
From-To: open->feedback

GnuTLS is not required for wireshark.  configure should do the right thing 
if it is not present.  I need to see the output for make configure as well 
as the resulting config.log to see why this did not happen in your case. 
Note: you will have to uninstall gnutls first.
Comment 3 Joe Marcus Clarke freebsd_committer freebsd_triage 2006-07-23 18:41:50 UTC
State Changed
From-To: feedback->closed

Okay, it looks like your problem is an out-of-date libgcrypt port.  If 
you force a rebuild of libgcrypt, you should also pull in libgpg-error 
which will satisfy all of the missing symbols.  I have modified 
wireshark to check for this dependency.