[Spread-users] Building 64-bit on Solaris 10 (x86_64)

Brian Carey bcarey at jambomedia.com
Mon Nov 23 08:13:29 EST 2009


Thank you very much, I had already made the fix to the configure script 
so once I used the options you specified it built like a charm.

- Brian

dfs at savarese.org wrote:
> In message <4B069DB1.8090000 at jambomedia.com>, Brian Carey writes:
>   
>> I've successfully built the 4.1.0 source in 32-bit mode, however, when 
>> trying to build 64-bit binaries it fails.  Below are my configure 
>>     
> ...
>   
>> I'm using the Sun GCC packages.  Does anyone have any suggestions on 
>> what i'm doing wrong?  I see in previous mailing list posts people
>>     
>
> The build system doesn't propagate all configure options to subpackages.
> Try adding CC='gcc -m64' to force the libstdutil build into 64-bit mode.
> I just verified the following successfully compiles spread 4.1.0 using
> gcc 4.4.0 and binutils 2.19:
>
> ./configure --prefix=/opt/spread-4.1.0 CC='gcc -m64' CFLAGS='-m64 -O2' LDFLAGS='-m64 -lrt'
>
> I just tried it again with the stock gcc 3.4.3 (/usr/sfw/bin/gcc) and
> the Solaris linker (/usr/ccs/bin/ld) and everything compiled except for
> a fatal linker error generating libspread.so.2.  However, the static
> libraries and spread binary built without error.  The stock gcc in
> /usr/sfw uses the Solaris linker, which doesn't grok the -soname option
> passed to it via -Wl,-soname,libspread.so.2 in libspread/Makefile as
> generated by configure.  Therefore, to complete a 64-bit build using
> the stock gcc and Solaris linker, change -soname to -h (which is
> will also work with the GNU linker) in configure, yielding the
> following command sequence to complete your build:
>
> perl -pi -e 's/-soname/-h/g' configure;
> ./configure --prefix=/opt/spread-4.1.0 CC='gcc -m64' CFLAGS='-m64 -O2' LDFLAGS='-m64 -lrt';
>
> daniel
>
> o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o o-o-o-o-o-o-o-o-o-o-o-o-o-o
>                                                      s a v a r e s e
>                                                     software research
>                                                  http://www.savarese.com/
>
>
> _______________________________________________
> Spread-users mailing list
> Spread-users at lists.spread.org
> http://lists.spread.org/mailman/listinfo/spread-users
>
>
>   




More information about the Spread-users mailing list