Subject: pkg/30000: ethereal fails to build with glib-2.6.4 on darwin
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <jml@snorkkeli.homeip.net>
List: pkgsrc-bugs
Date: 04/18/2005 00:53:01
>Number:         30000
>Category:       pkg
>Synopsis:       ethereal fails to build with glib-2.6.4 on darwin
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 18 00:53:00 +0000 2005
>Originator:     Juha-Matti Liukkonen
>Release:        ethereal-0.10.10, glib2-2.6.4, gtk2+-2.6.7
>Organization:
>Environment:
Darwin wazoo.koti2.net 7.8.0 Darwin Kernel Version 7.8.0: Wed Dec 22 14:26:17 PST 2004; root:xnu/xnu-517.11.1.obj~1/RELEASE_PPC  Power Macintosh powerpc
>Description:
ethereal (the GUI binary) fails to build because of various configure
problems in locating current gtk and glib versions.
>How-To-Repeat:
cd pkgsrc/net/ethereal; bmake
>Fix:
1) in configure, check for glib existence before gtk+. This way
GTK_LIBS _might_ contain GLIB_LIBS before they are needed when linking
the GTK test program. (Now the test program link fails due to an
unsatisfied glib dependency.)

2) in configure, do not require glib-config in order to detect glib,
as glib2-2.6.4 no longer installs one. Trust pkg-config. (Now glib
detection fails as glib-config is not found.)

Portable (GNU)makefiles instead of autoconf?