Thread: linux and sac lib

Started: 2017-07-21 09:24:23
Last activity: 2017-07-21 22:56:08
Topics: SAC Help
Paola Morasca
2017-07-21 09:24:23
Hello,

I am having trouble using SAC libraries for a particular Fortran code
that works perfectly on sun machines but not on my Linux. The code uses:
readbbf, getbbv, setbbv, writebbf

Here is the error:

make all
make: Warning: File 'Makefile' has modification time 933 s in the future
gfortran Masterprogram.o /usr/local/sac2000/lib/libsac.a /usr/local/sac2000/lib/sacio.a -o Masterprogram
/usr/local/sac2000/lib/sacio.a(deletev.o): In function `deletev':
deletev.c:(.text+0x1b4): undefined reference to `copy_float'
/usr/local/sac2000/lib/sacio.a(increasenlist.o): In function `increasenlist':
increasenlist.c:(.text+0x2d3): undefined reference to `copy_float'
collect2: error: ld returned 1 exit status
Makefile:25: recipe for target 'Masterprogram' failed
make: *** [Masterprogram] Error 1

below some info:

uname -a
Linux openquake-vm 4.8.0-39-generic #42~16.04.1-Ubuntu SMP Mon Feb 20 15:06:07 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

sac version: 101.5

gfortran --version
GNU Fortran (Ubuntu 5.4.0-6ubuntu1~16.04.4)

Thanks for your help

