[Mapserver-users] ia64 php mapscript compile error
AARON KONING
aaronkoning at shaw.ca
Sun Jun 13 05:00:25 PDT 2004
Hi List,
I am having the following problem when attempting to
compile PHP Mapscript on Linux Suse under an Altix
64bit server. The error as shown below is: '@gprel
relocation against dynamic symbol'. I have read that
it may be be due to the fact that "...non-pic object
files are linked into a shared library. The ia64
compiler _requires_ that all code in a shared
library is compiled with -fpic."
I have set CXXFLAGS equal to PIC and then recompiled
PHP and mapserver/mapscript but I still get the same
error. Anybody have any thoughts on this?
Linux Suse OS: 2.4.21-215-itanium2-smp
gcc: 3.2.2
PHP: 4.3.7
MapServer: 4.0.2
---------- ERROR:
# make
g++ -shared -o php_mapscript.so php_mapscript_util.o php_mapscript.o mapscript_i.o -L/usr/local/src/gissrc/mapserver-4.0.2 -lmap -L/usr/local/lib -lcurl -lssl -lcrypto -ldl -lz -L/usr/local/pgsql/lib -lpq -L/usr/local/lib -lgdal.1.1 -lproj -ltiff -ljpeg -lfreetype -lpng -lz -lpdf -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -ljpeg -lm -lstdc++
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyystate
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyystring
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyystate
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyyreturncomments
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyyin
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyyout
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyyin
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyyreturncomments
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyylineno
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyyout
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyyin
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyystring
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyystate
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyystring
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyyreturncomments
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyystate
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyystring
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyyreturncomments
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyystate
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyystring
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyyreturncomments
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyyin
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyyin
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyyin
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyyin
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyyin
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyyin
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyyin
/usr/lib/gcc-lib/ia64-suse-linux/3.2.2/../../../../ia64-suse-linux/bin/ld: /usr/local/src/gissrc/mapserver-4.0.2/libmap.a(maplexer.o): @gprel relocation against dynamic symbol msyyin
collect2: ld returned 1 exit status
make: *** [php_mapscript.so] Error 1
---------------------- END ERROR
Thanks,
Aaron
More information about the MapServer-users
mailing list