Subject: pkg/24402: devel/glib2 (& others) won't build under Darwin 7.2.0
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jepeway-nbsd@blasted-heath.com>
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
>Closed-Date:
>Last-Modified:
>Originator:     Chris Jepeway
>Release:        pkgsrc
>Organization:
Blasted Heath Consulting, LLC
>Environment:
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
>Description:
There seem to be problems with buildlink3 that I end up fixing by adding lines like

      x=
     set -- $ldflags
     for i in "$@" ; do
           case "$i" in
           -lg*-2) i="$i".0 ;;
           esac
           x="$x $i"
     done
     ldflags="$x"
 
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.


>How-To-Repeat:
Install bootstrap-pkgsrc & pkgsrc under Darwin.
Then

     cd ...pkgsrc/devel/glib2
    bmake

and wait on the ld error in the description.

>Fix:
Tweak the sed xforms in buildlink3 for Darwin 7.2.0?


>Release-Note:
>Audit-Trail:
>Unformatted: