Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-29-2008, 04:13 AM
|
#1
|
Member
Registered: Dec 2008
Location: Athens
Distribution: Centos Ubundu RedHat
Posts: 38
Rep:
|
library reference problem
I am trying to exact mirror a server running Centos 4.4 that runs some Fortran scripts in order to do some calculations into a server with Centos 4.7.
My problem is that the Fortran scripts give me all kind of errors and I am totally useless when it comes to programing.
When I run one of the scripts I get the following.
./wgrib2 -vt -d 1 gfs.t12z.master.grbf12 >out_time
*** FATAL ERROR: grib message #1 not found ***
When I try to debug the script i get the following
g++ wgrib2
wgrib2(.data+0x4): In function `__data_start':
: multiple definition of `__dso_handle'
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/crtbegin.o(.data+0x0): first defined here
wgrib2(.init+0x0): In function `_init':
/usr/src/build/231499-i386/BUILD/glibc-2.3.2-20030313/build-i386-linux/csu/crti.S:35: multiple definition of `_init'
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crti.o(.init+0x0): first defined here
wgrib2(.text+0x0): In function `_start':
../sysdeps/i386/elf/start.S:47: multiple definition of `_start'
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crt1.o(.text+0x0): first defined here
wgrib2(.fini+0x0): In function `_fini':
/usr/src/build/231499-i386/BUILD/glibc-2.3.2-20030313/build-i386-linux/csu/crti.S:51: multiple definition of `_fini'
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crti.o(.fini+0x0): first defined here
wgrib2(*ABS*+0x808ce9c): In function `__init_array_start':
jpc_qmfb.c: multiple definition of `_GLOBAL_OFFSET_TABLE_'
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crt1.o(.got.plt+0x0): first defined here
wgrib2(.rodata+0x4): multiple definition of `_IO_stdin_used'
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crt1.o(.rodata+0x0): first defined here
wgrib2(.data+0x0): In function `__data_start':
: multiple definition of `__data_start'
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crt1.o(.data+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crt1.o(.dynamic+0x0): multiple definition of `_DYNAMIC'
/usr/bin/ld: warning: i386 architecture of input file `wgrib2' is incompatible with i386:x86-64 output
collect2: ld returned 1 exit status
As far as I can understand it seems like there is a problem with some of the libraries it uses?
Is there a way I can find out, against which libraries this script is compiled to?
I don't even know if this is what I am supposed to be looking for?
When i try to run some other script I get as well some error messages.
./script_correct_crain
list in: end of file
apparent state: unit 20 named fort.20
last format: list io
lately reading direct formatted external IO
./script_correct_crain: line 8: 26456 Aborted ./read_rain.e
mv: cannot stat `fort.22': No such file or directory
list in: end of file
apparent state: unit 20 named fort.20
last format: list io
lately reading direct formatted external IO
./script_correct_crain: line 13: 26460 Aborted ./read_rain.e
mv: cannot stat `fort.22': No such file or directory
When I run ./read_rain.e
list in: end of file
apparent state: unit 20 named fort.20
last format: list io
lately reading direct formatted external IO
Aborted
g++ read_rain.e
collect2: ld terminated with signal 11 [Segmentation fault]
read_rain.e(.init+0x0): In function `_init':
/build/buildd/glibc-2.3.6/build-tree/amd64-libc/csu/crti.S:25: multiple definition of `_init'
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crti.o(.init+0x0): first defined here
read_rain.e(.text+0x0): In function `_start':
../sysdeps/x86_64/elf/start.S:65: multiple definition of `_start'
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crt1.o(.text+0x0): first defined here
read_rain.e(.fini+0x0): In function `_fini':
/build/buildd/glibc-2.3.6/build-tree/amd64-libc/csu/crti.S:37: multiple definition of `_fini'
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crti.o(.fini+0x0): first defined here
read_rain.e(.rodata+0x0): multiple definition of `_IO_stdin_used'
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crt1.o(.rodata+0x0): first defined here
read_rain.e(.data+0x0): In function `__data_start':
: multiple definition of `__data_start'
/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crt1.o(.data+0x0): first defined here
I am helpless, subject is totally out of my area of expertise.
Any guidelines would be great.
|
|
|
12-29-2008, 03:31 PM
|
#2
|
Member
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365
Rep:
|
From the output I can see you have several "multiple definitions" of various functions. As a guess, are you including the same header file twice? Is the grib program somthing you can post?
|
|
|
12-29-2008, 04:46 PM
|
#3
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
Please, continue discussion here. This thread reported for closure since it is a duplicate.
|
|
|
12-30-2008, 02:40 AM
|
#4
|
Member
Registered: Dec 2008
Location: Athens
Distribution: Centos Ubundu RedHat
Posts: 38
Original Poster
Rep:
|
[QUOTE=colucix;3390875]Please, continue discussion here. This thread reported for closure since it is a duplicate.[/QUOTE
Thank you very much for closing this thread. Forgive for not doing it myself. I did notice at some point but I was in the middle of a mess and forgot.
|
|
|
12-31-2008, 08:47 AM
|
#5
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
|
|
|
All times are GMT -5. The time now is 09:29 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|