You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2001/12/07 18:00:00 UTC

DO NOT REPLY [Bug 5320] New: - 1.5.2 Build fails on IRIX

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5320>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5320

1.5.2 Build fails on IRIX

           Summary: 1.5.2 Build fails on IRIX
           Product: Xerces-C++
           Version: 1.5.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Build
        AssignedTo: xerces-c-dev@xml.apache.org
        ReportedBy: djsfive@yahoo.com


Vitals:
	xerces v1.5.2 stable
	SGI running IRIX 6.5
	MIPSpro Compilers: Version 7.30
	
I ran "runConfigure -pirix -ccc -xCC" in src, all seemed ok. 
I ran "gmake" and got the following error:
-------------------------------------------------------------------------------

gmake[3]: Entering directory
`/advspace2/higround/xml/xerces-c-src1_5_2/src/util/Platforms/IRIX'
mkdir -p /advspace2/higround/xml/xerces-c-src1_5_2/include/util/Platforms/IRIX
cp -fp IRIXDefs.hpp
/advspace2/higround/xml/xerces-c-src1_5_2/include/util/Platforms/IRIX
CC -LANG:pch -LANG:std -O2 -DIRIX -D_REENTRANT -I/usr/local/include -c -O2
-DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER -DXML_USE_PTHREADS
-DXML_USE_NETACCESSOR_SOCKET 
-I/advspace2/higround/xml/xerces-c-src1_5_2/include  -o
/advspace2/higround/xml/xerces-c-src1_5_2/obj/IRIX/IRIXPlatformUtils.o
IRIXPlatformUtils.cpp
"IRIXPlatformUtils.cpp":  using precompiled header file "IRIXPlatformUtils.pch".
cc-1220 CC: ERROR File = IRIXPlatformUtils.cpp, Line = 650
  The variable "atomicOpsMutex" has already been defined.

  static XMLMutex atomicOpsMutex;
                  ^

1 error detected in the compilation of "IRIXPlatformUtils.cpp".
gmake[3]: *** [IRIXPlatformUtils.o] Error 2
gmake[3]: Leaving directory
`/advspace2/higround/xml/xerces-c-src1_5_2/src/util/Platforms/IRIX'

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

The lib still builds, but the DOM samples will not compile as a result of this
error.

Here goes my guess at the problem...

in util/Platforms/IRIX/IRIXPlatformUtils.cpp, the "#if !defined(APP_NO_THREADS)"
on line 548 evaluates true and the "#ifdef XML_USE_SPROC" on line 552 evaluates
false.  This allows the atomicOpsMutex variable to be declared twice - once on
line 550, once on line 650.  Thus, the compiler complains....

Another clue:  Everything seemed to build ok in 1.5.1

Send me mail if I can help clarify.

Dan Stewart

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org