Hello:

Now is my turn to compile SEISAN 10. I remove 'fbounds-check' from the 
Makefiles (LIB and PRO) but I'm still getting error 127 regarding "abstim.for" 
and "afadsei.for" not found.

Regards,

Antonio

Antonio A. Abrego M.
Ingeniero Civil
Unidad de Ingeniería Geotécnica
División de Ingeniería
Tel. 276-1989
E-Mail: [email protected]<mailto:[email protected]>

From: [email protected] [mailto:[email protected]] On Behalf Of 
Branden Christensen
Sent: Tuesday, July 23, 2013 20:24
To: Lars Ottemoller
Cc: [email protected]
Subject: Re: [seisan] HELP ME (ERROR 127)

Lars:


Thanks.

I ran a make ./clean and then I removed '-fbounds-check' from the Makefiles 
(LIB and PRO). The only remain references to it are in comments lines:
branden@branden:/opt/seismo/PRO$ grep "fbounds-check" Makefile
# jun 03 2011 jh added -fbounds-check
# fbounds-check gave too many problems, to be fixed
#fc_linux64   = gfortran -g -I../INC -fdollar-ok -fbounds-check -fno-automatic 
-o $@
#fc_linux32   = gfortran -g -I../INC -fdollar-ok -fbounds-check -fno-automatic 
-o $@
#fc_macosx    = gfortran -m64 -g -I../INC -fdollar-ok -fbounds-check 
-fno-automatic -o $@
#fc_macosxppc = gfortran -g -I../INC -fdollar-ok -fbounds-check -fno-automatic 
-o $@
#fc_windows   = gfortran -g -I../INC -fdollar-ok -fbounds-check -fno-automatic 
-static -o $@
branden@branden:/opt/seismo/PRO$ grep "fbounds-check" ../LIB/Makefile
#   03 Jun 11 jh: added -fbounds-check
#fc_linux64   = gfortran -g -c -I../INC -fdollar-ok -fbounds-check 
-fno-automatic -o $@
#fc_linux32   = gfortran -g -c -I../INC -fdollar-ok -fbounds-check 
-fno-automatic -o $@
#fc_macosx    = gfortran -m64 -g -c -I../INC -fdollar-ok -fbounds-check 
-fno-automatic -o $@
#fc_macosxppc = gfortran -g -c -I../INC -fdollar-ok -fbounds-check 
-fno-automatic -o $@
#fc_windows   = gfortran -g -c -I../INC -fdollar-ok -fbounds-check 
-fno-automatic -o $@
#cc_gfortran = gcc -g -fbounds-check -c -I../INC -o $@


at tdmt_invc_seisan I now get:

...
...
...
----- tdmt_invc_seisan -----
gcc -I../INC -o tdmt_invc_seisan tdmt_invc_seisan.c ../LIB/./seisan.a   -lm
tdmt_invc_seisan.c: In function 'main':
tdmt_invc_seisan.c:62:16: warning: incompatible implicit declaration of 
built-in function 'malloc' [enabled by default]
tdmt_invc_seisan.c:125:4: warning: incompatible implicit declaration of 
built-in function 'free' [enabled by default]
tdmt_invc_seisan.c:194:4: warning: incompatible implicit declaration of 
built-in function 'free' [enabled by default]
tdmt_invc_seisan.c: In function 'dsubmatrix':
tdmt_invc_seisan.c:480:16: warning: incompatible implicit declaration of 
built-in function 'malloc' [enabled by default]
tdmt_invc_seisan.c: In function 'free_dsubmatrix':
tdmt_invc_seisan.c:495:2: warning: incompatible implicit declaration of 
built-in function 'free' [enabled by default]
tdmt_invc_seisan.c: In function 'readhelm':
tdmt_invc_seisan.c:775:4: warning: format '%s' expects argument of type 'char 
*', but argument 6 has type 'char (*)[80]' [-Wformat]
tdmt_invc_seisan.c:783:22: warning: incompatible implicit declaration of 
built-in function 'malloc' [enabled by default]
tdmt_invc_seisan.c: In function 'chkform':
tdmt_invc_seisan.c:869:13: warning: incompatible implicit declaration of 
built-in function 'exit' [enabled by default]
tdmt_invc_seisan.c:880:16: warning: incompatible implicit declaration of 
built-in function 'exit' [enabled by default]
tdmt_invc_seisan.c:885:16: warning: incompatible implicit declaration of 
built-in function 'exit' [enabled by default]
tdmt_invc_seisan.c:903:16: warning: incompatible implicit declaration of 
built-in function 'exit' [enabled by default]
tdmt_invc_seisan.c:908:16: warning: incompatible implicit declaration of 
built-in function 'exit' [enabled by default]
tdmt_invc_seisan.c:927:16: warning: incompatible implicit declaration of 
built-in function 'exit' [enabled by default]
tdmt_invc_seisan.c:932:16: warning: incompatible implicit declaration of 
built-in function 'exit' [enabled by default]
tdmt_invc_seisan.c:947:16: warning: incompatible implicit declaration of 
built-in function 'exit' [enabled by default]
In file included from tdmt_invc_seisan.c:1049:0:
../INC/nrutil.h: At top level:
../INC/nrutil.h:64:6: warning: conflicting types for 'free_vector' [enabled by 
default]
tdmt_invc_seisan.c:708:1: note: previous implicit declaration of 'free_vector' 
was here
tdmt_invc_seisan.c:1072:0: warning: "SWAP" redefined [enabled by default]
tdmt_invc_seisan.c:400:0: note: this is the location of the previous definition
../LIB/./seisan.a(fmap_subs.o): In function `fpsol_':
/opt/seismo/LIB/fmap_subs.for:269: undefined reference to 
`_gfortran_runtime_error_at'
/opt/seismo/LIB/fmap_subs.for:269: undefined reference to 
`_gfortran_runtime_error_at'
/opt/seismo/LIB/fmap_subs.for:269: undefined reference to 
`_gfortran_runtime_error_at'
/opt/seismo/LIB/fmap_subs.for:269: undefined reference to 
`_gfortran_runtime_error_at'
/opt/seismo/LIB/fmap_subs.for:269: undefined reference to 
`_gfortran_runtime_error_at'
../LIB/./seisan.a(fmap_subs.o):/opt/seismo/LIB/fmap_subs.for:269: more 
undefined references to `_gfortran_runtime_error_at' follow
collect2: ld returned 1 exit status
make: *** [tdmt_invc_seisan] Error 1



Kind Regards,


Branden Christensen
[email protected]<mailto:[email protected]>
Volcan, Panama

Follow OSOP
Facebook: http://www.facebook.com/osop.panama
Twitter: @OSOPSA<http://twitter.com/OSOPSA>
News Blog: http://www.osop.com.pa/blog/news
The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/

"Starships were meant to fly" --Nicki Minaj

On Wed, Jul 24, 2013 at 1:08 AM, Lars Ottemoller 
<[email protected]<mailto:[email protected]>> wrote:
Dear all,

if you have this compilation problem, please remove '-fbounds-check' from the 
Makefiles (LIB and PRO) and try to compile again.

Regards,
Lars



Quoting Branden Christensen 
<[email protected]<mailto:[email protected]>>:
Carmen and Seth:


Buenas tardes.
*I tried compiling Seisan v.10 on Ubuntu 11.10 64-bit:*

branden@branden:/opt$ uname -a
Linux branden 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011
x86_64 x86_64 x86_64 GNU/Linux
branden@branden:/opt$ cat /etc/issue
Ubuntu 11.10 \n \l

*Following this procedure:*

sudo apt-get install gfortran libx11-xcb-dev
cd /opt/
sudo mkdir seismo
sudo chown -R branden:branden seismo
cd seismo
wget
ftp://ftp.geo.uib.no/pub/seismo/SOFTWARE/SEISAN/seisan_v10.0_linux_64bit.tar.gz
tar -xvf seisan_v10.0_linux_64bit.tar.gz
nano COM/SEISAN.bash
     CHANGES MADE: export SEISAN_TOP="/opt/seismo"
nano ~/.bashrc
     CHANGES MADE: source /opt/seismo/COM/SEISAN.bash
source ~/.bashrc
pr
make ./all


Everything compiled fine for me until tdmt_invc_seisan (just like for
Carmen and Seth):
...
...
...
----- statstat -----
gfortran -g -I../INC -fdollar-ok -fbounds-check -fno-automatic -o statstat
statstat.for ../LIB/./seisan.a
----- stasei -----
gfortran -g -I../INC -fdollar-ok -fbounds-check -fno-automatic -o stasei
stasei.for ../LIB/./seisan.a
----- swarm -----
gfortran -g -I../INC -fdollar-ok -fbounds-check -fno-automatic -o swarm
swarm.for ../LIB/./seisan.a
----- tersei -----
gfortran -g -I../INC -fdollar-ok -fbounds-check -fno-automatic -o tersei
tersei.for ../LIB/./seisan.a
----- tsig -----
gfortran -g -I../INC -fdollar-ok -fbounds-check -fno-automatic -o tsig
tsig.for ../LIB/./seisan.a
----- tdmt_invc_seisan -----
gcc -I../INC -o tdmt_invc_seisan tdmt_invc_seisan.c ../LIB/./seisan.a   -lm
tdmt_invc_seisan.c: In function 'main':
tdmt_invc_seisan.c:62:16: warning: incompatible implicit declaration of
built-in function 'malloc' [enabled by default]
tdmt_invc_seisan.c:125:4: warning: incompatible implicit declaration of
built-in function 'free' [enabled by default]
tdmt_invc_seisan.c:194:4: warning: incompatible implicit declaration of
built-in function 'free' [enabled by default]
tdmt_invc_seisan.c: In function 'dsubmatrix':
tdmt_invc_seisan.c:480:16: warning: incompatible implicit declaration of
built-in function 'malloc' [enabled by default]
tdmt_invc_seisan.c: In function 'free_dsubmatrix':
tdmt_invc_seisan.c:495:2: warning: incompatible implicit declaration of
built-in function 'free' [enabled by default]
tdmt_invc_seisan.c: In function 'readhelm':
tdmt_invc_seisan.c:775:4: warning: format '%s' expects argument of type
'char *', but argument 6 has type 'char (*)[80]' [-Wformat]
tdmt_invc_seisan.c:783:22: warning: incompatible implicit declaration of
built-in function 'malloc' [enabled by default]
tdmt_invc_seisan.c: In function 'chkform':
tdmt_invc_seisan.c:869:13: warning: incompatible implicit declaration of
built-in function 'exit' [enabled by default]
tdmt_invc_seisan.c:880:16: warning: incompatible implicit declaration of
built-in function 'exit' [enabled by default]
tdmt_invc_seisan.c:885:16: warning: incompatible implicit declaration of
built-in function 'exit' [enabled by default]
tdmt_invc_seisan.c:903:16: warning: incompatible implicit declaration of
built-in function 'exit' [enabled by default]
tdmt_invc_seisan.c:908:16: warning: incompatible implicit declaration of
built-in function 'exit' [enabled by default]
tdmt_invc_seisan.c:927:16: warning: incompatible implicit declaration of
built-in function 'exit' [enabled by default]
tdmt_invc_seisan.c:932:16: warning: incompatible implicit declaration of
built-in function 'exit' [enabled by default]
tdmt_invc_seisan.c:947:16: warning: incompatible implicit declaration of
built-in function 'exit' [enabled by default]
In file included from tdmt_invc_seisan.c:1049:0:
../INC/nrutil.h: At top level:
../INC/nrutil.h:64:6: warning: conflicting types for 'free_vector' [enabled
by default]
tdmt_invc_seisan.c:708:1: note: previous implicit declaration of
'free_vector' was here
tdmt_invc_seisan.c:1072:0: warning: "SWAP" redefined [enabled by default]
tdmt_invc_seisan.c:400:0: note: this is the location of the previous
definition
../LIB/./seisan.a(fmap_subs.o): In function `fpsol_':
/opt/seismo/LIB/fmap_subs.for:269: undefined reference to
`_gfortran_runtime_error_at'
/opt/seismo/LIB/fmap_subs.for:269: undefined reference to
`_gfortran_runtime_error_at'
/opt/seismo/LIB/fmap_subs.for:269: undefined reference to
`_gfortran_runtime_error_at'
/opt/seismo/LIB/fmap_subs.for:269: undefined reference to
`_gfortran_runtime_error_at'
/opt/seismo/LIB/fmap_subs.for:269: undefined reference to
`_gfortran_runtime_error_at'
../LIB/./seisan.a(fmap_subs.o):/opt/seismo/LIB/fmap_subs.for:269: more
undefined references to `_gfortran_runtime_error_at' follow
collect2: ld returned 1 exit status
make: *** [tdmt_invc_seisan] Error 1


