[Mapserver-users] ia64 php mapscript compile error
Lars Holm Loldrup
LLO at CARLBRO.DK
Mon Jun 14 02:16:11 PDT 2004
I had this problem, and it was solved by adding -fpic to ALL compilations.
regards Lars Loldrup
-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu]On Behalf Of AARON
KONING
Sent: Sunday, June 13, 2004 1:00 PM
To: Mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] ia64 php mapscript compile error
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
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list