[gdal-dev] Compiling fails on Debian

Frank Broniewski brfr at metrico.lu
Mon Jan 9 05:35:31 EST 2012


Hi,

I try to compile gdal 1.9.0RC2 on my Debian machine

brfr at devel:~/gdal$ uname -ra
Linux devel 2.6.32-5-amd64 #1 SMP Mon Oct 3 03:59:20 UTC 2011 x86_64 
GNU/Linux

but make exits with an error 2. The last messages before exiting:
/usr/bin/ld: 
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/libstdc++.a(functexcept.o): 
relocation R_X86_64_32 against `std::bad_typeid::~bad_typeid()' can not 
be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/libstdc++.a: could not read symbols: 
Bad value
collect2: ld returned 1 exit status
make[1]: *** [libgdal.la] Fehler 1
make[1]: Leaving directory `/home/brfr/gdal/gdal-1.9.0'
make: *** [check-lib] Fehler 2

I tried already with the fPIC flag
brfr at devel:~/gdal$ export CXXFLAGS="-fPIC"
brfr at devel:~/gdal$ ./configure --with-python --with-geos=yes --enable-debug
brfr at devel:~/gdal$ make
but without success


Any hints?

Frank



-- 
Frank BRONIEWSKI

METRICO s.à r.l.
géomètres
technologies d'information géographique
rue des Romains 36
L-5433 NIEDERDONVEN

tél.: +352 26 74 94 - 28
fax.: +352 26 74 94 99
http://www.metrico.lu


More information about the gdal-dev mailing list