Thread: Problem running macro in SAC

Started: 2014-08-12 18:54:32
Last activity: 2014-08-12 22:10:26
Topics: SAC Help
Jorge
2014-08-12 18:54:32
Dear all

I’m trying to run an inversion in FORTRAN that it call a SAC macro. When I check my script in fortran, I obtained this message. Any suggestions please?


Undefined symbols for architecture x86_64:
"_getfhv_", referenced from:
_rdata_ in ccUODMIq.o
"_newhdr_", referenced from:
_datsac_ in ccUODMIq.o
_synsac_ in ccUODMIq.o
"_rsac1_", referenced from:
_rdata_ in ccUODMIq.o
"_setfhv_", referenced from:
_datsac_ in ccUODMIq.o
_synsac_ in ccUODMIq.o
"_setkhv_", referenced from:
_datsac_ in ccUODMIq.o
_synsac_ in ccUODMIq.o
"_setnhv_", referenced from:
_datsac_ in ccUODMIq.o
_synsac_ in ccUODMIq.o
"_wsac0_", referenced from:
_datsac_ in ccUODMIq.o
_synsac_ in ccUODMIq.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
Thanks in advance

Jorge
  • Satish_iitb
    2014-08-12 22:05:31
    I am not so sure.

    but may be you are using sac library or some else FORTRAN library, which is
    not support to current compiler.
    I think, you also compile the library for your system you use same compiler
    for all. bit(32/64 compiler library).

    Hope it works...


    On Tue, Aug 12, 2014 at 11:54 AM, Jorge Jara <jorge.jara<at>ujf-grenoble.fr>
    wrote:

    Dear all

    I’m trying to run an inversion in FORTRAN that it call a SAC macro. When I
    check my script in fortran, I obtained this message. Any suggestions please?


    Undefined symbols for architecture x86_64:
    "_getfhv_", referenced from:
    _rdata_ in ccUODMIq.o
    "_newhdr_", referenced from:
    _datsac_ in ccUODMIq.o
    _synsac_ in ccUODMIq.o
    "_rsac1_", referenced from:
    _rdata_ in ccUODMIq.o
    "_setfhv_", referenced from:
    _datsac_ in ccUODMIq.o
    _synsac_ in ccUODMIq.o
    "_setkhv_", referenced from:
    _datsac_ in ccUODMIq.o
    _synsac_ in ccUODMIq.o
    "_setnhv_", referenced from:
    _datsac_ in ccUODMIq.o
    _synsac_ in ccUODMIq.o
    "_wsac0_", referenced from:
    _datsac_ in ccUODMIq.o
    _synsac_ in ccUODMIq.o
    ld: symbol(s) not found for architecture x86_64
    collect2: error: ld returned 1 exit status
    Thanks in advance

    Jorge

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




    --
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    *Satish Maurya*


    * Ph.D. studentDept. of Seismology*
    *IPGP, France*
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    • Jorge
      2014-08-12 22:10:26
      Thanks a lot! I will try your advice!

      Jorge
      El 12/08/2014, a las 15:05, satish maurya <maurya2278satish<at>gmail.com> escribió:

      I am not so sure.

      but may be you are using sac library or some else FORTRAN library, which is not support to current compiler.
      I think, you also compile the library for your system you use same compiler for all. bit(32/64 compiler library).

      Hope it works...


      On Tue, Aug 12, 2014 at 11:54 AM, Jorge Jara <jorge.jara<at>ujf-grenoble.fr> wrote:
      Dear all

      I’m trying to run an inversion in FORTRAN that it call a SAC macro. When I check my script in fortran, I obtained this message. Any suggestions please?


      Undefined symbols for architecture x86_64:
      "_getfhv_", referenced from:
      _rdata_ in ccUODMIq.o
      "_newhdr_", referenced from:
      _datsac_ in ccUODMIq.o
      _synsac_ in ccUODMIq.o
      "_rsac1_", referenced from:
      _rdata_ in ccUODMIq.o
      "_setfhv_", referenced from:
      _datsac_ in ccUODMIq.o
      _synsac_ in ccUODMIq.o
      "_setkhv_", referenced from:
      _datsac_ in ccUODMIq.o
      _synsac_ in ccUODMIq.o
      "_setnhv_", referenced from:
      _datsac_ in ccUODMIq.o
      _synsac_ in ccUODMIq.o
      "_wsac0_", referenced from:
      _datsac_ in ccUODMIq.o
      _synsac_ in ccUODMIq.o
      ld: symbol(s) not found for architecture x86_64
      collect2: error: ld returned 1 exit status
      Thanks in advance

      Jorge

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




      --
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      Satish Maurya
      Ph.D. student
      Dept. of Seismology
      IPGP, France
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


07:47:26 v.9a3bf08e