[SAC-HELP] loading external modules for Mac version

Shang-Lin Chen schen at gps.caltech.edu
Tue Nov 8 15:38:32 PST 2005


Hello,

I am working on an external module for the Mac version of SAC2000 that
will let users interact with another program through the SAC interface,
and I'm having trouble getting it to load. Because the version of gcc on
the Mac I used to test this doesn't support the --shared option, I used
this command to compile the module:
    libtool -o libstp.so stp_read.o stp_int.o stp_int_sac.o

libstp.so was compiled without any errors, but I couldn't get SAC2000 to
load it. I entered
    setenv SACSOLIST libstp.so
and set LD_LIBRARY_PATH to include the directory containing libstp.so.
When I started SAC2000 and tried to load the module, I got the error
"ERROR 1028: External command does not exist:".

SAC> load stp
 ERROR 1028: External command does not exist:
SAC>

Modules for Linux and Solaris, using the same source code, work
correctly. Is LD_LIBRARY_PATH the wrong environment variable on a Mac?
If you want to try out the module, its link is
http://www.data.scec.org/ftp/programs/stp/libstp.so.mac. It should be
saved as libstp.so instead of libstp.so.mac.

I was testing on OS X.

Thanks in advance!

Shang-Lin



-- 

Shang-Lin Chen
System administrator/Programmer/Data archivist
Southern California Earthquake Data Center
California Institute of Technology
M/C 252-21
Pasadena, CA 91125-2100





More information about the sac-help mailing list