Paola

  • Brian Savage
    2017-07-21 16:00:16
    Dear Paola Morasca,

    Please upgrade to the latest sac version (Version 101.6a – November 21, 2013).
    http://ds.iris.edu/ds/nodes/dmc/forms/sac/

    If the problem continues after upgrading, please let me know.

    Thanks,
    Brian

    On Jul 21, 2017, at 5:24 AM, Paola Morasca <paola.morasca<at>ingv.it> wrote:

    Hello,

    I am having trouble using SAC libraries for a particular Fortran code
    that works perfectly on sun machines but not on my Linux. The code uses:
    readbbf, getbbv, setbbv, writebbf

    Here is the error:

    make all
    make: Warning: File 'Makefile' has modification time 933 s in the future
    gfortran Masterprogram.o /usr/local/sac2000/lib/libsac.a /usr/local/sac2000/lib/sacio.a -o Masterprogram
    /usr/local/sac2000/lib/sacio.a(deletev.o): In function `deletev':
    deletev.c:(.text+0x1b4): undefined reference to `copy_float'
    /usr/local/sac2000/lib/sacio.a(increasenlist.o): In function `increasenlist':
    increasenlist.c:(.text+0x2d3): undefined reference to `copy_float'
    collect2: error: ld returned 1 exit status
    Makefile:25: recipe for target 'Masterprogram' failed
    make: *** [Masterprogram] Error 1

    below some info:

    uname -a
    Linux openquake-vm 4.8.0-39-generic #42~16.04.1-Ubuntu SMP Mon Feb 20 15:06:07 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

    sac version: 101.5

    gfortran --version
    GNU Fortran (Ubuntu 5.4.0-6ubuntu1~16.04.4)

    Thanks for your help

    Paola

    ----------------------
    SAC Help | http://ds.iris.edu/message-center/topic/sac-help/ | Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu

    Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
    Update subscription preferences at http://ds.iris.edu/account/profile/


    • Paola Morasca
      2017-07-21 22:56:08
      Thanks Brian,

      actually I went back to use the version 101.5 because with the new one I
      get even more problems...
      You can see below what I get using the 101.6a version. The same code
      compiled on a sun machine works.

      make Masterprogram
      make: Warning: File 'Makefile' has modification time 55 s in the future
      f77 -c Masterprogram.f
      Masterprogram.f:673.2:

      86 continue
      1
      Masterprogram.f:479.72:

      $ A(7),A(8),A(9),A(10),A(11),dist
      2
      Warning: Legacy Extension: Label at (1) is not in the same block as the
      GOTO statement at (2)
      Masterprogram.f:650.3:

      333 continue
      1
      Masterprogram.f:499.72:

      goto 333
      2
      Warning: Legacy Extension: Label at (1) is not in the same block as the
      GOTO statement at (2)
      f77 Masterprogram.o /usr/local/sac/lib/libsac.a /usr/local/sac/lib/sacio.a
      -o Masterprogram
      /usr/local/sac/lib/sacio.a(getbbv.o): In function `getbb':
      getbbv.c:(.text+0x1e6): undefined reference to `upcase_dup'
      /usr/local/sac/lib/sacio.a(getvvstring.o): In function `getvvstring':
      getvvstring.c:(.text+0x2d): undefined reference to `upcase_dup'
      getvvstring.c:(.text+0xe5): undefined reference to `token_to_line'
      /usr/local/sac/lib/sacio.a(getvvstring.o): In function `getvvstringZ':
      getvvstring.c:(.text+0x19a): undefined reference to `upcase_dup'
      /usr/local/sac/lib/sacio.a(putvvstring.o): In function `putvvstring':
      putvvstring.c:(.text+0x2d): undefined reference to `upcase_dup'
      /usr/local/sac/lib/sacio.a(var.o): In function `token_to_var':
      var.c:(.text+0x103a): undefined reference to `token_is_string'
      var.c:(.text+0x1047): undefined reference to `token_is_quoted_string'
      var.c:(.text+0x1054): undefined reference to `token_is_escape_string'
      var.c:(.text+0x1082): undefined reference to `token_is_int'
      var.c:(.text+0x10b5): undefined reference to `token_is_number'
      /usr/local/sac/lib/sacio.a(var.o): In function `setvar_ap':
      var.c:(.text+0x1118): undefined reference to `upcase_dup'
      collect2: error: ld returned 1 exit status
      Makefile:71: recipe for target 'Masterprogram' failed
      make: *** [Masterprogram] Error 1



      2017-07-21 15:01 GMT+02:00 Brian Savage <savage<at>uri.edu>:

      Dear Paola Morasca,

      Please upgrade to the latest sac version (Version 101.6a – November 21,
      2013).
      http://ds.iris.edu/ds/nodes/dmc/forms/sac/

      If the problem continues after upgrading, please let me know.

      Thanks,
      Brian

      On Jul 21, 2017, at 5:24 AM, Paola Morasca <paola.morasca<at>ingv.it>
      wrote:

      Hello,

      I am having trouble using SAC libraries for a particular Fortran code
      that works perfectly on sun machines but not on my Linux. The code uses:
      readbbf, getbbv, setbbv, writebbf

      Here is the error:

      make all
      make: Warning: File 'Makefile' has modification time 933 s in the future
      gfortran Masterprogram.o /usr/local/sac2000/lib/libsac.a
      /usr/local/sac2000/lib/sacio.a -o Masterprogram
      /usr/local/sac2000/lib/sacio.a(deletev.o): In function `deletev':
      deletev.c:(.text+0x1b4): undefined reference to `copy_float'
      /usr/local/sac2000/lib/sacio.a(increasenlist.o): In function
      `increasenlist':
      increasenlist.c:(.text+0x2d3): undefined reference to `copy_float'
      collect2: error: ld returned 1 exit status
      Makefile:25: recipe for target 'Masterprogram' failed
      make: *** [Masterprogram] Error 1

      below some info:

      uname -a
      Linux openquake-vm 4.8.0-39-generic #42~16.04.1-Ubuntu SMP Mon Feb 20
      15:06:07 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

      sac version: 101.5

      gfortran --version
      GNU Fortran (Ubuntu 5.4.0-6ubuntu1~16.04.4)

      Thanks for your help

      Paola

      ----------------------
      SAC Help | http://ds.iris.edu/message-center/topic/sac-help/ |
      Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu

      Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
      Update subscription preferences at http://ds.iris.edu/account/profile/


      ----------------------
      SAC Help | http://ds.iris.edu/message-center/topic/sac-help/ |
      Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu

      Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
      Update subscription preferences at http://ds.iris.edu/account/profile/


08:07:33 v.ad6b513c