Subject: glib2-2.4.0 build failure on MacOS X
To: None <xtraeme@NetBSD.org>
From: John D. Baker <jdbaker@mylinuxisp.com>
List: tech-pkg
Date: 04/02/2004 18:24:27
I had hoped to catch this while it was still in 'wip', but other work
took too long.  The previous glib2 (v2.2.3nb?) built without problems.

Trying to build glib2, now at v2.4.0, fails on MacOS 10.1.5 and 10.2.8
as follows:

[...]
gcc -O2 -I/Volumes/NetBSD/pkgsrc/devel/glib2/work/.buildlink/include -Wall -o .libs/glib-genmarshal glib-genmarshal.o  ../glib/.libs/libglib-2.0.dylib -L/Volumes/NetBSD/pkgsrc/devel/glib2/work/.buildlink/lib /Volumes/NetBSD/pkgsrc/devel/glib2/work/.buildlink/lib/libintl.dylib -liconv -lc /Volumes/NetBSD/pkgsrc/devel/glib2/work/.buildlink/lib/libiconv.dylib
ld: Undefined symbols:
_wcslen
gnumake[2]: *** [glib-genmarshal] Error 1
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all] Error 2
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/devel/glib2
[...]

From the 10.2.8 man pages (man wcslen) this should be in libc.dylib, but
it seems not to be picking it up.

Thanks.

-- 
John D. Baker, KN5UKS                    NetBSD     Darwin/MacOS X
jdbaker(at)mylinuxisp(dot)com                 OpenBSD            FreeBSD
BSD -- It just sits there and _works_!