Subject: Re: glib2-2.4.0 build failure on MacOS X
To: None <tech-pkg@netbsd.org>
From: John D. Baker <jdbaker@mylinuxisp.com>
List: tech-pkg
Date: 04/02/2004 20:57:31
On Fri, 2 Apr 2004, John D. Baker wrote:
I've been searching every library on the system and it seems Apple left
the wide character/string functions out, or failed to make their symbols
public (or omitted them from the library based on install-time deselection
of national language packages?)... Thus:
> 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
> [...]
as a workaround, I edited /usr/pkgsrc/devel/glib2/work/glib2-2.4.0/config.h
and changed:
#define HAVE_WCHAR_T 1
to
/* #undef HAVE_WCHAR_T */
and glib2-2.4.0 built and linked.
--
John D. Baker, KN5UKS NetBSD Darwin/MacOS X
jdbaker(at)mylinuxisp(dot)com OpenBSD FreeBSD
BSD -- It just sits there and _works_!