Hi!

I encountered the following problems with my (eventually 
successful) build...

Environment:
    Linux 2.0.36 (Suse 6.1, glibc 2.0)
    egcs-2.91.60

Files that I needed to change:
    src/runConfigure
    src/util/Platforms/Linux/LinuxPlatformUtils.cpp

--- src build ---------------------------------------------------------

The x flag is not set after I do a checkout, so I need to do

    chmod a+x runConfigure configure

This might be normal CVS behaviour, but then above line should
be added to the build intructions.

I needed to add the -z-D__USE_UNIX98 option to get

    ./util/Platforms/Linux/LinuxPlatformUtils.cpp

to compile.

And the -z option did not work at all (see diff below). :)

Then, I could do

runConfigure -plinux -cgcc -xg++ -minmem -nfileonly -tnative -z-D__USE_UNIX98

Finally, I had to replace the call to pthread_mutexattr_settype
with pthread_mutexattr_setkind_np.

-----------------------------------------------------------------------

--- runConfigure        2000/02/25 03:42:56     1.22
+++ runConfigure        2000/03/02 14:25:12
@@ -481,10 +481,10 @@
 # Set the extra C and C++ compiler flags
 #

-CXXFLAGS="$debugflag $transcodingDefines $msgloaderDefines $threadingDefines 
$netaccessorDefines"
+CXXFLAGS="$compileroption $debugflag $transcodingDefines $msgloaderDefines 
$threadingDefines $netaccessorDefines"
 export CXXFLAGS

-CFLAGS="$debugflag $transcodingDefines $msgloaderDefines $threadingDefines 
$netaccessorDefines"
+CFLAGS="$compileroption $debugflag $transcodingDefines $msgloaderDefines 
$threadingDefines $netaccessorDefines"
 export CFLAGS

 LIBS="$transcodingLibs $threadingLibs $netaccessorLibs"


--- util/Platforms/Linux/LinuxPlatformUtils.cpp 2000/02/22 00:58:15     1.10
+++ util/Platforms/Linux/LinuxPlatformUtils.cpp 2000/03/02 14:27:37
@@ -555,7 +555,7 @@
     pthread_mutex_t* mutex = new pthread_mutex_t;
     pthread_mutexattr_t*  attr = new pthread_mutexattr_t;
     pthread_mutexattr_init(attr);
-    pthread_mutexattr_settype(attr, PTHREAD_MUTEX_RECURSIVE_NP);
+    pthread_mutexattr_setkind_np(attr, PTHREAD_MUTEX_RECURSIVE_NP);
     if (pthread_mutex_init(mutex, attr))
     {
         ThrowXML(XMLPlatformUtilsException,



Reply via email to