FreeBSD Port: gdal-1.10.0

Hacker, Benjamin T - GS Benjamin.Hacker at exelisinc.com
Wed Aug 28 14:56:35 UTC 2013


Thanks!!  Your suggestion corrected my problem.

Ben Hacker Jr.
ITT Exelis Inc.


-----Original Message-----
From: Rainer Hurling [mailto:rhurlin at gwdg.de]
Sent: Wednesday, August 28, 2013 12:42 AM
To: Hacker, Benjamin T - GS
Cc: 'sunpoet at FreeBSD.org'; 'ports at FreeBSD.org'
Subject: Re: FreeBSD Port: gdal-1.10.0

Am 27.08.2013 23:31 (UTC+1) schrieb Hacker, Benjamin T - GS:
> Dear Sir,
>
> I have attempted to update my Installed Ports.  I am having an issue with the GDAL port as listed below.  Any assistance you can provide would be greatly appreciated!
>
> Thanks!
>
> {root at FreeBSD-OSM:/usr/ports/graphics/gdal # make install <Enter>
> . . .
> postgisrasterdataset.cpp: In function 'void GDALRegister_PostGISRaster()':
> postgisrasterdataset.cpp:2052: error: 'GDAL_DMD_SUBDATASETS' was not
> declared in this scope
> gmake[2]: *** [../o/postgisrasterdataset.lo] Error 1
> gmake[2]: Leaving directory `/usr/ports/graphics/gdal/work/gdal-1.10.0/frmts/postgisraster'
> gmake[1]: *** [postgisraster-install-obj] Error 2
> gmake[1]: Leaving directory `/usr/ports/graphics/gdal/work/gdal-1.10.0/frmts'
> gmake: *** [frmts-target] Error 2
> *** [do-build] Error code 1
>
> Stop in /usr/ports/graphics/gdal.
> *** [install] Error code 1
>
> Stop in /usr/ports/graphics/gdal.
> root at FreeBSD-OSM:/usr/ports/graphics/gdal #    }


> {root at FreeBSD-OSM:/usr/ports/graphics/gdal # portupgrade -aR . . .
> . . .
> postgisrasterdataset.cpp: In function 'void GDALRegister_PostGISRaster()':
> postgisrasterdataset.cpp:2052: error: 'GDAL_DMD_SUBDATASETS' was not
> declared in this scope
> gmake[2]: *** [../o/postgisrasterdataset.lo] Error 1
> gmake[2]: Leaving directory `/usr/ports/graphics/gdal/work/gdal-1.10.0/frmts/postgisraster'
> gmake[1]: *** [postgisraster-install-obj] Error 2
> gmake[1]: Leaving directory `/usr/ports/graphics/gdal/work/gdal-1.10.0/frmts'
> gmake: *** [frmts-target] Error 2
> *** [do-build] Error code 1
>
> Stop in /usr/ports/graphics/gdal.
> *** [build] Error code 1
>
> Stop in /usr/ports/graphics/gdal.
> ** Command failed [exit code 1]: /usr/bin/script -qa
> /tmp/portupgrade20130827-41511-2s1msu env UPGRADE_TOOL=portupgrade
> UPGRADE_PORT=gdal-1.9.2 UPGRADE_PORT_VER=1.9.2 make
> ** Fix the problem and try again.
> --->  Skipping 'databases/postgis20' (postgis-2.0.2_1) because a
> ---> requisite package 'gdal-1.9.2' (graphics/gdal) failed (specify -k
> ---> to force)
> ** Listing the failed packages (-:ignored / *:skipped / !:failed)
>         ! graphics/gdal (gdal-1.9.2)    (unknown build error)
>         * databases/postgis20 (postgis-2.0.2_1) }



> {root at FreeBSD-OSM:/usr/ports/graphics/gdal # uname -a
> FreeBSD FreeBSD-OSM 9.1-RELEASE-p6 FreeBSD 9.1-RELEASE-p6 #0: Wed Aug 21 20:40:52 UTC 2013     root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64  }



> {root at FreeBSD-OSM:/usr/ports/graphics/gdal # pkg_info
> . . .
> gdal-1.9.2          A translator library for geospatial data formats
> . . .
> root at FreeBSD-OSM:/usr/ports/graphics/gdal #  }


> Ben Hacker Jr.
> ITT Exelis
> Herndon, VA

For me this only happened, when an older graphics/gdal is installed.
There seems to be a problem not taking the new include/gdal.h from the port, if an older /usr/local/include/gdal.h exists. So as a workaround deinstalling the old port before building the new one should help.

HTH,
Rainer

sunpoet@ : After gdal-1.10.0 is committed now, could you please close my PR 180945, thanks.

________________________________

This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Exelis Inc. The recipient should check this e-mail and any attachments for the presence of viruses. Exelis Inc. accepts no liability for any damage caused by any virus transmitted by this e-mail.


More information about the freebsd-ports mailing list