Skip to content

Seismic Unix 44R26: suxedit: subcalls.c: efopen: fopen failed #185

@rumekintun

Description

@rumekintun

Hi all,
I have compiled, after a bit of work, the latest version of Seismic Unix on a computer running Centos 9 stream, .. I resolved some error messages related to selinux, little endian- big endian, "-fcommon" .. etc... in the end everything compiles at once,,
I ran some examples from the demo directory correctly... however when running the suxedit command, I get an error message that I have not been able to fully understand.. :

#suxedit < sx000_1y2.su
suxedit: ! examine only (no header editing from STDIN)

36 traces in input file
tracl=24 tracr=24 tracf=24 nvs=3 offset=180 gx=180
ns=1000 dt=500 afilf=833 hour=14 minute=7 sec=8
grnlof=24

g 1 10

suxedit: subcalls.c: efopen: fopen failed

Any idea what's is wrong here ?


my Makefile.config file
gcc version 11.5.0

LINEHDRFLAG =
XDRFLAG = -DSUXDR -DSUTIRPC -I/usr/include/tirpc/rpc -I/usr/include/tirpc
XDRLFLAGS = -L/usr/lib64 -ltirpc

ENDIANFLAG = -DCWP_BIG_ENDIAN
LARGE_FILE_FLAG = -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
CWP_FLAGS = $(LARGE_FILE_FLAG) $(ENDIANFLAG) $(XDRFLAG) $(LINEHDRFLAG) -L/usr/lib64 -ltirpc
...
...
IX11 = /usr/include
LX11 = /usr/lib64
IMOTIF = /usr/include
LMOTIF = /usr/lib64
LD_LIBRARY_PATH += $(CWPROOT)/lib:${LX11}:${LMOTIF}
CPP = cpp
CC = gcc
OPTC = -g -std=c99 -Wall -pedantic -Wno-long-long
CFLAGS = -I$I $(OPTC) $(CWP_FLAGS) -D_BSD_SOURCE -D_POSIX_SOURCE
FC = gfortran
FOPTS = -g
FFLAGS = $(FOPTS) -std=legacy -ffixed-line-length-none
C++FLAGS = -I$I $(OPTC) $(CWP_FLAGS)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions