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
[email protected]
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
[email protected]
https://mail.gnome.org/mailman/listinfo/xml