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

Installation attempts GTK+ error by configure step

0

I know, the solution should be "upgrade my Solaris 10 to latest version", but I still want to solve this issue but not just upgrade.

wireshark source: wireshark-1.6.4.tar.gz

os:

bash-3.00# cat /etc/release
                Solaris 10 11/06 s10x_u3wos_10 X86
   Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
                Use is subject to license terms.
                   Assembled 14 November 2006

bash-3.00# uname -a SunOS solx86lab2 5.10 Generic_118855-33 i86pc i386 i86pc

By running configure script, attempt an error

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 have searched F&Q and get the following answer:

http://ask.wireshark.org/questions/5426/configure-gives-error-gtk-version-issue-solaris

http://www.wireshark.org/lists/wireshark-users/200802/msg00050.html

I tried

bash-3.00# cat /usr/lib/pkgconfig/gthread-2.0.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: GThread Description: Thread support for GLib Requires: glib-2.0 Version: 2.4.1 Libs: -L${libdir} -lgthread-2.0 -mt Cflags: -mt

After configure, in configure.log

configure:19371: gcc -o conftest -D_U_="__attribute__((unused))" -g -O2 -Wall -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith -Wcast-align -Wformat-security -Wno-return-type -DFUNCPROTO=15 -I/usr/local/include -mt -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -I/usr/local/include  -L/usr/local/lib -R/usr/local/lib conftest.c -mt -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lmlib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0    -R/opt/csw/lib:/usr/sfw/lib >&5
cc1: error: invalid option t' cc1: error: invalid option t'
configure:19371: $? = 1

It is true, gcc don’t know -mt, but even how I modified file gthread-2.0.pc with -pthread or -D_REENTRANT still doesn’t work.

Does anyone has idea??

Thanks at first.

asked 23 Apr ‘12, 00:22

Bob's gravatar image

Bob
1111
accept rate: 0%

edited 23 Apr ‘12, 00:58

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196

Well, what does the configure.log say after you modified ghtread-2.0.pc? The quoted output indicates the “-mt” is still there, so I suppose this is the “before” output.

(27 Apr ‘12, 07:48) JeffMorriss ♦