Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-users: [Wireshark-users] Compiling problems

From: "Dani M" <dmlegazpe@xxxxxxxxx>
Date: Thu, 3 Jul 2008 14:56:43 +0200
Hi all,

I have been trying to compile wireshark 1.0.1 (also 1.0.0 with the same problem) in an SLES9 SP3 linux machine
and I have this problem when running "make" command:


 /bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I./../.. -I./..  -I/usr/include  -I/usr/local/include '-DPLUGIN_DIR="/tsp/3rdParty/wireshark-1.0.1/lib/wireshark/plugins/1.0.0"'  -DINET6 -D_U_="__attribute__((unused))" -g -O2 -Wall -W -Wendif-labels -Wpointer-arith -I/usr/local/include -pthread -I/opt/gnome/include/gtk-2.0 -I/opt/gnome/lib/gtk-2.0/include -I/opt/gnome/include/atk-1.0 -I/opt/gnome/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include   -MT packet-pkcs12.lo -MD -MP -MF .deps/packet-pkcs12.Tpo -c -o packet-pkcs12.lo packet-pkcs12.c
 gcc -DHAVE_CONFIG_H -I. -I../.. -I./../.. -I./.. -I/usr/include -I/usr/local/include -DPLUGIN_DIR=\"/tsp/3rdParty/wireshark-1.0.1/lib/wireshark/plugins/1.0.0\" -DINET6 "-D_U_=__attribute__((unused))" -g -O2 -Wall -W -Wendif-labels -Wpointer-arith -I/usr/local/include -pthread -I/opt/gnome/include/gtk-2.0 -I/opt/gnome/lib/gtk-2.0/include -I/opt/gnome/include/atk-1.0 -I/opt/gnome/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -MT packet-pkcs12.lo -MD -MP -MF .deps/packet-pkcs12.Tpo -c packet-pkcs12.c  -fPIC -DPIC -o .libs/packet-pkcs12.o
packet-pkcs12-template.c: In function `PBE_decrypt_data':
packet-pkcs12-template.c:262: error: `GCRY_CIPHER_RFC2268_40' undeclared (first use in this function)
packet-pkcs12-template.c:262: error: (Each undeclared identifier is reported only once
packet-pkcs12-template.c:262: error: for each function it appears in.)
pkcs12.cnf: At top level:
pkcs12.cnf:226: warning: `dissect_AuthenticatedSafe_PDU' defined but not used
make[4]: *** [packet-pkcs12.lo] Error 1
make[4]: Leaving directory `/tsp/3rdParty/wireshark/wireshark-1.0.0/epan/dissectors'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/tsp/3rdParty/wireshark/wireshark-1.0.0/epan/dissectors'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tsp/3rdParty/wireshark/wireshark-1.0.0/epan'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tsp/3rdParty/wireshark/wireshark-1.0.0'
make: *** [all] Error 2



Making some research I have identified that the problem is when trying to compile something related to libgcrypt libraries.
If I configure the program with --with-gcrypt=[yes/no] option to NO it compiles and install without any problem.

Could anyone explain to me what that library is used for? the libgcrypt library installed in my system is libgcrypt-1.1.91-39.1.
It could be quite old for wireshark or something...

Best Regards.

dani/