Opened 15 years ago
Closed 15 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 |
Description
'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.
libgdal.so: undefined reference to `xercesc_2_8::XMLFormatter::operator<<(unsigned short)' libgdal.so: undefined reference to `xercesc_2_8::XMLString::catString(unsigned short*, unsigned short const*)' libgdal.so: undefined reference to 'xercesc_2_8::SAXParseException::SAXParseException(xercesc_2_8::SAXParseException const&)' libgdal.so: undefined reference to `xercesc_2_8::XMLString::copyString(unsigned short*, unsigned short const*)' libgdal.so: undefined reference to `xercesc_2_8::XMemory::operator new(unsigned int)' libgdal.so: 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
Thanks,
Robert
Change History (4)
comment:1 by , 15 years ago
Cc: | added |
---|---|
Component: | default → ConfigBuild |
Milestone: | → 1.5.2 |
Owner: | changed from | to
Severity: | blocker → normal |
comment:2 by , 15 years ago
Status: | new → assigned |
---|
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 \ --with-netcdf
- compilation with success and all libraries can be found:
mloskot@vm-ubuntu704-gdal:~/dev/gdal/_svn/trunk/gdal$ ldd $PWD/libgdal.so linux-gate.so.1 => (0xffffe000) libgeos_c.so.1 => /usr/lib/libgeos_c.so.1 (0xb77a8000) libxerces-c.so.28 => /usr/local/xerces-c-2.8.0/lib/libxerces-c.so.28 (0xb73a5000) libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb738d000) librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb7384000) libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7380000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7296000) libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb726f000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7263000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7121000) libgeos.so.2 => /usr/lib/libgeos.so.2 (0xb7022000) /lib/ld-linux.so.2 (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)
Robert,
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 , 15 years ago
Frank,
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 , 15 years ago
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
I agree. No point leaving this open with no way to reproduce.
Mateusz,
Can you look into this with an aim to correcting it for 1.5.2 since it is apparently a recently introduced problem?