[GRASS-user] Failure to compile GRASS GIS 7.8 with Proj 6 and GDAL 3

Nikos Alexandris nik at nikosalexandris.net
Mon Feb 3 09:15:31 PST 2020


* Nikos Alexandris <nik at nikosalexandris.net> [2020-02-02 10:40:11 +0100]:

>Markus Metz:
>
>>Hi Nikos,
>>
>>PROJ is moving fast, please use the latest PROJ 6 release 6.3.0
>>
>>On Sat, Feb 1, 2020 at 8:36 PM Nikos Alexandris <nik at nikosalexandris.net>
>>wrote:
>>>
>>>Dears,
>>>
>>>I cannot get GRASS GIS 7.8 to compile with
>>>proj
>>>Rel. 6.0.0, March 1st, 2019
>>
>>if possible, never use a x.0.0 release of any software, these new major
>>releases are usually full of bugs.
>>
>>Markus M
>
>Thank you Markus!
>I got it working, more or less. Recompiling only PROJ did away most of
>the errors but a few. I guess I need to recompile PROJ (+GEOS), then
>GDAL, then the rest.

Still need to fix a few more:

Errors in:
/osgeo/grass/general/g.proj
/osgeo/grass/general/g.region
/osgeo/grass/raster/r.horizon
/osgeo/grass/raster/r.sun
/osgeo/grass/raster3d/r3.out.netcdf

