[gdal-dev] Makefile problem in GDAL?

Even Rouault even.rouault at spatialys.com
Mon Mar 6 07:16:04 PST 2017


On lundi 6 mars 2017 15:14:59 CET Dr Rainer Woitok wrote:
> Greetings,
> 
> having checked out the bookmark "remote/tags/2.1.3" (2017-01-20 08:19:14
> +0000 even.rouault at mines-paris.org), I configured GDAL and the ran "make
> install" just to produce the following error:
> 
>    libtool: compile:  g++ -I/home/Rainer/repo/gdal/gdal/port
> -I/home/Rainer/repo/gdal/gdal/gcore -I/home/Rainer/repo/gdal/gdal/alg
> -I/home/Rainer/repo/gdal/gdal/ogr
> -I/home/Rainer/repo/gdal/gdal/ogr/ogrsf_frmts
> -I/home/Rainer/repo/gdal/gdal/gnm -I/home/Rainer/repo/gdal/gdal/apps -g -O2
> -Wall -Wextra -Winit-self -Wunused-parameter -Wformat
> -Werror=format-security -Wno-format-nonliteral -Wlogical-op -Wshadow
> -Werror=vla -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual
> -fno-operator-names -DJPEG_DUAL_MODE_8_12 -Ilibjpeg
> -DDEFAULT_MAX_MEM=500000000L -DGNM_ENABLED -DOGR_ENABLED
> -I/home/Rainer/repo/gdal/gdal/port -I/home/Rainer/include
> -DGDAL_COMPILATION -I../mem -DENABLE_LIBJPEG_NO_RETURN -c jpgdataset.cpp 
> -DDLL_EXPORT -DPIC -o ../o/.libs/jpgdataset.o In file included from
> jpgdataset.cpp:40:0:
>    /home/Rainer/include/memdataset.h:78:42: error: expected ';' at end of
> member declaration virtual const char *GetProjectionRef() CPL_OVERRIDE;
>                                              ^
> 
> The already existing  header file "/home/Rainer/include/memdataset.h" is
> a relict from former GDAL compilations  with other versions  checked out
> and obviously didn't fit GDAL version 2.1.3.  But the real problem seems
> to be that this file was  read at all.   The correct  header file was in
> directory "../mem/",  but directive "-I../mem" was overridden by preced-
> ing directive "-I/home/Rainer/include"  (derived from configuration opt-
> ion "--includedir=...").   Shouldn't therefore this option together with
> the directory derived from option "--oldincludedir=..."  be always spec-
> ified as the very last "-I" options?

Indeed. I've fixed that in that Makefile in trunk. But it'slike there must be other driver 
makefiles where this should be fixed. If someone wants to do a review and propose patches...



-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170306/a19d1e36/attachment-0001.html>


More information about the gdal-dev mailing list