Installation Error of Green's Functions Program
Hello to everyone.
I am relatively new to linux and I have been facing a big problem in the installation of a computation program. First of all, I use Fedora 14, 64bit. The program I have been trying to install is Dreger's program for computing Green's Functions. It requires the SAC (Seismic Analysis Code) program (already installed in my working environment) as well as a Numerical Recipes library (nrcv2.a), which I have (/usr/local/NRC/). The program uses a simple "make all" command through a makefile provided to be installed. The only thing I had to do is change the path pointing to the nrcv2.a library, which I did through the vi command. After executing the "make all" in terminal as a superuser, I keep getting the following Error message: (cd ./GETPAR; make libget) make[1]: Entering directory `/home/cme/Documents/thessaloniki/MTPACKAGE/MTCODE/GETPAR' gcc -c -O -DENVIRONMENT getpar.c getarg.c getpar.c: In function '˜gp_add_entry' : getpar.c:196:19: warning: incompatible implicit declaration of built-in function '˜malloc' getpar.c:197:24: warning: incompatible implicit declaration of built-in function '˜realloc' getpar.c:200:7: warning: incompatible implicit declaration of built-in function '˜strlen' getpar.c:205:20: warning: incompatible implicit declaration of built-in function '˜malloc' getpar.c:206:25: warning: incompatible implicit declaration of built-in function '˜realloc' getpar.c: In function '˜endpar' : getpar.c:272:22: warning: incompatible implicit declaration of built-in function '˜free' getpar.c:280:3: warning: incompatible implicit declaration of built-in function '˜exit' getpar.c: In function '˜gp_getpar_err' : getpar.c:534:2: warning: incompatible implicit declaration of built-in function '˜exit' getarg.c: In function '˜ga_add_entry' : getarg.c:127:19: warning: incompatible implicit declaration of built-in function '˜malloc' getarg.c:128:24: warning: incompatible implicit declaration of built-in function '˜realloc' getarg.c:131:7: warning: incompatible implicit declaration of built-in function '˜strlen' getarg.c:136:20: warning: incompatible implicit declaration of built-in function '˜malloc' getarg.c:137:25: warning: incompatible implicit declaration of built-in function '˜realloc' getarg.c: In function '˜endarg' : getarg.c:161:22: warning: incompatible implicit declaration of built-in function '˜free' getarg.c: In function '˜ga_getarg_err' : getarg.c:347:2: warning: incompatible implicit declaration of built-in function '˜exit' ar r get getpar.o getarg.o ar: creating get ranlib get ar tv get rw-rw-r-- 500/500 18544 Nov 23 13:25 2015 getpar.o rw-rw-r-- 500/500 9328 Nov 23 13:25 2015 getarg.o \mv get ../libget.a make[1]: Leaving directory `/home/cme/Documents/thessaloniki/MTPACKAGE/MTCODE/GETPAR' (cd ./STDPLT/plotsubs; make) make[1]: Entering directory `/home/cme/Documents/thessaloniki/MTPACKAGE/MTCODE/STDPLT/plotsubs' ar cr stdplt frame.o scale.o table.o err.o plot.o dot.o text.o polygon.o output.o erase.o symbol.o puth.o fortran.o ranlib stdplt \mv stdplt ../../libstd.a make[1]: Leaving directory `/home/cme/Documents/thessaloniki/MTPACKAGE/MTCODE/STDPLT/plotsubs' gcc -o tdmt_msgs_scan tdmt_msgs_scan.c getenv_utils.c tdmt_msgs_scan.c: In function '˜main' : tdmt_msgs_scan.c:33:6: warning: incompatible implicit declaration of built-in function '˜exit' \mv tdmt_msgs_scan ./BIN gcc -o get_resp get_resp.c getenv_utils.c libget.a get_resp.c: In function '˜main' : get_resp.c:28:21: warning: incompatible implicit declaration of built-in function '˜malloc' get_resp.c:43:6: warning: incompatible implicit declaration of built-in function '˜exit' get_resp.c:48:7: warning: incompatible implicit declaration of built-in function '˜exit' get_resp.c:57:7: warning: incompatible implicit declaration of built-in function '˜exit' get_resp.c:106:8: warning: incompatible implicit declaration of built-in function '˜exit' \mv get_resp ./BIN gcc -o sac2helm sac2helm.c libget.a sac2helm.c: In function '˜main' : sac2helm.c:39:5: warning: incompatible implicit declaration of built-in function '˜exit' sac2helm.c:44:5: warning: incompatible implicit declaration of built-in function '˜exit' sac2helm.c:52:5: warning: incompatible implicit declaration of built-in function '˜exit' sac2helm.c:57:5: warning: incompatible implicit declaration of built-in function '˜exit' sac2helm.c:64:13: warning: incompatible implicit declaration of built-in function '˜malloc' \mv sac2helm ./BIN gcc -o window window.c libget.a window.c: In function '˜main' : window.c:43:4: warning: incompatible implicit declaration of built-in function '˜exit' window.c:50:4: warning: incompatible implicit declaration of built-in function '˜exit' window.c:75:15: warning: incompatible implicit declaration of built-in function '˜malloc' \mv window ./BIN gcc -c -O tdmt_invc_linux.c minvdbl_linux.c correl2b_linux.c readhelm.c mt_plot6iso2_linux2.c fitcheck2.c minvdbl_linux.c: In function '˜gaussj' : minvdbl_linux.c:41:11: warning: incompatible implicit declaration of built-in function '˜fabs' minvdbl_linux.c: In function '˜dsubmatrix' : minvdbl_linux.c:85:16: warning: incompatible implicit declaration of built-in function '˜malloc' minvdbl_linux.c:86:10: error: incompatible implicit declaration of function '˜nrerror' minvdbl_linux.c:29:7: note: previous implicit declaration of '˜nrerror' was here minvdbl_linux.c: In function '˜free_dsubmatrix' : minvdbl_linux.c:98:2: warning: incompatible implicit declaration of built-in function '˜free' readhelm.c: In function '˜readhelm' : readhelm.c:57:22: warning: incompatible implicit declaration of built-in function '˜malloc' readhelm.c: In function '˜chkform' : readhelm.c:143:13: warning: incompatible implicit declaration of built-in function '˜exit' readhelm.c:154:16: warning: incompatible implicit declaration of built-in function '˜exit' readhelm.c:159:16: warning: incompatible implicit declaration of built-in function '˜exit' readhelm.c:177:16: warning: incompatible implicit declaration of built-in function '˜exit' readhelm.c:182:16: warning: incompatible implicit declaration of built-in function '˜exit' readhelm.c:201:16: warning: incompatible implicit declaration of built-in function '˜exit' readhelm.c:206:16: warning: incompatible implicit declaration of built-in function '˜exit' readhelm.c:221:16: warning: incompatible implicit declaration of built-in function '˜exit' make: *** [tdmt_invc] Error 1 [cme@scec-cme MTCODE]$ Can anyone please help? I'm really frustrated as this is just the first step of a huge project and I can't even seem to get it installed XD Thank you in advance for any help! Steve |
Welcome to LQ.
Green's Functions Program ? Which ? File names, please. http://www.ctcms.nist.gov/gf/software.html All the programs seem old, 2002 - 2004. You can give it a try with gcc34 : # yum install compat-gcc-34-c++ ... But an even older gcc may be required ... compat-gcc-32-3.2.3-47.3.x86_64.rpm, compat-gcc-32-c++-3.2.3-47.3.x86_64.rpm http://vault.centos.org/4.9/os/x86_64/CentOS/RPMS/ - |
Hi again and thank you for your answer.
I installed the compat-gcc-34-c++, but nothing changed in the error I am getting. I tried installing the other two, but the yum install command found no rpms. I found a link pointing to the pdf reamde instructions: http://ftp://www.orfeus-eu.org/pub/s...1_tutorial.pdf and you can find the mtpackage file containing the program here: ftp://www.orfeus-eu.org/pub/software/iaspei2003/ Thank you again for any help provided, it is greatly appreciated! |
1 Attachment(s)
Re #3.
Please read post #2 and follow the link ... http://vault.centos.org/4.9/os/x86_64/CentOS/RPMS/ ... download the two packages and : # cd Downloads/ && yum install compat-gcc-32* .... provides /usr/bin/{ gcc32, g++32 }. (The code may also build with gcc34? : Edit the 13 times gcc to gcc34.) And install g77 : # yum install compat-gcc-34-g77 This is my result with 'make all' ( The edited Makefile is attached ) Code:
gcc32 -o tdmt_msgs_scan tdmt_msgs_scan.c getenv_utils.c The build result : So far I got 20 files in MTCODE/BIN/. - |
Hi again.
I got the nrcv2.a library through my university, so I will have to examine a way to upload it for use. For the program to run, you will also need the SAC (Seismic Analysis Code) file which you can get here: https://ds.iris.edu/ds/nodes/dmc/sof...downloads/sac/ After following your advice, I changed and installed what I had to, and it resulted to this: Code:
[root@scec-cme MTCODE]# make all I'm a complete amateur when it comes to Linux and I'm still learning the ropes. Thank you for your guidance; it is greatly appreciated even if I can't show it at the moment :) |
Re #5.
Quote:
Code:
get: |
Ok I made the changes.
Now I get this: Code:
(cd ./GETPAR; make libget) |
Re #7.
(cd ./STDPLT/devs/psigl; make) You are entering a new directory. Means another Makefile (or makefile) to edit. Please edit cc and gcc to gcc34. ... And so it goes on and on : Lots of directories, more Makefile`s to edit. - |
I changed the values to gcc34, but still get the same error:
Code:
(cd ./STDPLT/devs/psigl; make) The code between the lines 249 to 275 is: Code:
EndPage() Code:
/* If necessary, erase the area first. */ |
Why F14 ? - latest is F23 https://en.wikipedia.org/wiki/Fedora...ting_system%29 ...
|
Quote:
|
1 Attachment(s)
Re #9
Quote:
I'd rather have the "nrcv2.a library code" ,,, to be able to create `nrcv2.a'. Can you upload the code to `Google Docs', please ? ( Or nrcv2.a ). Your errors : Probably do a "make clean" in the directory/ that fails. With no 'clean' in the (most) Makefile`s : You can do : $ cd <dir>/ && rm -f *.o ... and the recompile (all) with gcc34. *** The Makefile for MTCODE/STDPLT/devs/psigl/ is attached. ( Sometimes a line with CC = gcc34 will work, sometimes not. (Line 12 in the attachment) And cc : Edit to gcc34. ( Line 29 in the edited Makefile(.devs.psigl) )). Read post #8 : "more Makefile`s to edit." I.e. all Makefile`s must be edited ! - |
" First of all, I use Fedora 14 "
as you are finding out using a operating system that has NOT BEEN SUPPORTED in many years is HELL !!!!!! there is a reason for this the operating system is NO LONGER supported think of is a Windows XP in a Win10 world you WILL HAVE MAJOR PROBLEMS!!!!! your best option is to get help on the Fedoraforums " END OF LIFE " ( 14 was "put to rest" back in 2011-12-08 ) section http://www.forums.fedoraforum.org/forumdisplay.php?f=75 Warning: BE WARNED!!!!!!!!! Fedora 14 is missing 4 years of SECURITY updates and fixes !!! the old firefox in 14 is ALSO!!~!!! missing 4 years of updates and EVERY NOW FIXED SECURITY HOLE FROM THE PAST 4 YEARS is wide open in fedora 14 |
@Knudfl
I simply cannot thank you enough. The CC = gcc34 was what my Makefile was missing. After including that, the program is now built! If you want, I can send you the ncrv2.a file, but it is no longer necessary :) With your guidance, I was able to overcome this obstacle! Again, thank you!!! @John VV Thanks for your reply. Hopefully, after building the program and completing some tests, we will be able to move forward to either another version of Linux, or the newest Fedora platform. My work had to be done on this particular version, so I had to grin and bear it :) |
Hi,
Actually I am also trying to install same MT package but I don't have ncrv2.a lib and in your discussion you mentioned to share it. Therefore it is request to please share the ncrv2.a file if you don't have an problem. This will be a great help Thank You in advance rakeshgosain |
All times are GMT -5. The time now is 07:34 AM. |