Subject: pkg/24402: devel/glib2 (& others) won't build under Darwin 7.2.0
To: None <>
From: None <>
List: netbsd-bugs
Date: 02/12/2004 18:45:54
>Number:         24402
>Category:       pkg
>Synopsis:       devel/glib2 (& others) won't build under Darwin 7.2.0
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 12 18:46:00 UTC 2004
>Originator:     Chris Jepeway
>Release:        pkgsrc
Blasted Heath Consulting, LLC
Darwin kingstork 7.2.0 Darwin Kernel Version 7.2.0: Thu Dec 11 16:20:23 PST 2003; root:xnu/xnu-517.3.7.obj~1/RELEASE_PPC  Power Macintosh powerpc
There seem to be problems with buildlink3 that I end up fixing by adding lines like

     set -- $ldflags
     for i in "$@" ; do
           case "$i" in
           -lg*-2) i="$i".0 ;;
           x="$x $i"
towards the end of the work/.buildlink/bin/gcc scripts to
get glib2 to compile.  This fixes errors like
     ld: can't locate file for: -lglib-2

These errors crop up for anything using buildlink3 & devel/glib2.
Also, devel/pango.  I first encountered them trying to build net/ethereal.

Install bootstrap-pkgsrc & pkgsrc under Darwin.

     cd ...pkgsrc/devel/glib2

and wait on the ld error in the description.

Tweak the sed xforms in buildlink3 for Darwin 7.2.0?