Attached is 44R27 please try this

 cwp_su_all_44R27.tgz


On Fri, Mar 17, 2023 at 10:04 AM Paul Fertser <fercerpav@gmail.com> wrote:
Hi,

On Fri, Mar 17, 2023 at 10:36:08AM +0100, Ramon Carbonell wrote:
> I have been able to compile CWP-44.R26 with the changes in the Makefile.config
...
> OPTC = -g -std=c99 -m64 -Wall -ansi -Wno-long-long -D_ISOC99_SOURCE
...
> The generated executables have an segmentation  fault when they are called

I found the reason to be combination of -std=c99 with features from
POSIX, so another macro should be defined instead, please try with
these changes:

diff --git a/src/Makefile.config b/src/Makefile.config
index a1b8699c11e2..67a628b90329 100644
--- a/src/Makefile.config
+++ b/src/Makefile.config
@@ -68,7 +68,7 @@ RANFLAGS =
 ICHMODLINE = chmod 644 $@
 MCHMODLINE = chmod 755 $@

-POSTLFLAGS =
+POSTLFLAGS = $(shell pkg-config --libs libtirpc)

 #-----------------------------------------------------------------------
 # use both X11 path conventions
@@ -92,8 +92,8 @@ CPP = /usr/bin/cpp
 CC = /usr/bin/gcc
 #OPTC = -g -c90  -m64 -Wall -ansi  -Wno-long-long
 #OPTC = -g -std=c90  -m64 -Wall -ansi  -Wno-long-long
-OPTC = -g -std=c99  -m64 -Wall -ansi  -Wno-long-long
-CFLAGS = -I$I $(OPTC) $(CWP_FLAGS)
+OPTC = -g -std=c99  -m64 -Wall -ansi  -Wno-long-long -D_POSIX_C_SOURCE=200112L
+CFLAGS = -I$I $(OPTC) $(CWP_FLAGS) $(shell pkg-config --cflags libtirpc)


With this I can't reproduce any segfaults. Please report if there're
any other problems left.

--
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercerpav@gmail.com
_______________________________________________
Seisunix mailing list -- seisunix@mailman.seismic-unix.org
To unsubscribe send an email to seisunix-leave@mailman.seismic-unix.org