Re: [Gtk-osx-devs] Latest stable libxml2 fails build on OS X 10.4



On Jul 12, 2010, at 6:03 AM, Richard Procter wrote:

> Hi there,
> 
> Just a heads-up that libxml2 in the latest stable gtk-osx fails to  
> build on OS X 10.4 - apparently because it relies on a recently  
> publicised symbol in -lz. Details below.
> 
> regards,
> Richard.
> 
> On 10.4:
> 
> [buildshell] orchid:~ rix$ nm /usr/lib/libz.dylib | grep gzdirect
> 9111a5cc t _gzdirect
> 
> On 10.5:
> 
> [buildshell] ~/gtk richard$ nm /usr/lib/libz.dylib | grep gzdirect
> 00008b6b T _gzdirect
> 
> 
> Using this entry from jhbuild/modulesets/gtk-osx-bootstrap.modules:
> 
> <autotools id="libxml2" autogen-sh="configure">
>     <branch version="2.7.7" module="libxml2-2.7.7.tar.gz"
>             repo="xmlsoft.org"/>
> </autotools>
> 
> Build error is:
> 
> libtool: link: gcc -Os -arch ppc -mmacosx-version-min=10.4 -pedantic - 
> W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment - 
> Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses - 
> Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate- 
> return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs - 
> Winline -Wredundant-decls -arch ppc -mmacosx-version-min=10.4 -Wl,- 
> headerpad_max_install_names -o .libs/xmllint xmllint.o  -L/Users/rix/ 
> gtk/inst/lib ./.libs/libxml2.dylib -lpthread -lz /usr/lib/ 
> libiconv.dylib -lm
> /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
> _gzdirect
> collect2: ld returned 1 exit status
> make[2]: *** [xmllint] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2

Well, that's annoying. I had to upgrade it because the latest SnowLeopard upgrade didn't like libxml2-2.6. I guess I'll have to add a branches["libxml2"] entry in jhbuildrc-custom to use the older version. (Good thing I took out the checksum, I guess. At least that won't choke, though something else will, I'm sure.)

I'm not where I can use my 10.4 build machine. Could you add 
branches["libxml2"]="libxml2/2.6/libxml2-2.6.30.tar.bz2" 
to your jhbuildrc-custom and see if that works? If it does (and you report back before I get home in a couple of weeks), I'll commit a change to jhbuildrc so that it's automatic on Tiger.

Have you tried building gtk-2.90 on Tiger?

Regards,
John Ralls





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