DarkWyrm skrev:
Doing that fails here with gcc4. libxml2 can't be built because it can't find OS.h and TLS.h included in threads.c. I don't know why that happens.No, but there is now. It's actually quite easy to generate any of the Docbook stuff if you have a local copy of the SVN tree -- go into the particular folder and run jam. Once you run it, you can find it inIs there a human readable version of the Haiku UI Guidelines? I couldn't find it on the website. And Search is 404. I know there is the docbook in subversion. Or is there a good Beos docbook WYSIWIYG viewer?
Here's the error log:Cc ../../generated/objects/linux/x86/release/tools/docbook/libxml2/globals.o Cc ../../generated/objects/linux/x86/release/tools/docbook/libxml2/threads.o ../tools/docbook/libxml2/threads.c:39:16: error: OS.h: Filen eller katalogen finns inte ../tools/docbook/libxml2/threads.c:40:17: error: TLS.h: Filen eller katalogen finns inte ../tools/docbook/libxml2/threads.c:104: error: expected specifier-qualifier-list before ‘sem_id’ ../tools/docbook/libxml2/threads.c:126: error: expected specifier-qualifier-list before ‘thread_id’ ../tools/docbook/libxml2/threads.c:157: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘globalkey’ ../tools/docbook/libxml2/threads.c:158: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mainthread’ ../tools/docbook/libxml2/threads.c:159: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘run_once_init’
../tools/docbook/libxml2/threads.c: In function ‘xmlNewMutex’:../tools/docbook/libxml2/threads.c:188: error: ‘xmlMutex’ has no member named ‘sem’ ../tools/docbook/libxml2/threads.c:188: warning: implicit declaration of function ‘create_sem’ ../tools/docbook/libxml2/threads.c:188: error: ‘B_OK’ undeclared (first use in this function) ../tools/docbook/libxml2/threads.c:188: error: (Each undeclared identifier is reported only once ../tools/docbook/libxml2/threads.c:188: error: for each function it appears in.) ../tools/docbook/libxml2/threads.c:192: error: ‘xmlMutex’ has no member named ‘tid’
../tools/docbook/libxml2/threads.c: In function ‘xmlFreeMutex’:../tools/docbook/libxml2/threads.c:215: warning: implicit declaration of function ‘delete_sem’ ../tools/docbook/libxml2/threads.c:215: error: ‘xmlMutex’ has no member named ‘sem’
../tools/docbook/libxml2/threads.c: In function ‘xmlMutexLock’:../tools/docbook/libxml2/threads.c:237: warning: implicit declaration of function ‘acquire_sem’ ../tools/docbook/libxml2/threads.c:237: error: ‘xmlMutex’ has no member named ‘sem’ ../tools/docbook/libxml2/threads.c:237: error: ‘B_NO_ERROR’ undeclared (first use in this function) ../tools/docbook/libxml2/threads.c:243: error: ‘xmlMutex’ has no member named ‘tid’ ../tools/docbook/libxml2/threads.c:243: warning: implicit declaration of function ‘find_thread’
../tools/docbook/libxml2/threads.c: In function ‘xmlMutexUnlock’:../tools/docbook/libxml2/threads.c:265: error: ‘xmlMutex’ has no member named ‘tid’ ../tools/docbook/libxml2/threads.c:266: error: ‘xmlMutex’ has no member named ‘tid’ ../tools/docbook/libxml2/threads.c:267: warning: implicit declaration of function ‘release_sem’ ../tools/docbook/libxml2/threads.c:267: error: ‘xmlMutex’ has no member named ‘sem’
../tools/docbook/libxml2/threads.c: In function ‘xmlNewRMutex’:../tools/docbook/libxml2/threads.c:304: error: ‘xmlRMutex’ has no member named ‘count’
../tools/docbook/libxml2/threads.c: In function ‘xmlRMutexLock’:../tools/docbook/libxml2/threads.c:367: error: ‘xmlMutex’ has no member named ‘tid’ ../tools/docbook/libxml2/threads.c:368: error: ‘xmlRMutex’ has no member named ‘count’ ../tools/docbook/libxml2/threads.c:372: error: ‘xmlRMutex’ has no member named ‘count’
../tools/docbook/libxml2/threads.c: In function ‘xmlRMutexUnlock’:../tools/docbook/libxml2/threads.c:404: error: ‘xmlMutex’ has no member named ‘tid’ ../tools/docbook/libxml2/threads.c:405: error: ‘xmlRMutex’ has no member named ‘count’ ../tools/docbook/libxml2/threads.c:406: error: ‘xmlRMutex’ has no member named ‘count’
../tools/docbook/libxml2/threads.c: At top level:../tools/docbook/libxml2/threads.c:508: warning: no previous prototype for ‘xmlGlobalStateCleanup’
../tools/docbook/libxml2/threads.c: In function ‘xmlGlobalStateCleanup’:../tools/docbook/libxml2/threads.c:509: warning: implicit declaration of function ‘tls_get’ ../tools/docbook/libxml2/threads.c:509: error: ‘globalkey’ undeclared (first use in this function) ../tools/docbook/libxml2/threads.c:509: warning: initialization makes pointer from integer without a cast
../tools/docbook/libxml2/threads.c: In function ‘xmlGetGlobalState’:../tools/docbook/libxml2/threads.c:590: error: ‘globalkey’ undeclared (first use in this function) ../tools/docbook/libxml2/threads.c:593: warning: implicit declaration of function ‘tls_set’ ../tools/docbook/libxml2/threads.c:594: warning: implicit declaration of function ‘on_exit_thread’
../tools/docbook/libxml2/threads.c: In function ‘xmlIsMainThread’:../tools/docbook/libxml2/threads.c:662: error: ‘mainthread’ undeclared (first use in this function)
../tools/docbook/libxml2/threads.c: In function ‘xmlOnceInit’:../tools/docbook/libxml2/threads.c:807: warning: implicit declaration of function ‘atomic_add’ ../tools/docbook/libxml2/threads.c:807: error: ‘run_once_init’ undeclared (first use in this function) ../tools/docbook/libxml2/threads.c:808: error: ‘globalkey’ undeclared (first use in this function) ../tools/docbook/libxml2/threads.c:808: warning: implicit declaration of function ‘tls_allocate’ ../tools/docbook/libxml2/threads.c:810: error: ‘mainthread’ undeclared (first use in this function)
/Fredrik Ekdahl