Hi. I'm trying to build and install some Free/OpenSource software (mapserver) that is
packaged with GNU's automake, but it is failing in a way that I think is
Solaris-specific. It seems to be unable to resolve a bunch (13,000) symbols,
including ones that should be in the std libs. I've forced the c++ command (which the
package's makefile uses to invoke ld) to look every lib directory I could think of,
but the results are the same. Should I be specifying /usr/lib before
/opt/sfw/gcc-3/lib? Should I be using gcc 2.95.3? Do I need to install a libc in
addition to /usr/lib/libc*? Am I completly off-base about what the error msg means?
The symptom of my problem is that I get the message "ld: fatal: relocations remain
against allocatable but non-writable sections" when the package's Makefile uses c++ to
build a shared library after compiling the .o's.
The system I am using is complete Solaris 9 (12/03 update, w/ recommended patches as
of Feb 9) plus the Companion Disk (a bunch of GNU and other F/OSS which get installed
in /usr/sfw and /opt/sfw, and which Sun compiles with its proprietary compilers).
I do not have the Sun proprietary compilers, and am using gcc 3.3 instead.
/usr/local is a symlink to /opt/local.
Thanks for taking the time to look at this.
/don
The builds of php_mapscript_util.o, php_mapscript.o, and mapscript_i.o seem to go OK.
The building of php_mapscript.so is where it fails:
c++ -shared -R/usr/local/lib:/usr/local/pgsql/lib -L/usr/local/lib
-L/opt/sfw/gcc-3/lib -L/lib -L/usr/lib -L/usr/ccs/lib -L/usr/xpg4/lib -L/usr/dt/lib
-L/usr/openwin/lib -L/usr/X/lib -L/usr/local/pgsql/lib -o php_mapscript.so
php_mapscript_util.o php_mapscript.o mapscript_i.o -L/opt/local/src/mapserver-4.0.1
-lmap -L/usr/local/pgsql/lib -lpq -L/usr/local/lib -lproj -L/lib -lz
-L/lib -lXpm -lX11 -L/usr/local/lib -lgd -L/lib -lz -L/lib -lXpm -lX11 -lm
-lstdc++
Text relocation remains referenced
against symbol offset in file
<unknown> 0x49c
/opt/local/src/mapserver-4.0.1/libmap.a(maptemplate.o)
<unknown> 0x4a0
/opt/local/src/mapserver-4.0.1/libmap.a(maptemplate.o)
<unknown> 0x4a4
/opt/local/src/mapserver-4.0.1/libmap.a(maptemplate.o)
<unknown> 0x4a8
/opt/local/src/mapserver-4.0.1/libmap.a(maptemplate.o)
<unknown> 0x4ac
/opt/local/src/mapserver-4.0.1/libmap.a(maptemplate.o)
<unknown> 0x4b0
/opt/local/src/mapserver-4.0.1/libmap.a(maptemplate.o)
<unknown> 0x4b4
/opt/local/src/mapserver-4.0.1/libmap.a(maptemplate.o)
. . . Skipping nearly 13,000 such lines . . .
cos 0x9bb0
/opt/local/src/mapserver-4.0.1/libmap.a(mapgd.o)
cos 0x1828
/opt/local/src/mapserver-4.0.1/libmap.a(mapimagemap.o)
asin 0x180c
/opt/local/src/mapserver-4.0.1/libmap.a(maplabel.o)
asin 0x180c
/opt/local/src/mapserver-4.0.1/libmap.a(mapprimitive.o)
asin 0x1a10
/opt/local/src/mapserver-4.0.1/libmap.a(mapprimitive.o)
asin 0x2684
/opt/local/src/mapserver-4.0.1/libmap.a(mapprimitive.o)
ceil 0x4e4
/opt/local/src/mapserver-4.0.1/libmap.a(maperror.o)
ceil 0x10dc
/opt/local/src/mapserver-4.0.1/libmap.a(mapgraticule.o)
ceil 0x111c
/opt/local/src/mapserver-4.0.1/libmap.a(mapgraticule.o)
atan 0x7a4
/opt/local/src/mapserver-4.0.1/libmap.a(mapgd.o)
log10 0x1110
/opt/local/src/mapserver-4.0.1/libmap.a(mapgraticule.o)
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
Don Wolski mailstop ENRS, Natural Resources 211c
Unix System Administrator Information Technology Unit
[EMAIL PROTECTED] College of NR and Sciences
707-826-3536 (voice) Humboldt State University
707-826-3501 (fax) Arcata, CA 95521-8299
_______________________________________________
Solaris-Users mailing list
[EMAIL PROTECTED]
http://www.filibeto.org/mailman/listinfo/solaris-users