[xml] Build failure on darwin



While trying to update fink's libxml2 package to 2.9.0, I got a build failure on OS X 10.6. Same results in 
both 32-bit mode and 64-bit mode ("gcc" is an alias/wrapper that pushes "-arch i386" or "-arch x86_64")...

/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./include -I/sw/include 
-I/sw/include -D_REENTRANTÂÂ -g -O2 -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 -Wno-long-long -MT threads.lo -MD -MP -MF .deps/threads.Tpo -c -o threads.lo 
threads.c
libtool: compile:Â gcc -DHAVE_CONFIG_H -I. -I./include -I./include -I/sw/include -I/sw/include -D_REENTRANT 
-g -O2 -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 
-Wno-long-long -MT threads.lo -MD -MP -MF .deps/threads.Tpo -c threads.c -fno-common -DPIC -o .libs/threads.o
threads.c: In function 'xmlCleanupThreads':
threads.c:918: error: expected expression before '{' token

I captured the preprocessed source, and here's that function:

voidxmlCleanupThreads(void)
{
ÂÂÂ if ((libxml_is_threaded) && (pthread_key_delete != ((void *)0)))
ÂÂÂÂÂÂÂ pthread_key_delete(globalkey);
ÂÂÂ once_control = {0x30B1BCBA, {0}};
}

Earlier in the preprocessed source is:

static pthread_once_t once_control = {0x30B1BCBA, {0}};

so the variable is seems to be defined without error using the same eventual syntax (the macro-expansions 
aren't acting badly).

dan

--
Daniel Macks
dmacks netspace org




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