what's the version of gtk?

hi,maybe my question is a little bit odd.

Today,I downloaded wireshark code via svn,when I ./configure the code,it report a error like this:

checking for GTK+ - version >= 2.4.0… no
*** Could not run GTK+ test program, checking why…
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error: GTK+ 2.4 or later isn’t available, so Wireshark can’t be compiled

I don’t know what’s wrong,or maybe the code has some promble?
I am expecting some expert can help me,I am reading the developer-guide of wireshark,maybe some one alse met the same promble.

On 07/02/2008 xiaoyang wrote:
> See the file config.log for the *** exact error that occured.

What does it say?

Uwe

the file is too long

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by wireshark configure 1.0.99, which was
generated by GNU Autoconf 2.61. Invocation command line was

$ ./configure --disable-gtk2

---------

Platform.

---------

hostname = linux-348i
uname -m = i686
uname -r = 2.6.25.5-1.1-pae
uname -s = Linux
uname -v = #1 SMP 2008-06-07 01:55:22 +0200

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/local/sbin
PATH: /root/bin
PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin/X11
PATH: /usr/X11R6/bin
PATH: /usr/games
PATH: /opt/kde3/bin
PATH: /usr/lib/jvm/jre/bin
PATH: /usr/lib/mit/bin
PATH: /usr/lib/mit/sbin
PATH: /usr/lib/qt3/bin

-----------

Core tests.

-----------

