Re: [Gtk-osx-users] glib version error while building gimp



On Apr 18, 2011, at 9:08 PM, Tim Chen wrote:

> upon further investigation, I realized that the error actually happened while building glib
> 
> =============================
> 
> checking for iconv_open... no
> checking for libiconv_open in -liconv... no
> checking for iconv_open in -liconv... no
> configure: error: *** No iconv() implementation found in C library or libiconv
> *** Error during phase configure of glib: ########## Error running ./configure --prefix /Users/timchen/gtk/inst --libdir '/Users/timchen/gtk/inst/lib'  --disable-static ac_cv_c_bigendian=no --build=i486-apple-darwin  *** [2/12] 
> 
> ==============================
> 
> the corresponding error in config.log is
> 
> ==============================
> 
> configure:7345: checking for iconv_open
> configure:7345: gcc -o conftest -arch i386 -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -I/Users/timchen/gtk/inst/include -I/Developer/SDKs/MacOSX10.6.sdk/usr/include -L/Users/timchen/gtk/inst/lib -L/Users/timchen/gtk/inst/lib -arch i386 -L/Developer/SDKs/MacOSX10.6.sdk/usr/lib -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -Wl,-headerpad_max_install_names -framework Carbon conftest.c  >&5
> Undefined symbols for architecture i386:
>  "_iconv_open", referenced from:
>      _main in ccP63cQa.o
> ld: symbol(s) not found for architecture i386
> collect2: ld returned 1 exit status
> 
> ==============================
> 
> I think this error is similar to http://sourceforge.net/mailarchive/message.php?msg_id=24905828 and probably means that it linked wrong version of libiconv 
> 
> Nevertheless, as posted in my last mail, I have already put
> 
> setup_sdk(target="10.6", sdk_version="10.6", architectures=["i386"])
> 
> in my .jhbuildrc-custom. I suppose doing so should have already fix the problem? 
> 

No, the problem that that message (along with several others) addressed was that the symbol _libiconv_open is missing from the x86_64 image in Apple's distribution of libiconv. You're building i386, and the symbol _iconv_open is present in both the i386 and x86_64 images.

The new (since january) gtk-osx-build-setup.sh replaces the jhbuild stock bootstrap.modules with a replacement that builds a new libiconv regardless of architecture. I suspect what happened is that you ran jhbuild bootstrap *without* specifying the architecture to setup_sdk() and so built libiconv and gettext as x86_64, so there's no i386 image to link to. The safest thing to do at this point is to wipe everything and start over. Anything short of that will risk linkage problems in the several dependent libraries.

Regards,
John Ralls






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