[MacPorts] #16087: wireshark-1.0.2 "Configure error: GTK+ isn't available" (yet it is installed)
#16087: wireshark-1.0.2 "Configure error: GTK+ isn't available" (yet it is installed) ------------------------------------------+--------------------------------- Reporter: agb-macports@padded-cell.net | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: wireshark gtk2 gtk+ | ------------------------------------------+--------------------------------- Ran wireshark for the first time in a while and it returned "dyld: Library not loaded: /opt/local/lib/libgobject-2.0.0.dylib" I have done a lot of updating since I last ran it and figured I'd recompile it to make sure it is using the current toolchain. `port install wireshark +ipv6' fails with the following output {{{ checking for GTK+ - version >= 2.0.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+ isn't available, so Wireshark can't be compiled }}} but it is definitely installed: {{{ $ port installed gtk2 The following ports are currently installed: gtk2 @2.12.4_0+x11 gtk2 @2.12.8_0+x11 gtk2 @2.12.9_0+x11 (active) }}} config.log is attached. I'm running 10.5.4 w/ macports 1.6.0 on a MacBook Pro. -- Ticket URL: <http://trac.macports.org/ticket/16087> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16087: wireshark-1.0.2 "Configure error: GTK+ isn't available" (yet it is installed) -------------------------------------------+-------------------------------- Reporter: agb-macports@padded-cell.net | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: wireshark gtk2 gtk+ -------------------------------------------+-------------------------------- Changes (by blb@macports.org): * cc: blb@macports.org (added) Comment: From config.log {{{ configure:23233: checking for GTK+ - version >= 2.0.0 configure:23389: result: no configure:23427: /usr/bin/gcc-4.0 -o conftest -no-cpp-precomp -D_U_="__attribute__((unused))" -O2 -Wall -W -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith -Wno-pointer-sign -I/opt/local/include -Wl,-search_paths_first -L/opt/local/lib -Wl,-search_paths_first conftest.c >&5 conftest.c:28:21: error: gtk/gtk.h: No such file or directory }}} Looks like configure isn't figuring out how to compile with GTK+. What is the output of running {{{ /opt/local/bin/pkg-config --cflags gtk+-2.0 gthread-2.0 }}} -- Ticket URL: <http://trac.macports.org/ticket/16087#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16087: wireshark-1.0.2 "Configure error: GTK+ isn't available" (yet it is installed) -------------------------------------------+-------------------------------- Reporter: agb-macports@padded-cell.net | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: wireshark gtk2 gtk+ -------------------------------------------+-------------------------------- Comment (by agb-macports@padded-cell.net): {{{ $ /opt/local/bin/pkg-config --cflags gtk+-2.0 gthread-2.0 Package gobject-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gobject-2.0.pc' to the PKG_CONFIG_PATH environment variable Package 'gobject-2.0', required by 'GdkPixbuf', not found }}} -- Ticket URL: <http://trac.macports.org/ticket/16087#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16087: wireshark-1.0.2 "Configure error: GTK+ isn't available" (yet it is installed) -------------------------------------------+-------------------------------- Reporter: agb-macports@padded-cell.net | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: wireshark gtk2 gtk+ -------------------------------------------+-------------------------------- Comment (by blb@macports.org): gobject-2.0.pc should be provided by the glib2 port; do you have that installed and active? Do like you did with gtk2: {{{ port installed glib2 }}} -- Ticket URL: <http://trac.macports.org/ticket/16087#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16087: wireshark-1.0.2 "Configure error: GTK+ isn't available" (yet it is installed) -------------------------------------------+-------------------------------- Reporter: agb-macports@padded-cell.net | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: wireshark gtk2 gtk+ -------------------------------------------+-------------------------------- Comment (by agb-macports@padded-cell.net): Ah, that's where the problem was. The last time glib2 was upgraded it couldn't activate because of a leftover file. {{{ $ port activate glib2 @2.16.4_1+darwin_9 ---> Activating glib2 2.16.4_1+darwin_9 Error: port activate failed: Image error: /opt/local/share/gtk- doc/html/gio/gio-extension-points.html already exists and does not belong to a registered port. Unable to activate port glib2. }}} Removing the file, activating the port and attempting to reinstall wireshark fixes the problem. Should I look at submitting an additional bug regarding the "ownerless" file in /opt/local/? -- Ticket URL: <http://trac.macports.org/ticket/16087#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16087: wireshark-1.0.2 "Configure error: GTK+ isn't available" (yet it is installed) -------------------------------------------+-------------------------------- Reporter: agb-macports@padded-cell.net | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: wireshark gtk2 gtk+ -------------------------------------------+-------------------------------- Comment (by blb@macports.org): Replying to [comment:4 agb-macports@padded-cell.net]:
Should I look at submitting an additional bug regarding the "ownerless" file in /opt/local/?
The trick is figuring out where that file came from. Since the glib2 port provides it, an uninstall of an older version should have removed it. Yet there it was...so unless you kept all the install logs of upgrading glib (with full debug), I'm not sure there'd be much that can be done with it. -- Ticket URL: <http://trac.macports.org/ticket/16087#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16087: wireshark-1.0.2 "Configure error: GTK+ isn't available" (yet it is installed) -------------------------------------------+-------------------------------- Reporter: agb-macports@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: worksforme | Keywords: wireshark gtk2 gtk+ Port: glib2 | -------------------------------------------+-------------------------------- Changes (by blb@…): * status: new => closed * resolution: => worksforme * port: => glib2 -- Ticket URL: <http://trac.macports.org/ticket/16087#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts