Paola Morasca
2010-06-06 14:42:55
Hi Brian,
I am not sure you got my reply including the information you asked, so I forward it in this email.
Also, I tried to substitute the sac bin version with the sac source version, but after the installation I still get the same error:
bash-3.2$ make Masterprogram
gfortran -m32 Masterprogram.o /usr/local/sac/lib/libsac.a /usr/local/sac/lib/sacio.a -o Masterprogram
Undefined symbols:
"_cmmem", referenced from:
_cmmem$non_lazy_ptr in sacio.a(writevfile.o)
_cmmem$non_lazy_ptr in sacio.a(putvvstring.o)
_cmmem$non_lazy_ptr in sacio.a(getvvstring.o)
_cmmem$non_lazy_ptr in sacio.a(initializevar.o)
_cmmem$non_lazy_ptr in sacio.a(initvlist.o)
_cmmem$non_lazy_ptr in sacio.a(nextvlist.o)
_cmmem$non_lazy_ptr in sacio.a(putventry.o)
_cmmem$non_lazy_ptr in sacio.a(increasenlist.o)
_cmmem$non_lazy_ptr in sacio.a(readvfile.o)
_cmmem$non_lazy_ptr in sacio.a(deletev.o)
_cmmem$non_lazy_ptr in sacio.a(setvreadonly.o)
_cmmem$non_lazy_ptr in sacio.a(encodevnil.o)
_cmmem$non_lazy_ptr in sacio.a(existsv.o)
_cmmem$non_lazy_ptr in sacio.a(findvnil.o)
_cmmem$non_lazy_ptr in sacio.a(deletevlist.o)
_cmmem$non_lazy_ptr in sacio.a(createvlist.o)
(maybe you meant: _cmmem$non_lazy_ptr)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [Masterprogram] Error 1
What does it mean?
Thank you for you help
Paola
Inizio messaggio inoltrato:
I am not sure you got my reply including the information you asked, so I forward it in this email.
Also, I tried to substitute the sac bin version with the sac source version, but after the installation I still get the same error:
bash-3.2$ make Masterprogram
gfortran -m32 Masterprogram.o /usr/local/sac/lib/libsac.a /usr/local/sac/lib/sacio.a -o Masterprogram
Undefined symbols:
"_cmmem", referenced from:
_cmmem$non_lazy_ptr in sacio.a(writevfile.o)
_cmmem$non_lazy_ptr in sacio.a(putvvstring.o)
_cmmem$non_lazy_ptr in sacio.a(getvvstring.o)
_cmmem$non_lazy_ptr in sacio.a(initializevar.o)
_cmmem$non_lazy_ptr in sacio.a(initvlist.o)
_cmmem$non_lazy_ptr in sacio.a(nextvlist.o)
_cmmem$non_lazy_ptr in sacio.a(putventry.o)
_cmmem$non_lazy_ptr in sacio.a(increasenlist.o)
_cmmem$non_lazy_ptr in sacio.a(readvfile.o)
_cmmem$non_lazy_ptr in sacio.a(deletev.o)
_cmmem$non_lazy_ptr in sacio.a(setvreadonly.o)
_cmmem$non_lazy_ptr in sacio.a(encodevnil.o)
_cmmem$non_lazy_ptr in sacio.a(existsv.o)
_cmmem$non_lazy_ptr in sacio.a(findvnil.o)
_cmmem$non_lazy_ptr in sacio.a(deletevlist.o)
_cmmem$non_lazy_ptr in sacio.a(createvlist.o)
(maybe you meant: _cmmem$non_lazy_ptr)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [Masterprogram] Error 1
What does it mean?
Thank you for you help
Paola
Inizio messaggio inoltrato:
Da: Paola Morasca <paola.morasca<at>yahoo.com>
Data: 01 giugno 2010 11.53.53 GMT+02.00
A: Brian Savage <savage<at>uri.edu>
Oggetto: Re: [SAC-HELP] problem with sacio.a when I compile using gfortran under x86_64
Hi Brian,
I use Mac OS X 10.6.3 with sac version 101.3b.
I have got the gfortran from: http://hpc.sourceforge.net/
and precisely the file is "gfortran-snwleo-intel-bin.tar"
The program was written in fortran (Masterprogram.f).
Here are information on libsac.a and sacio.a:
bash-3.2$ file /usr/local/sac/lib/libsac.a
/usr/local/sac/lib/libsac.a: Mach-O universal binary with 2 architectures
/usr/local/sac/lib/libsac.a (for architecture ppc): current ar archive random library
/usr/local/sac/lib/libsac.a (for architecture i386): current ar archive
bash-3.2$ file /usr/local/sac/lib/sacio.a
/usr/local/sac/lib/sacio.a: Mach-O universal binary with 2 architectures
/usr/local/sac/lib/sacio.a (for architecture ppc): current ar archive random library
/usr/local/sac/lib/sacio.a (for architecture i386): current ar archive
thanks
Paola
Il giorno 31/mag/2010, alle ore 19.08, Brian Savage ha scritto:
Dear Paola,
I am unable to reproduce this on my OSX machine (!0.5) with 101.3b. I am not certain why this message is appearing. Could you give me more details about which version of gfortran you are using, your OSX version, and what language Masterprogram.o was written in ? Also, could you run
% file /usr/local/sac/lib/libsac.a
% file /usr/local/sac/lib/sacio.a
so I can tell what is really in those files. They should be universal binaries (PPC and Intel) and should also be 32 bit.
Thanks
Brian Savage
savage<at>uri.edu
On May 30, 2010, at 9:41 AM , Paola Morasca wrote:
Hi All,
I have a compilation problem (look at the bottom). Is that because I have got the binary sac version for OSX (Version 101.3b) that is compiled for a 64 bit architecture? I have to use -m32 because otherwise I get " missing required architecture x86_64 in file". Should I get the source code to be compiled for 32 bit so that I have the right library? Or maybe there is another solution?
Thank you for the help.
Paola
bash-3.2$ gfortran -m32 -C Masterprogram.o /usr/local/sac/lib/libsac.a /usr/local/sac/lib/sacio.a -o Masterprogram
Undefined symbols:
"_cmmem", referenced from:
_cmmem$non_lazy_ptr in sacio.a(writevfile.o)
_cmmem$non_lazy_ptr in sacio.a(putvvstring.o)
_cmmem$non_lazy_ptr in sacio.a(getvvstring.o)
_cmmem$non_lazy_ptr in sacio.a(initializevar.o)
_cmmem$non_lazy_ptr in sacio.a(initvlist.o)
_cmmem$non_lazy_ptr in sacio.a(nextvlist.o)
_cmmem$non_lazy_ptr in sacio.a(putventry.o)
_cmmem$non_lazy_ptr in sacio.a(increasenlist.o)
_cmmem$non_lazy_ptr in sacio.a(encodevnil.o)
_cmmem$non_lazy_ptr in sacio.a(setvreadonly.o)
_cmmem$non_lazy_ptr in sacio.a(readvfile.o)
_cmmem$non_lazy_ptr in sacio.a(deletev.o)
_cmmem$non_lazy_ptr in sacio.a(existsv.o)
_cmmem$non_lazy_ptr in sacio.a(createvlist.o)
_cmmem$non_lazy_ptr in sacio.a(findvnil.o)
_cmmem$non_lazy_ptr in sacio.a(deletevlist.o)
(maybe you meant: _cmmem$non_lazy_ptr)
ld: symbol(s) not found
collect2: ld returned 1 exit status
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help