[gdal-dev] Building gdal/ogr with expat support fails when trying to configure ogdi as well (?)

Nikos Alexandris nikos.alexandris at felis.uni-freiburg.de
Fri Feb 29 14:25:37 EST 2008


On Tue, 2008-02-26 at 11:45 -0500, Frank Warmerdam wrote:
> Nikos Alexandris wrote:
[...]
> 
> Nikos,
> 
> You might want to look in the config.log to see why the expat isn't working.
> I suspect things are getting mixed up with the version of expat embedded
> in OGDI.  If you are building the OGDI from source, I would encourage you
> to also force it to build against the system copy of expat instead of it's
> internal version.
> 
> Good luck,

Thank you Frank!

I 've been hunting OGDI compilation from source but no luck with the
configuration. I suspect due to my 64-bit system.

Anybody with an Ubuntu 64bit machine compiling OGDI?

Details:

 ./configure --with-proj=yes --with-projlib=/usr/lib
--with-projinc=/usr/include --with-zlib=yes --with-zliblib=/usr/lib
--with-zlibinc=/usr/include --with-expat=yes --with-expatlib=/usr/lib
--with-expatinc=/usr/include
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for dlopen in -ldl... (cached) yes
checking for  -shared ... no(1)
checking for ld -shared ... yes
checking how to run the C preprocessor... (cached) gcc -E
checking for rpc/pmap_clnt.h... (cached) yes
checking for float.h... (cached) yes
checking for dlfcn.h... (cached) yes
checking whether byte ordering is bigendian... (cached) no
checking for pj_init in -lproj... (cached) yes
checking for projects.h... (cached) yes
Using PROJ_LIB=/usr/lib for PROJ.4 library.
Using PROJ_INCLUDE=-I/usr/include for PROJ.4 includes.
checking for deflateInit_ in -lz... (cached) yes
checking for zlib.h... (cached) yes
Using ZLIB_LIB=/usr/lib for ZLIB library.
Using ZLIB_INCLUDE=-I/usr/include for ZLIB includes.
checking for XML_ParserCreate in -lexpat... (cached) yes
checking for expat.h... (cached) yes
Using EXPAT_LIB=/usr/lib for Expat library.
Using EXPAT_INCLUDE=-I/usr/include for Expat includes.
creating ./config.status
creating config/generic.mak


and


make
making install dirs using /usr/local/src/ogdi-3.1.5/config/mkinstalldirs
/usr/local/src/ogdi-3.1.5/config/mkinstalldirs /usr/local/src/ogdi-3.1.5/lib/Linux/static
/usr/local/src/ogdi-3.1.5/config/mkinstalldirs /usr/local/src/ogdi-3.1.5/bin/Linux
cd external; make
make[1]: Entering directory `/usr/local/src/ogdi-3.1.5/external'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/src/ogdi-3.1.5/external'
cd vpflib; make
make[1]: Entering directory `/usr/local/src/ogdi-3.1.5/vpflib'
/usr/local/src/ogdi-3.1.5/config/mkinstalldirs OBJ.Linux
make --directory OBJ.Linux -f ../makefile
PASS='depend' /usr/local/src/ogdi-3.1.5/lib/Linux/static/libvpf.a
make[2]: Entering directory `/usr/local/src/ogdi-3.1.5/vpflib/OBJ.Linux'
make[2]: `/usr/local/src/ogdi-3.1.5/lib/Linux/static/libvpf.a' is up to
date.
make[2]: Leaving directory `/usr/local/src/ogdi-3.1.5/vpflib/OBJ.Linux'
make[1]: Leaving directory `/usr/local/src/ogdi-3.1.5/vpflib'
cd ogdi; make
make[1]: Entering directory `/usr/local/src/ogdi-3.1.5/ogdi'
cd include; make
make[2]: Entering directory `/usr/local/src/ogdi-3.1.5/ogdi/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/src/ogdi-3.1.5/ogdi/include'
cd c-api; make
make[2]: Entering directory `/usr/local/src/ogdi-3.1.5/ogdi/c-api'
/usr/local/src/ogdi-3.1.5/config/mkinstalldirs OBJ.Linux
make --directory OBJ.Linux -f ../makefile
PASS='depend' /usr/local/src/ogdi-3.1.5/bin/Linux/libogdi31.so
make[3]: Entering directory
`/usr/local/src/ogdi-3.1.5/ogdi/c-api/OBJ.Linux'
Making shared library: /usr/local/src/ogdi-3.1.5/bin/Linux/libogdi31.so
gcc -shared  -O  -o /usr/local/src/ogdi-3.1.5/bin/Linux/libogdi31.so
ecs_dyna.o ecsregex.o ecssplit.o ecsassoc.o ecshash.o ecstile.o server.o
ecsdist.o ecslist.o ecsinfo.o ecsgeo.o ecs_xdr.o ecs_xdrz.o gmath.o
client.o ecs_capabilities.o -ldl  /usr/lib /usr/lib  /usr/lib  -lm 


/usr/bin/ld: ecs_dyna.o: relocation R_X86_64_32 against `a local symbol'
can not be used 
when making a shared object; recompile with -fPIC

# I think this is the one but I am not sure how to go about it


ecs_dyna.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [/usr/local/src/ogdi-3.1.5/bin/Linux/libogdi31.so] Error 1
make[3]: Leaving directory
`/usr/local/src/ogdi-3.1.5/ogdi/c-api/OBJ.Linux'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/ogdi-3.1.5/ogdi/c-api'
make[1]: *** [c-api] Error 2
make[1]: Leaving directory `/usr/local/src/ogdi-3.1.5/ogdi'
make: *** [ogdi] Error 2



More information about the gdal-dev mailing list