[gdal-dev] with-kakadu error

Gong, Shawn (Contractor) Shawn.Gong at drdc-rddc.gc.ca
Thu Oct 15 13:28:55 EDT 2009


hi list,

I received Kakadu v6_2_1-00984N.zip and tried to build it on 64-bit
Linux.
Kakadu make went smoothly. 
libkdu.a, libkdu_a62R.so, etc were generated in
kakadu-v6_2_1-00984N/lib/Linux-x86-64-gcc/

Then I added
"--with-kakadu=/home/sgong/build_openev2/kakadu-6_2_1-00984N" in Gdal
config. I got the following error:
libtool: link: rm -fr  .libs/libgdal.la.lnkscript
libtool: link: creating GNU ld script: .libs/libgdal.la.lnkscript
libtool: link: g++ -shared -nostdlib
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtbeginS.o
.libs/libgdal.la.lnkscript  -Wl,-rpath
-Wl,/home/sgong/build_openev2/install/lib -Wl,-rpath
-Wl,/home/sgong/build_openev2/install/lib -lsqlite3
-L/home/sgong/build_openev2/install/lib
/home/sgong/build_openev2/install/lib/libhdf5.so -lmfhdf -ldf
/home/sgong/build_openev2/install/lib/libsz.so
-L/home/sgong/build_openev2/install -ljpeg
/home/sgong/build_openev2/install/lib/libnetcdf.a -lz -lrt -ldl
-L/home/sgong/build_openev2/kakadu-6_2_1-00984N/lib -lkdu
-L/usr/lib/gcc/x86_64-redhat-linux/4.1.2
-L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64 -lstdc++ -lm -lc -lgcc_s
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtendS.o
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crtn.o
-Wl,-soname -Wl,libgdal.so.1 -o .libs/libgdal.so.1.13.2
/usr/bin/ld:
/home/sgong/build_openev2/kakadu-6_2_1-00984N/apps/make/args.o:
relocation R_X86_64_32 against `a local symbol' can not be used when
making a shared object; recompile with -fPIC
/home/sgong/build_openev2/kakadu-6_2_1-00984N/apps/make/args.o: could
not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libgdal.la] Error 1
make[1]: Leaving directory
`/home/sgong/build_openev2/gdal-svn-stable-2009.09.04'


I did compile both Kakadu and Gdal with -fPIC. Why am I getting this
error?

thanks,
Shawn



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20091015/be67a06c/attachment.html


More information about the gdal-dev mailing list