Hello all,

I am trying to build/install xerces-c-3.1.1 under MSYS/MinGW on Windows 7 
64bit. Im using GCC-4.5.0. 

As far as I can tell, configure and make are completing fine and with no 
errors, but make check continually fails. I had 2 make 2 minor changes to the 
files so that all of the test applications could compile, those changes being

xerces-c-3.1.1\tests\src\ThreadTest\ThreadTest.cpp, line 84 - was receiving 
compiler errors about ::sleep(int) being undefined
Changed
   ::sleep(seconds);
To
   ::usleep(seconds);

xerces-c-3.1.1\build\tests\Makefile, line 598 - was receiving linker errors on 
lines 99 and 100 (undefined references to pthread_attr_init and pthread_create) 
of ThreadTest.cpp and I realised that pthreads library wasnt being linked in to 
ThreadTest.
Changed
    $(CXXLINK) $(ThreadTest_OBJECTS) $(ThreadTest_LDADD) $(LIBS)
To
    $(CXXLINK) $(ThreadTest_OBJECTS) $(ThreadTest_LDADD) $(LIBS) -lpthread

Now all of the test applications appear to compile fine, but make check now 
fails with this message

export 
PATH=/mingw/xerces/build/samples:/mingw/xerces/build/tests:".:/usr/local/bin:/mingw/bin:/bin:/c/Program
 Files (x86)/CodeLite:/mingw/bin:/bin:/mingw/lib:/c/Program Files/Common 
Files/Microsoft Shared/Windows Live:/c/Program Files 
(x86)/UltraEdit/:/c/Program Files (x86)/NVIDIA 
Corporation/PhysX/Common:/c/Program Files (x86)/PC Connectivity 
Solution/:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/c/Program
 Files (x86)/Common Files/Ulead Systems/MPEG:/c/Program Files (x86)/Microsoft 
SQL Server/100/Tools/Binn/:/c/Program Files/Microsoft SQL 
Server/100/Tools/Binn/:/c/Program Files/Microsoft SQL 
Server/100/DTS/Binn/:/c/Program Files (x86)/QuickTime/QTSystem/:/c/Program 
Files (x86)/Visual Leak Detector/bin:/c/Program Files 
(x86)/UltraEdit/:/c/Program Files 
(x86)/CodeLite:/mingw/bin:/bin:/mingw/lib:/c/Program Files/Common 
Files/Microsoft Shared/Windows Live:/c/Program Files 
(x86)/UltraEdit/:/c/Program Files (x86)/NVIDIA 
Corporation/PhysX/Common:/c/Program Files (x86)/PC Connectivity 
Solution/:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/c/Program
 Files (x86)/Common Files/Ulead Systems/MPEG:/c/Program Files (x86)/Microsoft 
SQL Server/100/Tools/Binn/:/c/Program Files/Microsoft SQL 
Server/100/Tools/Binn/:/c/Program Files/Microsoft SQL 
Server/100/DTS/Binn/:/c/Program Files (x86)/QuickTime/QTSystem/:/c/Program 
Files (x86)/Visual Leak Detector/bin:/c/Program Files (x86)/UltraEdit/" && 
export XERCESC_NLS_HOME=/mingw/xerces/build/src/.libs && cd .. && perl 
scripts/sanityTest.pl 2>&1 | /bin/sed 's/ *[0-9][0-9]*  *ms */{timing 
removed}/' 1> /mingw/xerces/build/test-results.log
diff test-results.log ../scripts/sanityTest_ExpectedResult.log
906c906
< stdin:{timing removed}(37 elems, 12 attrs, 134 spaces, 134 chars)
---
> <name><family>Boss</family> 
> <given>Big</given></name><name><family>Worker</family> 
> <given>One</given></name><name><family>Worker</family> 
> <given>Two</given></name><name><family>Worker</family> 
> <given>Three</given></name><name><family>Worker</family> 
> <given>Four</given></name><name><family>Worker</family> 
> <given>Five</given></name>stdin:{timing removed}(37 elems, 12 attrs, 134 
> spaces, 134 chars)
make: *** [check] Error 1

I have googled this as best I can to try and find what might be causing this, 
but without much luck (doesn't really help that I cant tell what the actual 
problem is to google for).

Can anyone see a problem with this?

System Information
AMD64 Processor
Windows 7 Ultimate 64 bit
MSYS 1.0.13
MinGW/GCC 4.5.0
Xerces-C-3.1.1

Regards
Bidski

Reply via email to