×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Need help with compilation of some Fortran code

Need help with compilation of some Fortran code

Need help with compilation of some Fortran code

(OP)
Hi Guys,

I was trying to compile a piece of software written in fortran on my 64bits ubuntu 13.10. I followed the author's instruction from http://eqseis.geosc.psu.edu/~cammon/...hecodes01.h..., downloaded his independent SAC library (iSACio) from his home page (http://eqseis.geosc.psu.edu/~cammon/Tools/isacio.t...). But Unfortunately my compilation failed half way through. (Please see the compilation message below. )

Could anyone give me some advice on what I am doing wrong here?

Thanks in advance!

CODE -->

fos@sstestlab6:~/Downloads/Rftn.Codes.Export$ sudo csh build.it.csh > log2.txt
mkdir: cannot create directory ‘./bin’: File exists
   ask:
   asktxt:
   blank:
   coef8:
   coefsh:
   coord:
   daymo:
   dfftr:
   diffr:
   dot:
   doy:
   fft:
   fsorce:
   g1:
   g2:
   h12:
   iask:
   iniocm:
   juli:
   locast:
   lpyr:
   max:
   minmax:
   npowr2:
   qrbd:
   rdlyrs:
   rotate:
   sacio:
   seisio:
   sinc:
   sit2:
Warning on line 223: local variable test never used
   svdrs:
   yesno:
   zero:
   MAIN pwaveqn:
   window:
   MAIN:
   blank:
   vslow:
   cphs:
   rcvrfn:
   ifmat:
Warning on line 299: local variable test never used
Warning on line 1: local variable eps never used
Warning on line 1: local variable zero never used
Warning on line 1: local variable quartr never used
   qabm:
   vabm:
   MAIN:
Warning on line 205: local variable splt never used
   MAIN:
Warning on line 205: local variable splt never used
   MAIN vstack:
   blank:
   MAIN modstat:
Warning on line 80: local variable fil never used
Warning on line 80: local variable fileout never used
   blank:
   MAIN modstat:
Warning on line 80: local variable fil never used
Warning on line 80: local variable fileout never used
   blank:
   MAIN manyvplot:
   blank:
   MAIN vplot:
Warning on line 37: local variable qp never used
Warning on line 37: local variable qs never used
   MAIN ppstime:
Warning on line 45: local variable qp never used
Warning on line 45: local variable qs never used
   MAIN manyinv:
   rand0:
   cubic:
   jinv:
Warning on line 319: local variable wk never used
Warning on line 319: local variable yesno never used
   getmodl:
   getseis:
Warning on line 50: local variable yesno never used
   jsoln:
   wrtsoln:
Warning on line 26: local variable il never used
   putsyn:
Warning on line 23: local variable yesno never used
   putpartl:
   sacin:
   sacout:
Warning on line 74: local variable user0 never used
Warning on line 74: local variable user1 never used
   minmax:
   partials:
Warning on line 141: local variable rn never used
   spartials:
Warning on line 187: local variable lyroff never used
   qabm:
   vabm:
   delifm:
   delrcv:
Warning on line 536: local variable two never used
   ifmat:
Warning on line 1308: local variable test never used
Warning on line 1010: local variable eps never used
Warning on line 1010: local variable zero never used
Warning on line 1010: local variable quartr never used
   vslow:
   cphs:
   rcvind:
Warning on line 1332: local variable two never used
   rcvrdcn:
Warning on line 1850: local variable rn never used
Warning on line 1850: local variable plyr never used
Warning on line 1850: local variable perta never used
Warning on line 1850: local variable pertb never used
Warning on line 1850: local variable pertr never used
   rcvrfn:
   rcvrtd:
Warning on line 2197: local variable eps never used
Warning on line 2197: local variable two never used
Warning on line 2197: local variable quartr never used
   sfpartials:
Warning on line 2470: inconsistent calling sequences for sfpartials,
	arg 1: here complex variable, previously real variable.
Warning on line 2586: local variable rn never used
Warning on line 2586: local variable lyroff never used
   sfrcvrdcn:
Warning on line 2697: local variable rn never used
Warning on line 2697: local variable plyr never used
Warning on line 2697: local variable perta never used
Warning on line 2697: local variable pertb never used
Warning on line 2697: local variable pertr never used
Warning on line 2697: local variable lyroff never used
   srcvrdcn:
Warning on line 2711: inconsistent calling sequences for sfrcvrdcn,
	arg 1: here real variable, previously complex variable.
   dfftr:
Warning on line 2766: inconsistent calling sequences for dfftr,
	arg 1: here real variable, previously complex variable.
   fft:
   lowcas:
rftn_partials.f:2450:22: error: conflicting types for ‘sfpartials_’
      *                      nlmax, dt, ntmax,
                      ^
rftn_partials.f:155:33: note: previous declaration of ‘sfpartials_’ was here
       nft = 512
                                 ^
rftn_partials.f:2727:22: error: conflicting types for ‘dfftr_’
 c                                              a.shakal, 1/78, 15 jul 80
                      ^
rftn_partials.f:2623:18: note: previous declaration of ‘dfftr_’ was here
       delf = 2. * fny / nft
                  ^
/usr/bin/f77: aborting compilation
make: *** [rftn_partials.o] Error 25
fos@sstestlab6:~/Downloads/Rftn.Codes.Export$ 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close