ENDIANFLAG -DCWP_LITTLE_ENDIAN
XDRFLAG -DSUXDR -D_BSD_SOURCE
CC gcc
CPP /usr/bin/cpp
The installation as far as:
gcc -I/Users/jaumes/Documents/SeismicUnix/include -O3 -Wall -Wno-long-long -ansi -pedantic -D_POSIX_SOURCE -D_FILE_OFFSET_BITSd -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DGNU_SOURCE -DCWP_LITTLE_ENDIAN -DSUXDR -D_BSD_SOURCE fcat.c -L/Users/jaumes/Documents/SeismicUnix/lib -lcwp -o /Users/jaumes/Documents/SeismicUnix/bin/fcat
where it crashed with these error codes:
fcat.c: In function ‘main’:
fcat.c:35: error: storage size of ‘buf’ isn’t known
fcat.c:43: warning: implicit declaration of function ‘open64’
fcat.c:45: warning: implicit declaration of function ‘fstat64’
fcat.c:35: warning: unused variable ‘buf’
make[2]: *** [/Users/jaumes/Documents/SeismicUnix/bin/fcat] Error 1
make[1]: *** [INSTALL] Error 2
make: *** [cwpstuff] Error 2
I suspect I either have to change another line in Makefile.config or I have incorrectly set
one of the lines quoted above. Any suggestions?
Dr. Steven C. Jaume'
Associate Professor
Department of Geology and Environmental Geosciences
College of Charleston
66 George Street
Charleston, SC 29424
Phone: (843) 953-1802
FAX: (843) 953-5446
Email: jau...@cofc.edu
_______________________________________________
seisunix mailing list
seis...@mailman.mines.edu
https://mailman.mines.edu/mailman/listinfo/seisunix
Unsubscribe: seisunix-u...@mailman.mines.edu
With 10.5.6, I use
CPP gcc -E
However, I'm not 100% sure it will solve your issue. I have SU on my
laptop which is at home right now. I can send you my Makefile.config
later on if needed.
Le 09-03-10 à 14:08, Jaume', Steven C a écrit :
---
Bernard Giroux, ing., Ph.D.
Chercheur
http://geo.polymtl.ca/~giroux
What hardware are you running: Mac Intel, Power PC, G4, G5,...?
-John
> I have just tried installing Seismic Unix after changing these lines
> in the default Makefile.config. I am way out of practice playing with
> makefiles so suggestions are very welcome!
>
> ENDIANFLAG
> XDRFLAG
> CC
> CPP
John Stockwell | jo...@dix.Mines.EDU
Center for Wave Phenomena (The Home of Seismic Un*x)
Colorado School of Mines
Golden, CO 80401 | http://www.cwp.mines.edu/cwpcodes
voice: (303) 273-3049
Our book:
Norman Bleistein, Jack K. Cohen, John W. Stockwell Jr., [2001],
Mathematics of multidimensional seismic imaging, migration, and inversion,
(Interdisciplinary Applied Mathematics, V. 13.), Springer-Verlag, New York.
This is what I use on my Mac Intel system.
# uncomment if you want to install with large file support
# Mac OS X
LARGE_FILE_FLAG = -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DGNU_SOURCE
If you try this and still are having problems, please email a
detailed explanation of the problem you are seeing so I can troubleshoot
it on this end.
-John
Dear Michael,
On my Mac (10.5.6) I also have CWP 41 running without any problems. I just made a diff of the latest version (downloaded from the web) and my local installed version. Besides the Makefile.config there are no changes to the code. I tested my version for a 2+GB file:
JansMac:~ jan$ suplane nt=16000 ntr=38000 > plane.su
JansMac:~ jan$ du -sh plane.su
2.3G plane.su
JansMac:~ jan$ surange < plane.su
38000 traces:
tracl 1 38000 (1 - 38000)
tracr 1 38000 (1 - 38000)
offset 400
ns 16000
dt 4000
and do not see problems. My Makefile.config is attached below. Note that I used the 64-bit Intel compilers to compile the code. Hopefully this helps you a bit further.
kind regards,
Jan
-----Original Message-----
From: seisunix...@mailman.mines.edu on behalf of Michael Fehler
Sent: Tue 3/17/2009 3:36 PM
To: John Stockwell
Cc: Jaume', Steven C; seis...@mailman.mines.edu
Subject: Re: [Seisunix] Seismic Unix install on Mac OS X 10.5.6
-m64
to the OPTC line in Makefile.config and do
make remake
make xtremake
What platform are you working on? (Please specify Intel vs Power PC
if Mac, and operating system level).
In addition to other comments, don't use any optimization in your
OPTC = line
-John
> Michael, I have the exact same problem that you had. I edited fgettr.c,
> fputtr.c and cwp.h per Marc's suggestions, did a remake with the same
> options that Marc suggested , but I still get the same old
>
> subcalls.c : efseeko: fseeko failed
>
> when I for example run a simple surange. Can you be a bit more specific on
> what you exactly did? Many thanks in advance.
>
> I also tried the -m64 compile option: that read the data succesfully, but
> when I viewed it, it looked like garbage: very large values and no hint of
> any nice wiggly lines.
>
> Any other suggestions?
>
> On Tue, Mar 17, 2009 at 11:56 AM, Michael Fehler
> <michael...@gmail.com>wrote:
Please email me your Makefile.config file.
> Hi John and Michael,
>
> I am using Mac OS X Version 10.5.6. Reading the data with SU made without
> the OPTC optimization but with the edited files per Marc's suggestion gives
> me the same data display ('looks like garbage') as when using the unedited
> fgettr.c fputtr.c and cwp.h, but compiling with the -m64 option.
>
> Michael just sent an email with the edited files. I remade SU with his
> edited files, and the data indeed also reads successfully but still looks
> like garbage (although it is consistently the same looking garbage...). I
> guess that it means that I am unlucky and that something is likely wrong
> with this particular dataset. It thus looks that the large file problem is
> indeed solved by either the -m64 option, or the editing of the fgettr.c,
> fputtr.c and cwp.h.
>
> Huub