Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#4168 closed defect (invalid)

PG Driver broken in rev22754 ?

Reported by: darkblueb Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: svn-trunk
Severity: normal Keywords:
Cc:

Description

Debian 6; AMD64;PG9


make[3]: Entering directory `/green2/slow_shared/srcsAced/gdal_trunk/gdal/ogr/ogrsf_frmts/pg' g++ -g -O2 -fPIC -Wall -I/home/slow_shared/srcsAced/gdal_trunk/gdal/port -I/home/slow_shared/srcsAced/gdal_trunk/gdal/gcore -I/home/slow_shared/srcsAced/gdal_trunk/gdal/alg -I/home/slow_shared/srcsAced/gdal_trunk/gdal/ogr -I/home/slow_shared/srcsAced/gdal_trunk/gdal/ogr/ogrsf_frmts -I/usr/include/postgresql -I/usr/include/postgresql/8.4/server -DPG_HAS_PQESCAPESTRINGCONN -DOGR_ENABLED -I/home/slow_shared/srcsAced/gdal_trunk/gdal/port -c -o ../o/ogrpgtablelayer.o ogrpgtablelayer.cpp ogrpgtablelayer.cpp: In member function ‘virtual int OGRPGTableLayer::TestCapability(const char*)’: ogrpgtablelayer.cpp:1891: error: ‘OLCDeleteField’ was not declared in this scope ogrpgtablelayer.cpp:1892: error: ‘OLCAlterFieldDefn’ was not declared in this scope ogrpgtablelayer.cpp: In member function ‘virtual OGRErr OGRPGTableLayer::DeleteField(int)’: ogrpgtablelayer.cpp:2135: error: ‘class OGRFeatureDefn’ has no member named ‘DeleteFieldDefn’ ogrpgtablelayer.cpp: In member function ‘virtual OGRErr OGRPGTableLayer::AlterFieldDefn(int, OGRFieldDefn*, int)’: ogrpgtablelayer.cpp:2172: error: ‘ALTER_TYPE_FLAG’ was not declared in this scope ogrpgtablelayer.cpp:2175: error: ‘ALTER_WIDTH_PRECISION_FLAG’ was not declared in this scope ogrpgtablelayer.cpp:2181: error: ‘ALTER_TYPE_FLAG’ was not declared in this scope ogrpgtablelayer.cpp:2182: error: ‘ALTER_WIDTH_PRECISION_FLAG’ was not declared in this scope ogrpgtablelayer.cpp:2218: error: ‘ALTER_NAME_FLAG’ was not declared in this scope ogrpgtablelayer.cpp:2262: error: ‘ALTER_NAME_FLAG’ was not declared in this scope ogrpgtablelayer.cpp:2264: error: ‘ALTER_TYPE_FLAG’ was not declared in this scope ogrpgtablelayer.cpp:2266: error: ‘ALTER_WIDTH_PRECISION_FLAG’ was not declared in this scope make[3]: * o/ogrpgtablelayer.o Error 1 make[3]: Leaving directory `/green2/slow_shared/srcsAced/gdal_trunk/gdal/ogr/ogrsf_frmts/pg' make[2]: * [pg-target] Error 2 make[2]: Leaving directory `/green2/slow_shared/srcsAced/gdal_trunk/gdal/ogr/ogrsf_frmts' make[1]: * [sublibs] Error 2 make[1]: * Waiting for unfinished jobs.... make[1]: Leaving directory `/green2/slow_shared/srcsAced/gdal_trunk/gdal/ogr' make: * [ogr-target] Error 2

Change History (3)

comment:1 by Even Rouault, 13 years ago

Resolution: invalid
Status: newclosed

I highly suspect you have not svn update'd your whole GDAL tree or that you have local changes that cause merge issues... OLCDeleteField, ALTER_TYPE_FLAG constant and friends are defined in ogr/ogr_core.h. See http://trac.osgeo.org/gdal/browser/trunk/gdal/ogr/ogr_core.h

Reopen if you still observe the issue after checking.

comment:2 by Even Rouault, 13 years ago

Hum, I just saw your comments on IRC, so my hypothesis doesn't seem right, but I see 2 paths in your command line :

/green2/slow_shared/srcsAced/gdal_trunk/gdal that is the working directory used by make

and

/home/slow_shared/srcsAced/gdal_trunk/gdal that is the gdal root path used for -I flags

Do they point to the same directory ? If not, that might be the cause if the include paths hasn't been updated.

comment:3 by darkblueb, 13 years ago

you are right - it was a confusion of paths on my system

Note: See TracTickets for help on using tickets.