http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1693 *** shadow/1693 Wed May 9 16:51:33 2001 --- shadow/1693.tmp.14652 Wed May 9 16:51:33 2001 *************** *** 0 **** --- 1,40 ---- + +============================================================================+ + | AIX CSetDefs.hpp and distributed .lib incorrect (bool exists) | + +----------------------------------------------------------------------------+ + | Bug #: 1693 Product: Xerces-C | + | Status: NEW Version: 1.4 | + | Resolution: Platform: Other | + | Severity: Normal OS/Version: AIX | + | Priority: Medium Component: Build | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + In the {xerces_home}/include/util/Compilers/CSetDefs.hpp file a line exists + + #define NO_NATIVE_BOOL + + which ultimately causes XercesDefs.hpp to do a + + typedef int bool; + + The xlC compiler for AIX does in fact have a native bool data type which is + used very heavily by the standard template libraries. The net result is that + std and Xerces do not play nice with each other. + + I can comment out the line in CSetDefs.hpp and then all of the objects will + compile fine, however I will get a linker error on any Xerces function call + that takes a bool as a parameter using the standard distribution libxerces- + c1_4.lib for AIX42 because that library was compiled with the original + CSetDefs.hpp and therefore the functions exist using int vs bool. + + A quick workaround is for me to go into all of the Xerces header files and + change the prototypes to be int to matched the distributed .lib file. I am + hoping to long term avoid having to do my own custom builds of the .lib + everytime a new release is made. + + -Greg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
