Hi,
consider R21 as a beta release and send the problems to the list. John has uploaded R22 on the seismic-unix.org repository, with some modifications (mainly the the C++ style comments //)

The most serious problem for the moment is the impossibility to compile (and link) XDR code in Ubuntu 20.10 and 21.04 (glibc 2.33). It is an Ubuntu bug. Code compiled with 20.04 can be run on 20.10 and 21.04.

Fedora 33 and ArchLinux, which also use novel glibc (2.32 and 2.33) are OK but they need specific CFLAGS.

Ubuntu 20.04 and Debian use more traditional glibc 2.31 and there are no problems.

D.


Le 19/04/2021 à 16:10, Fernando M. Roxo da Motta a écrit :
On Wed, 31 Mar 2021 19:02:45 +0100, Halitim Bachir <bhalitim@gmail.com>
wrote:


Thanks much John;

Just for your information i previously compiled  the
cwp_su_all_44R19.tgz without problem but after downloading the R21
and tried to compile i have the following error :

Sincere regards

Bachir
  Hi Bachir and list,

  I was giving a try in building SU in a Ubuntu 20.04 with all updates
and stumbled in the same problem. BTW, I have:

$ gcc --version
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0

  GCC version may be an important factor bellow.

  Beside this 'isfinite' error, there are a bunch of errors due to the
use of '//' as comment in many codes.   The error issued was that this
is invalid in C90 standard.

  I edited the Makefile.config changing the line:

OPTC = -g -std=c90  -m64 -Wall -ansi  -Wno-long-long

To

OPTC = -g  -m64 -Wall  -Wno-long-long

That is, removing references to standards.   The build of C code went
without problem.

  During 'make finstall' I got the error:

gfortran: error: unrecognized command line option
‘-fallow-argument-mismatch’; did you mean ‘-Wno-argument-mismatch’?

  I edited the Makefile.config changing the line:

FFLAGS = $(FOPTS) -ffixed-line-length-none  -fallow-argument-mismatch

To

FFLAGS = $(FOPTS) -ffixed-line-length-none  -Wno-argument-mismatch
        

And the Fortran code proceeded without problem.

  The only problem I still have is in 'make sfinstall' with the error:

cd Stdio_s; make -f Makefile LIBTYPE="-Dvt_threaded=0" SHELL="/bin/sh" \
        CC="cc" CCMODE="-O" CXFLAGS=""
make[4]: Entrando no diretório
'/usr/local/geof/cwp-44R21/src/Sfio/src/lib/sfio/Stdio_s' cc -c -I.
-I.. -O -Dvt_threaded=0  stdfgetc.c In file included from
/usr/include/wchar.h:43, from ../sfhdr.h:304,
                 from stdio_s.h:11,
                 from stdfgetc.c:1:
/usr/include/x86_64-linux-gnu/bits/types/__FILE.h:5:25: error:
conflicting types for ‘__FILE’ 5 | typedef struct _IO_FILE __FILE;
      |                         ^~~~~~
In file included from stdfgetc.c:1:
stdio_s.h:8:25: note: previous declaration of ‘__FILE’ was here
    8 | typedef struct _sfio_s *__FILE;
      |                         ^~~~~~


  Seems that there is some conflict in __FILE definition somewhere to
be looked into.


  HTH




sunan.c: In function ‘main’:
sunan.c:80:7: warning: implicit declaration of function ‘isfinite’
[-Wimplicit-function-declaration]
       if(!isfinite(tr.data[i])) {  
       ^
/tmp/cct49nLD.o: In function `main':
/home/cwp/cwp/src/su/main/amplitudes/sunan.c:80: undefined reference
to `isfinite'
/home/cwp/cwp/src/su/main/amplitudes/sunan.c:86: undefined reference
to `isfinite'
/home/cwp/cwp/src/su/main/amplitudes/sunan.c:88: undefined reference
to `isfinite'
/home/cwp/cwp/src/su/main/amplitudes/sunan.c:90: undefined reference
to `isfinite'
/home/cwp/cwp/src/su/main/amplitudes/sunan.c:91: undefined reference
to `isfinite'
collect2: error: ld returned 1 exit status
make[3]: [/home/cwp/cwp/bin/sunan] Error 1 (ignored)  
chmod: cannot access ‘/home/cwp/cwp/bin/sunan’: No such file or
directory make[3]: *** [/home/cwp/cwp/bin/sunan] Error 1
make[3]: Leaving directory `/home/cwp/cwp/src/su/main/amplitudes'
make[2]: *** [INSTALL] Error 2
make[2]: Leaving directory `/home/cwp/cwp/src/su/main'
make[1]: *** [INSTALL] Error 2
make[1]: Leaving directory `/home/cwp/cwp/src/su'  
make: *** [sustuff] Error 2




On Tue, Mar 30, 2021 at 7:17 PM John Stockwell
<john.19071969@gmail.com> wrote:

Dear Seismic Unix user,

I have put some fixes in for the Fortran codes and for the SFIO
installations so that you should be able to install everything. Mac
OS X Big Sur was a painful upgrade.  As you might guess, I am
preparing for Release 45.

If you have codes that can be shared under the Berkeley style
license (no GPL), that is in the style of SU, but honors the
existing header structure, has a demo that generates its own data,
and that you would like to have included in SU, please email me at:
john.19071969@gmail.com so we can discuss how best to include the
code.

Thank you for using Seismic Un*x.


John Stockwell   | john.19071969@gmail.com
https://wiki.Seismic-Unix.org
(The New Home of Seismic Un*x)


——— Release notes for 44R21 ----

Summer 2018 - Thanks to Dominque Rousset of the University of Pau,
Seismic Unix distributions and other information may be found at

https://wiki.seismic-unix.org
Installation tip. If you get error messages regarding the XDR
materials you may need to install libtirpc from your Linux
distribution.

John Stockwell retired from the Colorado School of Mines effective
1 Jan 2018. He continues to work with Seismic Unix.
Please email: john.19071969@gmail.com <john.19071969@gmail.com>
if you have questions, or if you want to supply  bug fixes or new
SU code.


What is new in the SU package:

                character*120 fnames(2) from fnames(3)
                Thanks to Fernando Roxo da Motta
Fortran/Raytrace3d/ktime_3d_rayq.f - ERROR of argument mismatch in
two locations.
                fix: added -fallow-argument-mismatch to the
                FFLAGS in Makefile.config_Big_Sur  this might need
to be propagated to all of the Makefile.config_* and this
                likely takes care of the vzestf.f error as well.

Sfio/
        Replaced these files with versions from the 2002 release of
sfio. ./src/lib/sfio/Stdio_b/sprintf.c
        ./src/lib/sfio/Stdio_b/vsprintf.c
        ./src/lib/sfio/Stdio_s/stdsprintf.c
        The make sfio should work now.

demos/Ordinary_differential_equations  - has been added to go with
the new ordinary_differential equation items in par/main


John Stockwell   | john.19071969@gmail.com
https://wiki.Seismic-Unix.org
(The New Home of Seismic Un*x)
58 Johns-iMac.local> more news44RXX
Summer 2018 - Thanks to Dominque Rousset of the University of Pau,
Seismic Unix distributions and other information may be found at

https://wiki.seismic-unix.org
Installation tip. If you get error messages regarding the XDR
materials you may need to install libtirpc from your Linux
distribution.

John Stockwell retired from the Colorado School of Mines effective
1 Jan 2018. He continues to work with Seismic Unix.
Please email: john.19071969@gmail.com <john.19071969@gmail.com>
if you have questions, or if you want to supply  bug fixes or new
SU code.


What is new in the SU package:

Restructuring:
par/main

is now:

par/main/apertures
par/main/cellular_automata
par/main/data_conversion
par/main/material_parameters
par/main/ordinary_differential_equations
par/main/parameter_file_utilities
par/main/plotting_utilities
par/main/ray_theory
par/main/refraction
par/main/resampling
par/main/smoothing
par/main/statistics
par/main/velocity_model_building
par/main/velocity_perturbation
par/main/wavelet_transform


New:
ramac2su - converts RAMAC GPR files to su format with a nominal
geometry Thanks to: Hervé Perrou,d  12/2000and Dominique Rousset,
2019
                of the Universith of Pau
configs/Makefile.config_Linux_Ubuntu
        Makefile.config_Mac_OSX_Mojave
        Makefile.config_Linux_Fedora_32
        Makefile.config_Linux_ARCH
        Makefile.config_MacOSX_Catalina
        Makefile.config_Mac_OSX_Big_SUR
par/main/ordinary_differential_equations
         logisticfit.c - extract growth and carrying capacity for
logistic model
         seirepidemic.c - SEIR epidemic model
         sirepidemic.c - SIR epidemic model
         sirdepidemic.c - SIRD epidemic model
         voltlotka.c - classic Lotka Volterra predator-prey model
demos/Ordinary_differential_equations
         Epidemiology
         Logistic_Equation
         Predator_Prey

Fixed:
su/main/amplitudes/sugain.c - fixed a but in the AGC function seen
on GPR data but not apparent on seismic data
                Thanks to Dominique Rousset of the University of Pau

su/lib/getSPSfile.c - replaced // comments with  /* comments */
owing to a problem on CENTOS version 7.
Fortran/Vzest/vzestf.f - changed (about line 1119) to
                character*120 fnames(2) from fnames(3)
                Thanks to Fernando Roxo da Motta
Fortran/Raytrace3d/ktime_3d_rayq.f - ERROR of argument mismatch in
two locations.
                fix: added -fallow-argument-mismatch to the
                FFLAGS in Makefile.config_Big_Sur  this might need
to be propagated to all of the Makefile.config_* and this
                likely takes care of the vzestf.f error as well.

Sfio/
        Replaced these files with versions from the 2002 release of
sfio. ./src/lib/sfio/Stdio_b/sprintf.c
        ./src/lib/sfio/Stdio_b/vsprintf.c
        ./src/lib/sfio/Stdio_s/stdsprintf.c
        The make sfio should work now.

demos/Ordinary_differential_equations  - has been added to go with
the new ordinary_differential equation items in par/main


John Stockwell   | john.19071969@gmail.com
https://wiki.Seismic-Unix.org
(The New Home of Seismic Unix)

_______________________________________________
Seisunix mailing list
Seisunix@mailman.seismic-unix.org
https://mailman.seismic-unix.org/listinfo/seisunix
 







  Roxo


-- 
|Dominique Rousset           LFCR UMR5150 / E2S UPPA / Dpt des géosciences| 
|Univ. Pau et des Pays de l'Adour BP 1155       F-64013 Pau Cedex - France|
|mailto:dominique.rousset@univ-pau.fr jami:drousset http://lfc.univ-pau.fr|
|Off: +33 559 407 423|Cell: +33 660 861 391|xmpp: dominique@rousset.nom.fr|