This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Wireshark GTK Compilation error

1

I am working to port wireshark(1.6.4) to iOS, and a am getting a GTK compilation error when running the configure script. It seems that the GTK version is undetermined as justified by these lines in the config.log file

configure:19423: gcc -o conftest -no-cpp-precomp -D_U_="__attribute__((unused))" -g -O2 -Wall -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith -Wno-pointer-sign -Wcast-align -Wformat-security -I/usr/local/include   -I/usr/local/include -Wl,-search_paths_first  -L/usr/local/lib conftest.c   >&5
Undefined symbols:
  "_gtk_micro_version", referenced from:
      _gtk_micro_version$non_lazy_ptr in ccxkEWm4.o
  "_gtk_major_version", referenced from:
      _gtk_major_version$non_lazy_ptr in ccxkEWm4.o
  "_gtk_minor_version", referenced from:
      _gtk_minor_version$non_lazy_ptr in ccxkEWm4.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Full config.log can be found at: http://ininjas.com/trcx/config.log

The GTK developers said this is because wireshark is not using "PKG_CHECK_MODULES()" but instead "AM_PATH_GTK()". My question is twofold:

1) How could I bypass this error? For some reason the configure script does not seem to recognize the --disable-gtktest flag. I do not think this is the way to go as wireshark it's self may reference these variables. What would be the best way to patch this?

2) What is the best way to get this updated for future releases to use PKG_CHECK_MODULES(). The GTK developers seemed to infer that this is the officially supported way to check the GTK version.

Any advice is appreciated.

asked 19 Dec '11, 08:19

Trcx's gravatar image

Trcx
16112
accept rate: 0%


One Answer:

0
  1. If the GTK+ developers say PKG_CHECK_MODULES should be used, rather than AM_PATH_GTK, the best way to patch this would probably be to change configure.in to use PKG_CHECK_MODULES, run the autogen.sh script, and re-run the configure script.
  2. The best way to get this updated for future releases would be to file a bug at the Wireshark Bugzilla.
  3. While I'm at it, you might want to work from SVN rather than a source tarball, if you're not already working from SVN, if you're doing that much development work. (Presumably this is for jailbroken iOS machines....)

answered 19 Dec '11, 14:17

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%

edited 19 Dec '11, 14:18