Opened 16 years ago

Closed 15 years ago

#16087 closed defect (worksforme)

wireshark-1.0.2 "Configure error: GTK+ isn't available" (yet it is installed)

Reported by: agb-macports@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: wireshark gtk2 gtk+ Cc: blb@…
Port: glib2

Description

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.

Attachments (1)

config.log (89.2 KB) - added by agb-macports@… 16 years ago.

Download all attachments as: .zip

Change History (8)

Changed 16 years ago by agb-macports@…

Attachment: config.log added

comment:1 Changed 16 years ago by blb@…

Cc: blb@… added

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

comment:2 Changed 16 years ago by agb-macports@…

$ /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

comment:3 Changed 16 years ago by blb@…

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

comment:4 Changed 16 years ago by agb-macports@…

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/?

comment:5 in reply to:  4 Changed 16 years ago by blb@…

Replying to 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.

comment:6 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:7 Changed 15 years ago by blb@…

Port: glib2 added
Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.