Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Aug 2013 18:50:07 GMT
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/181456: graphics/gdal: postgisrasterdataset.cpp:2052:36: error: use of undeclared identifier 'GDAL_DMD_SUBDATASETS'
Message-ID:  <201308211850.r7LIo7lg093793@oldred.freebsd.org>
Resent-Message-ID: <201308211900.r7LJ00Of016987@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         181456
>Category:       ports
>Synopsis:       graphics/gdal: postgisrasterdataset.cpp:2052:36: error: use of undeclared identifier 'GDAL_DMD_SUBDATASETS'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 21 19:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     O. Hartmann
>Release:        FreeBSD 10.0-CURRENT/amd64
>Organization:
FU Berlin
>Environment:
FreeBSD 10.0-CURRENT #6 r254572: Tue Aug 20 19:18:38 CEST 2013

CFLAGS+= -O3 -march=native

>Description:
The port graphics/gdal fails to compile on both FreeBSD 9.2-PRE (with CLANG) and 10.0-CURRENT as shown below for FreeBSD 10.0:

/bin/sh /usr/local/bin/libtool --mode=compile --tag=CXX c++ -O2 -pipe -O3 -fstrict-aliasing -march=native -fPIC -fno-strict-aliasing -DHAVE_SSE_AT_COMPILE_TIME  -Wall  -I ../mem -I ../vrt  -I/usr/local/include -I/usr/local/include/postgresql/server  -DPG_HAS_PQESCAPESTRINGCONN -I/usr/ports/graphics/gdal/work/gdal-1.10.0/port -I/usr/ports/graphics/gdal/work/gdal-1.10.0/gcore -I/usr/ports/graphics/gdal/work/gdal-1.10.0/alg -I/usr/ports/graphics/gdal/work/gdal-1.10.0/ogr -I/usr/ports/graphics/gdal/work/gdal-1.10.0/ogr/ogrsf_frmts -DOGR_ENABLED -I/usr/local/include -I/usr/ports/graphics/gdal/work/gdal-1.10.0/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr -I/usr/include  -c -o ../o/postgisrasterdataset.lo postgisrasterdataset.cpp
libtool: compile:  c++ -O2 -pipe -O3 -fstrict-aliasing -march=native -fPIC -fno-strict-aliasing -DHAVE_SSE_AT_COMPILE_TIME -Wall -I ../mem -I ../vrt -I/usr/local/include -I/usr/local/include/postgresql/server -DPG_HAS_PQESCAPESTRINGCONN -I/usr/ports/graphics/gdal/work/gdal-1.10.0/port -I/usr/ports/graphics/gdal/work/gdal-1.10.0/gcore -I/usr/ports/graphics/gdal/work/gdal-1.10.0/alg -I/usr/ports/graphics/gdal/work/gdal-1.10.0/ogr -I/usr/ports/graphics/gdal/work/gdal-1.10.0/ogr/ogrsf_frmts -DOGR_ENABLED -I/usr/local/include -I/usr/ports/graphics/gdal/work/gdal-1.10.0/port -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local -I/usr/local/include -I/usr -I/usr/include -c postgisrasterdataset.cpp  -fPIC -DPIC -o ../o/.libs/postgisrasterdataset.o
postgisrasterdataset.cpp:2052:36: error: use of undeclared identifier 'GDAL_DMD_SUBDATASETS'
        poDriver->SetMetadataItem( GDAL_DMD_SUBDATASETS, "YES" );
                                   ^
1 error generated.
gmake[4]: *** [../o/postgisrasterdataset.lo] Error 1
gmake[4]: Leaving directory `/usr/ports/graphics/gdal/work/gdal-1.10.0/frmts/postgisraster'
gmake[3]: *** [postgisraster-install-obj] Error 2
gmake[3]: Leaving directory `/usr/ports/graphics/gdal/work/gdal-1.10.0/frmts'
gmake[2]: *** [frmts-target] Error 2
gmake[2]: Leaving directory `/usr/ports/graphics/gdal/work/gdal-1.10.0'
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/graphics/gdal
*** Error code 1

>How-To-Repeat:
Compile/update port graphics/gdal on most recent FreeBSD 10.0-CURRENT and 9.2-PRE (with CLANG)
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308211850.r7LIo7lg093793>