[Spread-users] Build error on Solaris 10 SPARC w/gcc
Andres Heinloo
andres at gfz-potsdam.de
Wed Jul 29 07:50:22 EDT 2009
On Tue, 28 Jul 2009, Jason Harley wrote:
> Hello,
>
> I'm trying to build spread 4.1.0 on Solaris SPARC using gcc. The same
> arguments to configure (using identically built compilers and libraries)
> works fine on a Solaris x86-64 host.
>
> My configure arguments:
> PREFIX="/usr/local" ./configure --prefix=${PREFIX} \
> --exec-prefix=${PREFIX} \
> --sbindir=${PREFIX}/sbin \
> --bindir=${PREFIX}/bin \
> --libexecdir=${PREFIX}/libexec \
> --datadir=${PREFIX}/share \
> --sysconfdir=${PREFIX}/etc/spread \
> --localstatedir=${PREFIX}/var/spread \
> --with-pid-dir=${PREFIX}/var/spread \
> --libdir=${PREFIX}/lib \
> --infodir=${PREFIX}/info \
> --mandir=${PREFIX}/man \
> --with-ldflags="-lrt"
>
> Using GNU Make (in serial), it errors out when making the shared objects:
>
> > gcc -shared -o libspread.so fl.tlo scatp.tlo alarm.tlo events.tlo memory.tlo sp.tlo -lrt ../stdutil/src/stdarr.lto ../stdutil/src/stdcarr.lto ../stdutil/src/stddll.lto ../stdutil/src/stderror.lto ../stdutil/src/stdfd.lto ../stdutil/src/stdhash.lto ../stdutil/src/stdit.lto ../stdutil/src/stdskl.lto ../stdutil/src/stdthread.lto ../stdutil/src/stdtime.lto ../stdutil/src/stdutil.lto -lm -lsocket -lnsl -lposix4 -lthread -lpthread -Wl,-soname,libspread.so.2
> > ld: warning: option -o appears more than once, first setting taken
> > ld: fatal: file libspread.so.2: open failed: No such file or directory
> > ld: fatal: File processing errors. No output written to libspread.so
> > collect2: ld returned 1 exit status
> > make[1]: *** [libspread.so] Error 1
>
> Any help would be appreciated.
-soname is apparently not supported by Solaris linker (we had this problem
on Solaris 10 x86_64).
Should be '-Wl,-hlibspread.so.2' instead of '-Wl,-soname,libspread.so.2'.
Also ar 'o' flag seems to be incompatible with Solaris.
BTW, does nobody else have the connection problem on Solaris, that I wrote
about few days ago!?
Andres.
More information about the Spread-users
mailing list