[CIG-SEISMO] Compiling Mineos, error on F77_FUNC
Guust Nolet
nolet at geoazur.unice.fr
Mon Jan 31 07:02:28 PST 2011
I am trying to compile the latest release of Mineos on a MacBook Pro under OSX 10.6.6. I use gfortran and gcc (as far as I know g77 is not available for the Intel Macs).
The makefile stumbles over swapn.c, apparently it does not recognize the F77_FUNC macro. The first indication that something did not work was a warning running ./configure saying:
WARNING: unknown Fortran name-mangling scheme
I attach the config.log file as well. If I ignore this and run make, I get:
[cyparis:mode/Mineos/mineos-1.0.1] guust% make
make all-am
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT swapn.o -MD -MP -MF .deps/swapn.Tpo -c -o swapn.o `test -f 'fdb/swapn.c' || echo './'`fdb/swapn.c
fdb/swapn.c:33: warning: parameter names (without types) in function declaration
fdb/swapn.c:33: error: ‘F77_FUNC’ declared as function returning a function
fdb/swapn.c: In function ‘F77_FUNC’:
fdb/swapn.c:36: error: declaration for parameter ‘n’ but no such parameter
fdb/swapn.c:35: error: declaration for parameter ‘N’ but no such parameter
fdb/swapn.c:34: error: declaration for parameter ‘b’ but no such parameter
fdb/swapn.c:33: error: declaration for parameter ‘c’ but no such parameter
fdb/swapn.c: At top level:
fdb/swapn.c:54: warning: parameter names (without types) in function declaration
fdb/swapn.c:54: error: ‘F77_FUNC’ declared as function returning a function
fdb/swapn.c:54: error: redefinition of ‘F77_FUNC’
fdb/swapn.c:37: error: previous definition of ‘F77_FUNC’ was here
fdb/swapn.c: In function ‘F77_FUNC’:
fdb/swapn.c:56: error: declaration for parameter ‘n’ but no such parameter
fdb/swapn.c:55: error: declaration for parameter ‘N’ but no such parameter
fdb/swapn.c:54: error: declaration for parameter ‘b’ but no such parameter
make[1]: *** [swapn.o] Error 1
make: *** [all] Error 2
Any idea how I can get this to work correctly?
Thanks in advance...
Guust Nolet
Geosciences Azur
250, Rue Albert Einstein
06560 Sophia Antipolis
France
+33.4.92.94.26.32
https://www.geoazur.net/GLOBALSEIS/nolet/index.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: application/octet-stream
Size: 21888 bytes
Desc: not available
Url : http://geodynamics.org/pipermail/cig-seismo/attachments/20110131/caee83e8/attachment-0002.obj
-------------- next part --------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.status
Type: application/octet-stream
Size: 33138 bytes
Desc: not available
Url : http://geodynamics.org/pipermail/cig-seismo/attachments/20110131/caee83e8/attachment-0003.obj
-------------- next part --------------
More information about the CIG-SEISMO
mailing list