[Spread-users] Build error on Solaris 10 SPARC w/gcc

Jason Harley jharley at oanda.com
Tue Jul 28 15:31:56 EDT 2009


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 \

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.


More information about the Spread-users mailing list