kxmlcore/kjs compile problem on Apple OS X

Alexander Neundorf neundorf at kde.org
Sat Jan 28 21:45:17 GMT 2006


Hi,

Ranger Rick tried to compile trunk/kdelibs/ under OS X, and he got an 
undefined reference  to KXMLCore::fastMallocRegisterThread(pthread); in 
kjs/internal.cpp.
This is inside an #if KJS_MULTIPLE_THREADS - block.
In kjs/internal.h:

#ifdef __APPLE__
#define KJS_MULTIPLE_THREADS 1
#endif

So, when compiling kjs/internal.cpp on OS X for KDE, it ends up in a part 
which shouldn't be compiled for KDE, as far as I can understand.
What's the right way to fix this ?
#undef __APPLE__ doesn't seem right.
Maybe exchanging the #ifdef __APPLE__ with an #ifdef APPLE_CHANGES or an 
#ifdef SAFARI or #ifdef WEBCORE or #ifndef KDE ?

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net




More information about the kfm-devel mailing list