[Developers] Cactus Port to Solaris

Ankush Gupta Ankush.Gupta at Sun.COM
Thu May 31 00:05:09 CDT 2007


Hi Thomas

    Ya I had made the same and tried that too.  The following error is 
seen when I try to build the WaveDemo example on Solaris 10 powered by 
AMD 64 processor in this case.

"/usr/include/sys/isa_defs.h", line 462: undefined control
gmake[3]: *** [Check.c.d] Error 2
gmake[2]: *** [make.checked] Error 2
gmake[1]: *** 
[/export/home/ankush/Office_work/port_work/Cactus/cactus_exp/Cactus/configs/WaveDemo/lib/libBoundary.a] 
Error 2
gmake: *** [WaveDemo] Error 2

Thanks
Ankush


Thomas Radke wrote:
> 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 ?
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.cactuscode.org/pipermail/developers/attachments/20070531/cb99e5f6/attachment.html 


More information about the Developers mailing list