Many of the Google forums I am reading suggest that we are missing
"#include <stdlib.h>" (/usr/include/stdlib.h).


Kind Regards,

*Branden Christensen*
*[email protected]<mailto:[email protected]>*
Volcan, Panama

*Follow OSOP *
Facebook: http://www.facebook.com/osop.panama
Twitter: @OSOPSA <http://twitter.com/OSOPSA>

News Blog: http://www.osop.com.pa/blog/news
The Seismo Guys Blog: http://www.osop.com.pa/blog/the-seismo-guys/

"Starships were meant to fly" --Nicki Minaj


On Tue, Jul 23, 2013 at 3:57 PM, gerardo 
<[email protected]<mailto:[email protected]>> wrote:
Sigo las instrucciones y sale el siguiente mensaje

posgrado@linux-bbah:~/seismo/LIB> make ./clean
rm -f /*.o
rm -f /seisan.a

despues de modificar el archivo .bashrc hago lo siguiente

posgrado@linux-bbah:~/seismo/PRO> li
posgrado@linux-bbah:~/seismo/LIB> make ./all
-------------------------------------------------
---- COMPILING SEISAN 9.1 LIBRARIES -

pero al hacerlo para PRO regresa el texto adjunto

posgrado@linux-bbah:~/seismo/LIB> pr
posgrado@linux-bbah:~/seismo/PRO> make ./all
cd ../LIB; make all; cd ../PRO
make[1]: se ingresa al directorio `/home/posgrado/seismo/LIB'
-------------------------------------------------
---- COMPILING SEISAN 9.1 LIBRARIES ----------------
-------------------------------------------------
make[1]: se sale del directorio `/home/posgrado/seismo/LIB'
--------------------------------------------------
---- COMPILING SEISAN 9.0.1 PROGRAMS -----------------
--------------------------------------------------
----- tdmt_invc_seisan -----
gcc -I../INC -o gfortran/tdmt_invc_seisan tdmt_invc_seisan.c
../LIB/gfortran/seisan.a   -lm
tdmt_invc_seisan.c: In function 'main':
tdmt_invc_seisan.c:62:16: warning: incompatible implicit
declaration of
built-in function 'malloc' [enabled by default]
tdmt_invc_seisan.c:125:4: warning: incompatible
implicit declaration of
built-in function 'free' [enabled by default]
tdmt_invc_seisan.c:194:4: warning: incompatible
implicit declaration of
built-in function 'free' [enabled by default]
tdmt_invc_seisan.c: In function 'dsubmatrix':
tdmt_invc_seisan.c:480:16: warning: incompatible
implicit declaration of
built-in function 'malloc' [enabled by default]
tdmt_invc_seisan.c: In function 'free_dsubmatrix':
tdmt_invc_seisan.c:495:2: warning: incompatible
implicit declaration of
built-in function 'free' [enabled by default]
tdmt_invc_seisan.c: In function 'readhelm':
tdmt_invc_seisan.c:783:22: warning: incompatible
implicit declaration of
built-in function 'malloc' [enabled by default]
tdmt_invc_seisan.c: In function 'chkform':
tdmt_invc_seisan.c:869:13: warning: incompatible
implicit declaration of
built-in function 'exit' [enabled by default]
tdmt_invc_seisan.c:880:16: warning: incompatible
implicit declaration of
built-in function 'exit' [enabled by default]
tdmt_invc_seisan.c:885:16: warning: incompatible
implicit declaration of
built-in function 'exit' [enabled by default]
tdmt_invc_seisan.c:903:16: warning: incompatible
implicit declaration of
built-in function 'exit' [enabled by default]
tdmt_invc_seisan.c:908:16: warning: incompatible
implicit declaration of
built-in function 'exit' [enabled by default]
tdmt_invc_seisan.c:927:16: warning: incompatible
implicit declaration of
built-in function 'exit' [enabled by default]
tdmt_invc_seisan.c:932:16: warning: incompatible
implicit declaration of
built-in function 'exit' [enabled by default]
tdmt_invc_seisan.c:947:16: warning: incompatible
implicit declaration of
built-in function 'exit' [enabled by default]
In file included from tdmt_invc_seisan.c:1049:0:
../INC/nrutil.h: At top level:
../INC/nrutil.h:64:6: warning: conflicting types
for 'free_vector' [enabled
by default]
tdmt_invc_seisan.c:708:1: note: previous
implicit declaration of
'free_vector' was here
tdmt_invc_seisan.c:1072:0: warning: "SWAP"
redefined [enabled by default]
tdmt_invc_seisan.c:400:0: note: this is the
location of the previous definition
../LIB/gfortran/seisan.a(fmap_subs.o):
In function `fpsol_':
/home/posgrado/seismo/LIB/fmap_subs.for:269:
undefined reference to
`_gfortran_runtime_error_at'
/home/posgrado/seismo/LIB/fmap_subs.for:269:
undefined reference to
`_gfortran_runtime_error_at'
/home/posgrado/seismo/LIB/fmap_subs.for:269:
undefined reference to
`_gfortran_runtime_error_at'
/home/posgrado/seismo/LIB/fmap_subs.for:269:
undefined reference to
`_gfortran_runtime_error_at'
/home/posgrado/seismo/LIB/fmap_subs.for:269:
undefined reference to
`_gfortran_runtime_error_at'
../LIB/gfortran/seisan.a(fmap_subs.o):
/home/posgrado/seismo/LIB/fmap_subs.for:269:
more undefined references to `_gfortran_runtime_error_at' follow
collect2: error: ld returned 1 exit status
make: *** [gfortran/tdmt_invc_seisan] Error 1




_______________________________________________
seisan mailing list
[email protected]<mailto:[email protected]>
http://mailman.uib.no/listinfo/seisan




-----------------------------------------------------
Lars Ottemöller
Department of Earth Science, University of Bergen
http://folk.uib.no/lot081

currently at
Lamont-Doherty Earth Observatory, Columbia University

mobile +1(201) 301-5634<tel:%2B1%28201%29%20301-5634> office +1(845) 
365-8323<tel:%2B1%28845%29%20365-8323>
-----------------------------------------------------


_______________________________________________
seisan mailing list
[email protected]<mailto:[email protected]>
http://mailman.uib.no/listinfo/seisan

_______________________________________________
seisan mailing list
[email protected]
http://mailman.uib.no/listinfo/seisan

Reply via email to