[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problems building Solaris shared object
From: |
Herbert W. Swan |
Subject: |
Problems building Solaris shared object |
Date: |
Sat, 10 May 2003 14:13:50 -0800 (AKDT) |
I've had a little difficulty building the Ghostscript shared object
and associated "gsc" front-end. I am building AFPL Ghostscript 8.00
for Solaris 2.8. The problem occurs during "make so" when it
attempts to build the libgs.so.8.0 shared object:
/bin/sh <./obj/../soobj/ldt.tr
ld: warning: option -o appears more than once, first setting taken
ld: fatal: file libgs.so.8: open failed: No such file or directory
ld: fatal: File processing errors. No output written to
./bin/../sobin/libgs.so.8.0
collect2: ld returned 1 exit status
make[1]: *** [bin/../sobin/libgs.so.8.0] Error 1
make[1]: Leaving directory `/usr/h/hswan/import/ghostscript-8.00'
make: *** [so] Error 2
I've traced the problem to the "-Wl,-soname,libgs.so.8" option written to the
soobj/ldt.tr file. If I remove this option from this file, then manually
execute it, I'm able to produce the sobin/libgs.so.8.0 library. Then if
I again run "make so", everything builds OK.
I have further traced this problem to the version of gcc that I am
using. My current version is:
chaos% gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.3/specs
Configured with: ../gcc-3.0.3/configure
Thread model: posix
gcc version 3.0.3
An older version of gcc compiled for a Solaris 2.7 system:
turnagain% gcc -v
Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
recognizes and honors the -Wl,-soname,libgs.so.8 option. When I use this gcc,
the build process works correctly without manual intervention. On both systems,
I'm using the GNU linker version 2.13.1.
Should I upgrade gcc on my Solaris 2.8 system, or is there something I should
tweak in my Makefile.in ? Is -Wl supported on all gcc compilers?
I realise this is a fairly specialised topic. I appreciate the attention that
anyone may give to it.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Problems building Solaris shared object,
Herbert W. Swan <=