[Developers] Cactus Port to Solaris
Thomas Radke
tradke at aei.mpg.de
Wed May 30 11:33:45 CDT 2007
Ankush Gupta wrote:
> Hello,
>
> I was trying to port Cactus to Solaris 10,using gcc and MPICH. On
> loading I get the error of symbols like (send recv etc. ).
> When I had set the LD_FLAGS env variables to "-lsocket -lnsl".It works
> fine. I wanted to add that to known-configurations
> solaris 2.10
>
> #! /bin/sh
> # /*@@
> # @file solaris2.11
> # @date April 6th 2004
> # @author Gabrielle Allen
> # @desc
> # # @enddesc
> # @version $Header:
> /cactus/Cactus/lib/make/known-architectures/solaris2.11,v 1.1 2004/04/07
> 17:28:05 allen Exp $
> # @@*/
>
> #. $srcdir/known-architectures/solaris
> LD_FLAGS="$LDFLAGS -L/usr/lib -lnsl -lsocket"
> LIBS="socket nsl m"
>
> It dint pick up those flags. So I wanted to know how could I set those
> flags so that it uses them for compiling cactus.
Hi Ankush,
Cactus should automatically detect systems running Solaris 2.6 up to
2.9. The general known-architectures file for this version of Solaris
already includes "socket nsl m" in the LIBS makefile variable iff the
user has not set it manually.
I guess if Solaris 10 isn't completely different from its predecessor
versions, all you need to do is to add a file
lib/make/known-architectures/solaris10 with the same contents as one of
the solaris2.x files. Does this work ?
--
Cheers, Thomas.
More information about the Developers
mailing list