macos sierra 10.13.6
libfitsio.a instaleld with macoptrs +g95
compilers: g95 & gcc7
configure f90 with all default options
make f90
....
....
....
compiling /usr/local/IDL_LIBS/FIRST/Healpix_3.40/src/f90/mod/pix_tools.F90
g95 -O3 -I/usr/local/IDL_LIBS/FIRST/Healpix_3.40/include -DGFORTRAN -DG95 -w -ffree-form -fno-second-underscore -fPIC -c /usr/local/IDL_LIBS/FIRST/Healpix_3.40/src/f90/mod/coord_v_convert.f90 -o /usr/local/IDL_LIBS/FIRST/Healpix_3.40/build/mod/coord_v_convert.o -fmod=/usr/local/IDL_LIBS/FIRST/Healpix_3.40/build/mod
compiling /usr/local/IDL_LIBS/FIRST/Healpix_3.40/src/f90/mod/fitstools.F90
In file fits_s_inc.f90:2339
Included at fitstools.junk.F90:348
j4 = mod(p, qpix)
1
Error: 'p' argument of 'mod' intrinsic at (1) must be the same type and kind as 'a'
In file fits_s_inc.f90:2339
Included at fitstools.junk.F90:348
j4 = mod(p, qpix)
1
Error: Function 'mod' at (1) has no implicit type
Anonymous
Hi,
indeed, replace
Healpix/src/f90/mod/fits_template.f90
with the one found in
https://sourceforge.net/p/healpix/code/HEAD/tree/branches/branch_v340r946/src/f90/mod/fits_template.f90
or in
https://sourceforge.net/p/healpix/code/HEAD/tree/trunk/src/f90/mod/fits_template.f90
UPDATE: I ported (macports) on my mac gcc7 , defined it as to be the default via gcc_select, ported again from scratch cfitsio +gcc7 and used gfortran in the configuration. All F90 compiled and worked out (I needed ismoothing in IDL). A few warnings but no crashes. I did that yesterday before reading now your advice. Thanks anyhow, I appreciate the fast response.