[mapserver-users] AGG Compile error with PHP Mapscript

Nicol Hermann mapserver at geoworld.de
Mon Mar 31 17:31:10 EDT 2008


Hi List,

i like to compile mapserver 5.0.2 with agg support on my amd64 bit
debian testing box.
I installed libagg-dev ( 2.5+dfsg1-1 )
If i run a "normal" configure without PHP mapscript mapserver compiles
without any error.
Whenever i include PHP Mapscript support (--with-php=/usr/local/php5) i
get the following error message: (PHP 5.2.2)

/usr/bin/ld: /usr/lib64/libagg.a(agg_arc.o): relocation R_X86_64_32
against `__gxx_personality_v0' can not be used when making a shared
object; recompile with -fPIC
/usr/lib64/libagg.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [php_mapscript.so] Fehler 1
make[1]: Leaving directory
`/usr/local/src/mapserver/mapserver-5.0.2/mapscript/php3'

Does anybody know what is going wrong?

gcc --version
gcc (GCC) 4.2.3 (Debian 4.2.3-2)

c++ --version
c++ (GCC) 4.2.3 (Debian 4.2.3-2)

Many thanks
Nicol



More information about the mapserver-users mailing list