Thread: sacio.a for linux

Started: 2010-06-09 22:02:49
Last activity: 2010-06-09 22:02:49
Topics: SAC Help
Shahar Shani Kadmiel
2010-06-09 22:02:49
I am trying to compile a short c code using some subroutines from sacio.a

I get this error:

sacio.a: could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status

When I run ranlib, I get this:

ranlib: sacio.a: Malformed archive

I have a feeling this has to do with the fact I am using the sacio.a archive which is distributed with MacSAC and is not compatible with the linux machine I am compiling on.
What to do?



  • Brian Savage
    2010-06-09 16:24:12
    Dear Shahar Shandi Kadmiel

    You are trying to use a library compiled for Mac/OSX on a linux
    machine. This is always going to fail.
    If you need a linux version of sac along with the sacio.a library,
    please obtain a version from IRIS.

    http://www.iris.edu/software/sac/
    http://www.iris.edu/software/sac/sac.request.htm

    Brian


    On Jun 9, 2010, at 8:02 AM , Shahar Shani Kadmiel wrote:

    I am trying to compile a short c code using some subroutines from
    sacio.a

    I get this error:

    sacio.a: could not read symbols: Archive has no index; run ranlib to
    add one
    collect2: ld returned 1 exit status

    When I run ranlib, I get this:

    ranlib: sacio.a: Malformed archive

    I have a feeling this has to do with the fact I am using the sacio.a
    archive which is distributed with MacSAC and is not compatible with
    the linux machine I am compiling on.
    What to do?


    _______________________________________________
    sac-help mailing list
    sac-help<at>iris.washington.edu
    http://www.iris.washington.edu/mailman/listinfo/sac-help


02:44:13 v.b3198453