I build the seisunix package with the make configure option #XDRFLAG = -DSUXDR. When using segywrite, the 'Segmentation fault (core dumped) error' occured. I checked the source code of segywrite.c and find the error occured at line #295 efread(ebcbuf, 1, EBCBYTES, pipefp);. The efread function is not in the standard library, and i don't know how to debug further.
The system is Ubuntu 22.04.