This is our old Q&A Site. Please post any new questions and answers at

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:

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

accept rate: 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 to use PKG_CHECK_MODULES, run the 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....)
permanent link

answered 19 Dec '11, 14:17

Guy%20Harris's gravatar image

Guy Harris ♦♦
accept rate: 19%

edited 19 Dec '11, 14:18

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 19 Dec '11, 08:19

question was seen: 3,248 times

last updated: 19 Dec '11, 14:18

p​o​w​e​r​e​d by O​S​Q​A