```
for DIRECTORY in /osgeo/grass/general/g.proj /osgeo/grass/general/g.region /osgeo/grass/raster/r.horizon /osgeo/grass/raster/r.sun /osgeo/grass/raster3d/r3.out.netcdf ;do cd $DIRECTORY && make ;echo ;done

: && gcc -L/osgeo/grass/dist.x86_64-pc-linux-gnu/lib -L/osgeo/grass/dist.x86_64-pc-linux-gnu/lib -Wl,--export-dynamic  -L/usr/lib64/ -Wl,-rpath-link,/osgeo/grass/dist.x86_64-pc-linux-gnu/lib -o /osgeo/grass/dist.x86_64-pc-linux-gnu/bin/g.proj OBJ.x86_64-pc-linux-gnu/create.o OBJ.x86_64-pc-linux-gnu/datumtrans.o OBJ.x86_64-pc-linux-gnu/input.o OBJ.x86_64-pc-linux-gnu/list_codes.o OBJ.x86_64-pc-linux-gnu/main.o OBJ.x86_64-pc-linux-gnu/output.o    -lgrass_gproj.7.8 -lgrass_gis.7.8 -L/usr/local/lib -lgdal -L/usr/lib64/ -lproj    -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /osgeo/grass/dist.x86_64-pc-linux-gnu/lib/libgrass_gproj.7.8.so: undefined reference to `proj_get_remarks'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /osgeo/grass/dist.x86_64-pc-linux-gnu/lib/libgrass_gproj.7.8.so: undefined reference to `proj_normalize_for_visualization'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /osgeo/grass/dist.x86_64-pc-linux-gnu/lib/libgrass_gproj.7.8.so: undefined reference to `proj_get_scope'
collect2: error: ld returned 1 exit status
make: *** [../../include/Make/Module.make:18: /osgeo/grass/dist.x86_64-pc-linux-gnu/bin/g.proj] Error 1

: && gcc -L/osgeo/grass/dist.x86_64-pc-linux-gnu/lib -L/osgeo/grass/dist.x86_64-pc-linux-gnu/lib -Wl,--export-dynamic  -L/usr/lib64/ -Wl,-rpath-link,/osgeo/grass/dist.x86_64-pc-linux-gnu/lib -o /osgeo/grass/dist.x86_64-pc-linux-gnu/bin/g.region OBJ.x86_64-pc-linux-gnu/adjust.o OBJ.x86_64-pc-linux-gnu/main.o OBJ.x86_64-pc-linux-gnu/printwindow.o OBJ.x86_64-pc-linux-gnu/zoom.o    -lgrass_gproj.7.8 -lgrass_vector.7.8 -lgrass_dig2.7.8 -lgrass_g3d.7.8 -lgrass_raster.7.8 -lgrass_gis.7.8 -lm  -L/usr/lib64/ -lproj    -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /osgeo/grass/dist.x86_64-pc-linux-gnu/lib/libgrass_gproj.7.8.so: undefined reference to `proj_get_remarks'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /osgeo/grass/dist.x86_64-pc-linux-gnu/lib/libgrass_gproj.7.8.so: undefined reference to `proj_normalize_for_visualization'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /osgeo/grass/dist.x86_64-pc-linux-gnu/lib/libgrass_gproj.7.8.so: undefined reference to `proj_get_scope'
collect2: error: ld returned 1 exit status
make: *** [../../include/Make/Module.make:18: /osgeo/grass/dist.x86_64-pc-linux-gnu/bin/g.region] Error 1

: && gcc -L/osgeo/grass/dist.x86_64-pc-linux-gnu/lib -L/osgeo/grass/dist.x86_64-pc-linux-gnu/lib -Wl,--export-dynamic  -L/usr/lib64/ -Wl,-rpath-link,/osgeo/grass/dist.x86_64-pc-linux-gnu/lib -o /osgeo/grass/dist.x86_64-pc-linux-gnu/bin/r.horizon OBJ.x86_64-pc-linux-gnu/main.o    -lgrass_gproj.7.8 -lgrass_raster.7.8 -lgrass_gis.7.8 -lm  -L/usr/lib64/ -lproj    -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /osgeo/grass/dist.x86_64-pc-linux-gnu/lib/libgrass_gproj.7.8.so: undefined reference to `proj_get_remarks'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /osgeo/grass/dist.x86_64-pc-linux-gnu/lib/libgrass_gproj.7.8.so: undefined reference to `proj_normalize_for_visualization'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /osgeo/grass/dist.x86_64-pc-linux-gnu/lib/libgrass_gproj.7.8.so: undefined reference to `proj_get_scope'
collect2: error: ld returned 1 exit status
make: *** [../../include/Make/Module.make:18: /osgeo/grass/dist.x86_64-pc-linux-gnu/bin/r.horizon] Error 1

: && gcc -L/osgeo/grass/dist.x86_64-pc-linux-gnu/lib -L/osgeo/grass/dist.x86_64-pc-linux-gnu/lib -Wl,--export-dynamic  -L/usr/lib64/ -Wl,-rpath-link,/osgeo/grass/dist.x86_64-pc-linux-gnu/lib -o /osgeo/grass/dist.x86_64-pc-linux-gnu/bin/r.sun OBJ.x86_64-pc-linux-gnu/main.o OBJ.x86_64-pc-linux-gnu/rsunlib.o    -lgrass_gproj.7.8 -lgrass_raster.7.8 -lgrass_gis.7.8 -lm  -lgrass_gmath.7.8 -L/usr/lib64/ -lproj  -lgomp   -lOpenCL  -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /osgeo/grass/dist.x86_64-pc-linux-gnu/lib/libgrass_gproj.7.8.so: undefined reference to `proj_get_remarks'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /osgeo/grass/dist.x86_64-pc-linux-gnu/lib/libgrass_gproj.7.8.so: undefined reference to `proj_normalize_for_visualization'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /osgeo/grass/dist.x86_64-pc-linux-gnu/lib/libgrass_gproj.7.8.so: undefined reference to `proj_get_scope'
collect2: error: ld returned 1 exit status
make: *** [../../include/Make/Module.make:18: /osgeo/grass/dist.x86_64-pc-linux-gnu/bin/r.sun] Error 1

: && gcc -L/osgeo/grass/dist.x86_64-pc-linux-gnu/lib -L/osgeo/grass/dist.x86_64-pc-linux-gnu/lib -Wl,--export-dynamic  -L/usr/lib64/ -Wl,-rpath-link,/osgeo/grass/dist.x86_64-pc-linux-gnu/lib -o /osgeo/grass/dist.x86_64-pc-linux-gnu/bin/r3.out.netcdf OBJ.x86_64-pc-linux-gnu/main.o    -lgrass_g3d.7.8 -lgrass_gproj.7.8 -lgrass_gis.7.8 -L/usr/local/lib -lgdal -L/usr/lib64 -lnetcdf -L/usr/lib64/ -lproj  -lgrass_datetime.7.8   -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /osgeo/grass/dist.x86_64-pc-linux-gnu/lib/libgrass_gproj.7.8.so: undefined reference to `proj_get_remarks'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /osgeo/grass/dist.x86_64-pc-linux-gnu/lib/libgrass_gproj.7.8.so: undefined reference to `proj_normalize_for_visualization'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /osgeo/grass/dist.x86_64-pc-linux-gnu/lib/libgrass_gproj.7.8.so: undefined reference to `proj_get_scope'
collect2: error: ld returned 1 exit status
make: *** [../../include/Make/Module.make:18: /osgeo/grass/dist.x86_64-pc-linux-gnu/bin/r3.out.netcdf] Error 1
```

Nikos


More information about the grass-user mailing list