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

build xerces-c with icu on mingw gcc 4.7.2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.1.2, 3.2.0
    • None
    • None
    • mingw
      icu 5 from trunk
      xerces-c from trunk
      gcc 4.7.2

    Description

      i am trying build xerces-c with icu

      reconf
      ./configure --enable-transcoder-icu --enable-msgloader-icu --disable-network

      in the end
      configure:21971: Report:
      configure:21973: File Manager: Windows
      configure:21975: Mutex Manager: Windows
      configure:21977: Transcoder: windows
      configure:21979: NetAccessor: disabled
      configure:21981: Message Loader: inmemory

      in config.log
      configure:18085: checking for ucnv_open in -licuuc
      configure:18103: g++ -o conftest.exe -O2 -mthreads -I/icu1/include -lpthread -lm -L/icu1/lib -licui18n -licuuc -licudata -lpthread -lm conftest.cpp >&5
      C:\Users\ALEKSE~1.DOB\AppData\Local\Temp\ccg1wi5K.o:conftest.cpp.text.startup+0x1e): undefined reference to `ucnv_open_51'
      collect2.exe: error: ld returned 1 exit status

      This error occurs because conftest.cpp specified later runtime libraries on which it depends.
      this command work fine
      g++ -o conftest.exe -O2 conftest.cpp -mthreads -I/icu1/include -lpthread -lm -L/icu1/lib -licui18n -licuuc -licudata -lpthread -lm

      Attachments

        1. xerces_icu_prefix.m4.diff
          0.6 kB
          Aleksey Dobrunov

        Activity

          People

            amassari Alberto Massari
            ctapmex Aleksey Dobrunov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: