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

configure incorrectly detects curl in cross-compile build

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.0.0
    • 3.1.0
    • Build
    • None
    • Linux 2.6.27-gentoo-r8 #1 SMP PREEMPT Tue Jan 27 11:07:48 CET 2009 i686 Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz GenuineIntel GNU/Linux

    Description

      I' trying to cross-compile xerces-c for ARM/Xscale. Build host Linux x86, target platform Xcale BE.
      The configure script detects presence of curl as the NetAccessor candidate based on presence of /usr/include/curl/* on the build host not in the cross-compile toolchain.

      Example:
      My cross compile toolchain is installed under /opt/clfs/armv5teb-softfloat-linux-gnueabi so when invoking configure scripte like

      ~/tmp/xerces-c-3.0.0 $ ./configure --host=armv5teb-softfloat-linux-gnueabi

      I get this output:
      ...
      checking for libcurl... /usr
      checking whether we can support the libcurl-based NetAccessor... yes
      checking whether we can support the sockets-based NetAccessor... yes
      checking for which NetAccessor to use (choices: curl socket)... curl
      ...

      The configure script should check headers and libraries under /opt/clfs/armv5teb-softfloat-linux-gnueabi/usr/include resp. /opt/clfs/armv5teb-softfloat-linux-gnueabi/usr/lib. In my case there is no curl directory under /opt/clfs/armv5teb-softfloat-linux-gnueabi/usr/include but the configure script detects curl as installed chooses it as the preferred NetAccessor.
      Instead, it likely checks the /usr/include of the build host because If I rename it to let's say /usr/include/curl.bak the .configure script doesn't find curl and uses socket as the preferred NetAccessor.

      There is a workaround to use the --disable-netaccessor-curl option but the configure script should work correctly with default settings.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mkes Miroslav Kes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: