[SAC-HELP] sac on 64-bit SMP box

Brian Savage savage at uri.edu
Wed Oct 18 07:29:32 PDT 2006


Derek,

There was a posting for me about sac on 64 bit machines, in  
particular linux.  If follows here.

<snip>
SAC is not supported on 64 bit environments, and it will produce  
unexpected results.

I would not say it was a bug, but I would say there are things in the  
SAC code which are not portable between 32 and 64 bit systems.  These  
things need to be attended to.

You should be able to run a 32 bit binary on a 64 bit system.
<snip>

Two things in specific, the declaration of the sac header on 32 and  
64 bit machines results in different file sizes, and many function  
calls are using non-portable, 32 to 64 bit, declaration of pointers.

Cheers,
Brian


On Oct 17, 2006, at 5:46 PM, Derek wrote:

> Hi,
>
> I'm hoping to install sac on a linux box running 64bit SMP linux
>
>> uname -a
>
>         Linux localhost.localdomain 2.6.15-1.1833_FC4smp #1 SMP Wed  
> Mar
>         1 23:55:52 EST 2006 x86_64 x86_64 x86_64 GNU/Linux
>
> but, in reading the archives of this mail list, it seems SAC won't  
> work
> in 64-bit mode, and indeed, when I compile the source version I have
> (05Mar01.sac.tgz), it fails.  Although, it seems to fail because it
> can't find or can't make a proper X11 library:
>
>         [snip from "make" output]
>         cc -w -DLINUX -o ../bin/sac \
>         main/sac.o ../lib/sac.a ../lib/libevresp.a ../lib/ 
> libSMnonOracleFuncs.a ../lib/libSacOracleStubFuncs.a   -L/usr/X11R6/ 
> lib -lX11 -lm -lnsl -ldl
>         /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.so  
> when
>         searching  for -lX11
>         /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.a  
> when
>         searching for -lX11
>         /usr/bin/ld: cannot find -lX11
>         collect2: ld returned 1 exit status
>         make[1]: *** [SAC] Error 1
>         make[1]: Leaving directory `/usr/local/sac/src'
>         gmake: *** [all] Error 2
>
> Can any one tell me if I should request a 32-bit binary, or if  
> there is
> a way to compile it to make it work?
>
> Thanks,
>
> Derek
> Univ. Wyoming
> _______________________________________________
> sac-help mailing list
> sac-help at iris.washington.edu
> http://www.iris.washington.edu/mailman/listinfo/sac-help




More information about the sac-help mailing list