configure:2183: checking for a BSD-compatible install
configure:2239: result: /usr/bin/install -c
configure:2250: checking whether build environment is sane
configure:2293: result: yes
configure:2321: checking for a thread-safe mkdir -p
configure:2360: result: /bin/mkdir -p
configure:2373: checking for gawk
configure:2389: found /usr/bin/gawk
configure:2400: result: gawk
configure:2411: checking whether make sets $(MAKE)
configure:2432: result: yes
configure:2615: checking how to create a ustar tar archive
configure:2628: tar --version
tar (GNU tar) 1.19
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
configure:2631: $? = 0
configure:2671: tardir=conftest.dir && eval tar --format=ustar -chf - “$tardir” >conftest.tar
configure:2674: $? = 0
configure:2678: tar -xf - <conftest.tar
configure:2681: $? = 0
configure:2694: result: gnutar
configure:2776: checking for gcc
configure:2792: found /usr/bin/gcc
configure:2803: result: gcc
configure:3041: checking for C compiler version
configure:3048: gcc --version >&5
gcc (SUSE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036]
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3051: $? = 0
configure:3058: gcc -v >&5
Using built-in specs.
Target: i586-suse-linux
Configured with: …/configure --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3 --enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion=‘SUSE Linux’ --disable-libgcj --with-slibdir=/lib --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --program-suffix=-4.3 --enable-version-specific-runtime-libs --enable-linux-futex --without-system-libunwind --with-cpu=generic --build=i586-suse-linux
Thread model: posix
gcc version 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036] (SUSE Linux)
configure:3061: $? = 0
configure:3068: gcc -V >&5
gcc: ‘-V’ option must have argument
configure:3071: $? = 1
configure:3094: checking for C compiler default output file name
configure:3121: gcc conftest.c >&5
configure:3124: $? = 0
configure:3162: result: a.out
configure:3179: checking whether the C compiler works
configure:3189: ./a.out
configure:3192: $? = 0
configure:3209: result: yes
configure:3216: checking whether we are cross compiling
configure:3218: result: no
configure:3221: checking for suffix of executables
configure:3228: gcc -o conftest conftest.c >&5
configure:3231: $? = 0
configure:3255: result:
configure:3261: checking for suffix of object files
configure:3287: gcc -c conftest.c >&5
configure:3290: $? = 0
configure:3313: result: o
configure:3317: checking whether we are using the GNU C compiler
configure:3346: gcc -c conftest.c >&5
configure:3352: $? = 0
configure:3369: result: yes
configure:3374: checking whether gcc accepts -g
configure:3404: gcc -c -g conftest.c >&5
configure:3410: $? = 0
configure:3509: result: yes
configure:3526: checking for gcc option to accept ISO C89
configure:3600: gcc -c -g -O2 conftest.c >&5
configure:3606: $? = 0
configure:3629: result: none needed
configure:3658: checking for style of include used by make
configure:3686: result: GNU
configure:3711: checking dependency style of gcc
configure:3802: result: gcc3
configure:3822: checking how to run the C preprocessor
configure:3862: gcc -E conftest.c
configure:3868: $? = 0
configure:3899: gcc -E conftest.c
conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
configure:3905: $? = 1
configure: failed program was:
| /* confdefs.h. /
| #define PACKAGE_NAME “wireshark”
| #define PACKAGE_TARNAME “wireshark”
| #define PACKAGE_VERSION “1.0.99”
| #define PACKAGE_STRING “wireshark 1.0.99”
| #define PACKAGE_BUGREPORT “”
| #define PACKAGE “wireshark”
| #define VERSION “1.0.99”
| /
end confdefs.h. /
| #include <ac_nonexistent.h>
configure:3938: result: gcc -E
configure:3967: gcc -E conftest.c
configure:3973: $? = 0
configure:4004: gcc -E conftest.c
conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
configure:4010: $? = 1
configure: failed program was:
| /
confdefs.h. /
| #define PACKAGE_NAME “wireshark”
| #define PACKAGE_TARNAME “wireshark”
| #define PACKAGE_VERSION “1.0.99”
| #define PACKAGE_STRING “wireshark 1.0.99”
| #define PACKAGE_BUGREPORT “”
| #define PACKAGE “wireshark”
| #define VERSION “1.0.99”
| /
end confdefs.h. */
| #include <ac_nonexistent.h>
configure:4104: checking build system type
configure:4122: result: i686-suse-linux-gnu
configure:4144: checking host system type
configure:4159: result: i686-suse-linux-gnu
configure:4181: checking for a sed that does not truncate output
configure:4237: result: /usr/bin/sed
configure:4240: checking for grep that handles long lines and -e
configure:4314: result: /usr/bin/grep
configure:4319: checking for egrep
configure:4397: result: /usr/bin/grep -E
configure:4413: checking for ld used by gcc
configure:4480: result: /usr/i586-suse-linux/bin/ld
configure:4489: checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld
configure:4504: result: yes
configure:4509: checking for /usr/i586-suse-linux/bin/ld option to reload object files
configure:4516: result: -r
configure:4534: checking for BSD-compatible nm
configure:4583: result: /usr/bin/nm -B
configure:4587: checking whether ln -s works
configure:4591: result: yes
configure:4598: checking how to recognize dependent libraries
configure:4784: result: pass_all
configure:5025: checking for ANSI C header files
configure:5055: gcc -c -g -O2 conftest.c >&5
configure:5061: $? = 0
configure:5160: gcc -o conftest -g -O2 conftest.c >&5
configure:5163: $? = 0
configure:5169: ./conftest
configure:5172: $? = 0
configure:5189: result: yes
configure:5213: checking for sys/types.h
configure:5234: gcc -c -g -O2 conftest.c >&5
configure:5240: $? = 0
configure:5256: result: yes
configure:5213: checking for sys/stat.h
configure:5234: gcc -c -g -O2 conftest.c >&5
configure:5240: $? = 0
configure:5256: result: yes
configure:5213: checking for stdlib.h
configure:5234: gcc -c -g -O2 conftest.c >&5
configure:5240: $? = 0
configure:5256: result: yes
configure:5213: checking for string.h
configure:5234: gcc -c -g -O2 conftest.c >&5
configure:5240: $? = 0
configure:5256: result: yes
configure:5213: checking for memory.h
configure:5234: gcc -c -g -O2 conftest.c >&5
configure:5240: $? = 0
configure:5256: result: yes
configure:5213: checking for strings.h
configure:5234: gcc -c -g -O2 conftest.c >&5
configure:5240: $? = 0
configure:5256: result: yes
configure:5213: checking for inttypes.h
configure:5234: gcc -c -g -O2 conftest.c >&5
configure:5240: $? = 0
configure:5256: result: yes
configure:5213: checking for stdint.h
configure:5234: gcc -c -g -O2 conftest.c >&5
configure:5240: $? = 0
configure:5256: result: yes
configure:5213: checking for unistd.h
configure:5234: gcc -c -g -O2 conftest.c >&5
configure:5240: $? = 0
configure:5256: result: yes
configure:5283: checking dlfcn.h usability
configure:5300: gcc -c -g -O2 conftest.c >&5
configure:5306: $? = 0
configure:5320: result: yes
configure:5324: checking dlfcn.h presence
configure:5339: gcc -E conftest.c
configure:5345: $? = 0
configure:5359: result: yes
configure:5387: checking for dlfcn.h
configure:5395: result: yes
configure:5466: checking for g++
configure:5482: found /usr/bin/g++
configure:5493: result: g++
configure:5524: checking for C++ compiler version
configure:5531: g++ --version >&5
g++ (SUSE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036]
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:5534: $? = 0
configure:5541: g++ -v >&5
Using built-in specs.
Target: i586-suse-linux

OpenSuSE 11.0 should have version 2.12.9 of GTK+.
Verify that you also have installed GTK±devel on your system.

yes,It works

xiaoyang wrote:

>
> hi,maybe my question is a little bit odd.
>
> Today,I downloaded wireshark code via svn,when I ./configure the
> code,it report a error like this:
>
> checking for GTK+ - version >= 2.4.0… no
> *** Could not run GTK+ test program, checking why…
> *** The test program failed to compile or link. See the file config.log
> for the
> *** exact error that occured. This usually means GTK+ is incorrectly
> installed.
> configure: error: GTK+ 2.4 or later isn’t available, so Wireshark can’t
> be compiled
>
>
> I don’t know what’s wrong,or maybe the code has some promble?
> I am expecting some expert can help me,I am reading the developer-guide
> of wireshark,maybe some one alse met the same promble.
>
>
using yast software management install the GTK±devel package.


L R Nix
lornix@lornix.com