Re: [Gtk-osx-users] libiconv woes



On Apr 28, 2010, at 3:33 AM, David Lowe wrote:

> Thanks for such a great project!
> 
> 	I just got started on this a few days ago and am really impressed so far, particularly the way that jhbuild keeps the Terminal title updated as it works.
> 
> 	I've run into a problem during the 'jhbuild build meta-gtk-osx-bootstrap' step.  During configure of glib i see this:
> 
>> checking for iconv_open... no
>> checking for libiconv_open in -liconv... no
>> checking for iconv_open in -liconv... yes
> 
> 	and build ends this way:
> 
>> gconvert.c:55:2: error: #error GNU libiconv not in use but included iconv.h is from libiconv
>> make[4]: *** [gconvert.lo] Error 1
>> make[3]: *** [all-recursive] Error 1
>> make[2]: *** [all] Error 2
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all] Error 2
>> *** Error during phase build of glib: ########## Error running make   *** [2/10]
> 
> 	My system is like this:
> 
> OS 10.6.3
> XCode 3.2.2 [with 10.4u and 10.5 SDKs]
> /usr/lib/libiconv2.dylib [linked to libiconv.dylib and libiconv2.4.0.dylib]
> /usr/include/iconv.h

That's an Apple bug:

> $ athena:/Users/john> nm -arch x86_64 /usr/lib/libiconv.2.4.0.dylib | grep _open 
> 0000000000014d42 T _iconv_open
> $ athena:/Users/john> nm -arch i386 /usr/lib/libiconv.2.4.0.dylib | grep _open
> 00015049 T _iconv_open
> 00015860 T _libiconv_open

You have to build libiconv for 64-bit. The best way to do that is to put gettext-fw in front of meta-gtk-osx-bootstrap (or build it first if you're just building by hand)... Assuming, of course, that you really want a 64-bit build.

Regards,
John Ralls






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]