Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1254

build on cygwin, with icu. erorr: conflicting types for `typedef int uint32_t'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 3.0.1
    • Build
    • None
    • cygwin 1.5.10-3
      gcc 3.3.3-1
      icu 3.0

    Description

      during compilation I get this error:

      make[3]: Entering directory `/usr/src/xerces-c-src_2_5_0/src/xercesc/util/Platforms/Win32'
      mkdir -p /usr/src/xerces-c-src_2_5_0/include/xercesc/util/Platforms/Win32
      cp -fp Win32Defs.hpp /usr/src/xerces-c-src_2_5_0/include/xercesc/util/Platforms/Win32
      g++ -D_CYGWIN_ -I/usr/include -I/usr/include/w32api -c -I/usr/src/xerces-c-src_2_5_0/include -w -O -DPROJ_XMLPARSER -DPROJ_XMLUTIL -DPROJ_PARSERS -DPROJ_SAX4C -DPROJ_SAX2 -DPROJ_DOM -DPROJ_VALIDATORS -DXML_USE_ICU_TRANSCODER -I/usr/src/icu//include -DXML_USE_ICU_MESSAGELOADER -I/usr/src/icu//include -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET -D_GNU_SOURCE -D_USE_GNU -DCYGWIN_ -o /usr/src/xerces-c-src_2_5_0/obj/CYGWIN/Win32PlatformUtils.o Win32PlatformUtils.cpp
      In file included from /usr/local/include/unicode/umachine.h:45,
      from /usr/local/include/unicode/utypes.h:36,
      from /usr/local/include/unicode/ures.h:26,
      from /usr/src/xerces-c-src_2_5_0/include/xercesc/util/MsgLoaders/ICU/ICUMsgLoader.hpp:114,
      from Win32PlatformUtils.cpp:110:
      /usr/local/include/unicode/pwin32.h:122: error: conflicting types for `typedef
      int int32_t'
      /usr/include/stdint.h:20: error: previous declaration as `typedef long int
      int32_t'
      /usr/local/include/unicode/pwin32.h:126: error: conflicting types for `typedef
      unsigned int uint32_t'
      /usr/include/stdint.h:28: error: previous declaration as `typedef long unsigned
      int uint32_t'
      make[3]: *** [Win32PlatformUtils.o] Error 1
      make[3]: Leaving directory `/usr/src/xerces-c-src_2_5_0/src/xercesc/util/Platforms/Win32'
      make[2]: *** [all] Error 2
      make[2]: Leaving directory `/usr/src/xerces-c-src_2_5_0/src/xercesc/util/Platforms'
      make[1]: *** [platforms] Error 2
      make[1]: Leaving directory `/usr/src/xerces-c-src_2_5_0/src/xercesc/util'
      make: *** [Util] Error 2

      My previous step:
      1) I compile icu in cygwin
      502 cd icu
      503 cd source/
      506 ./runConfigureICU Cygwin
      510 make
      511 make install
      2) I try to compile xerces with icu, without success
      527 cd xerces-c-src_2_5_0/
      528 export XERCESCROOT=$(pwd)
      529 export ICUROOT=/usr/src/icu/
      533 ./runConfigure -pcygwin -cgcc -xg++ -micu -nsocket -ticu -rpthread
      534 make

      Thank every body in advance...
      Michele

      Attachments

        Activity

          People

            Unassigned Unassigned
            zizzi MIchele Paoli
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: