Opened 16 years ago

Closed 16 years ago

#2370 closed defect (worksforme)

undefined reference to xercesc_2_8::

Reported by: nigelbeameniii Owned by: Mateusz Łoskot
Priority: normal Milestone: 1.5.3
Component: ConfigBuild Version: 1.5.1
Severity: normal Keywords: xerces-c
Cc: warmerdam


'make' fails when compiling either 1.5.1 or svn-trunk with multiple errors. On the same system version 1.4.4 and 1.5.0 compiles fine. undefined reference to `xercesc_2_8::XMLFormatter::operator<<(unsigned short)' undefined reference to `xercesc_2_8::XMLString::catString(unsigned short*, unsigned short const*)' undefined reference to 'xercesc_2_8::SAXParseException::SAXParseException(xercesc_2_8::SAXParseException const&)' undefined reference to `xercesc_2_8::XMLString::copyString(unsigned short*, unsigned short const*)' undefined reference to `xercesc_2_8::XMemory::operator new(unsigned int)' undefined reference to `xercesc_2_8::XMLUni::fgXercesScannerName'

It goes on with a bunch of similar errors for several more lines. I can update with the full list if necessary.

My configure options:

./configure --with-ogr --with-oci=/usr/lib/oracle/xe/app/oracle/product/10.2.0/client --with-oci-include=/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public --with-xerces --with-xerces-lib=/opt/xerces/lib --with-xerces-inc=/opt/xerces/include --with-mrsid=/opt/geoexpress/ --with-jp2mrsid=yes --with-threads



Change History (4)

comment:1 by warmerdam, 16 years ago

Cc: warmerdam added
Component: defaultConfigBuild
Milestone: 1.5.2
Owner: changed from warmerdam to Mateusz Łoskot
Severity: blockernormal


Can you look into this with an aim to correcting it for 1.5.2 since it is apparently a recently introduced problem?

comment:2 by Mateusz Łoskot, 16 years ago

Status: newassigned

My environment is: Ubuntu 7.04, GCC 4.1.2, Xerces-C 2.8.0 (built by hand) and I am not able to reproduce this problem.

  • ./configure
    mloskot@vm-ubuntu704-gdal:~/dev/gdal/_svn/trunk/gdal$ ./configure \
                --with-xerces=/usr/local/xerces-c-2.8.0 \
                --enable-debug \
                --without-libtool \
                --without-ogpython \
                --with-python \
                --with-threads \
                --with-libtiff=internal \
                --with-geotiff=internal \
                --with-gif=internal \
                --with-libz=internal \
                --with-mysql=`which mysql_config` \
                --with-pg=`which pg_config` \
                --with-sqlite3 \
  • compilation with success and all libraries can be found:
    mloskot@vm-ubuntu704-gdal:~/dev/gdal/_svn/trunk/gdal$ ldd $PWD/ 
   =>  (0xffffe000)
   => /usr/lib/ (0xb77a8000)
   => /usr/local/xerces-c-2.8.0/lib/ (0xb73a5000)
   => /lib/tls/i686/cmov/ (0xb738d000)
   => /lib/tls/i686/cmov/ (0xb7384000)
   => /lib/tls/i686/cmov/ (0xb7380000)
   => /usr/lib/ (0xb7296000)
   => /lib/tls/i686/cmov/ (0xb726f000)
   => /lib/ (0xb7263000)
   => /lib/tls/i686/cmov/ (0xb7121000)
   => /usr/lib/ (0xb7022000)
            /lib/ (0x80000000)
  • GML driver based on Xerces-C is also avaialble
    mloskot@vm-ubuntu704-gdal:~/dev/gdal/_svn/trunk/gdal$ ogrinfo --formats |grep GML
      -> "GML" (read/write)


Could you try to do build with minimal options set?

./configure --with-xerces=/opt/xerces --without-libtool

Note, that you don't have to provide include and lib options for Xerces separately, but you can give only --with-xerces option with location of installation prefix.

comment:3 by mloskot, 16 years ago


As I present above, I can not reproduce this problem. Also, Robert has not responded to my suggestion for quite a long time. Should I consider this ticket as worksforme ?

comment:4 by warmerdam, 16 years ago

Resolution: worksforme
Status: assignedclosed

I agree. No point leaving this open with no way to reproduce.

Note: See TracTickets for help on using tickets.