[Chameleon] building php_ogr

Bart van den Eijnden BEN at Syncera-ITSolutions.NL
Mon Oct 3 06:54:01 EDT 2005


It could be that php_ogr is not compatible with GDAL 1.3. Can you try with GDAL 1.2.6?

Best regards,
Bart

Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl

>>> Raphaëla Saling <rsaling at club-internet.fr> 3-10-2005 12:42:54 >>>

Information system:
Mandrake 10.1
PHP4.3.8 installed with rpm and php-devel libraries
GDAL 1.3
Mapserver 6.1.0
libsctd5++
libstdc6++
I tried to build php_ogr.so
I downloaded php_ogr.1.0.1.tar.gz and I put it in php-devel/extensions directory.
I do 
$ tar xvzf php_ogr.1.0.1.tar.gz 
$ cd php_ogr.1.0.1
$ /usr/bin/phpize
$ ./configure --with-ogr=/usr/local/bin/gdal-config --with-php-config=/usr/bin/php-config
$ make
 
And I received this message:
 
Makefile:128: attention : écrasement des commandes pour la cible « /usr/src/php-devel/extensions/php_ogr-1.0.1/modules/ogr.la »
Makefile:122: attention : anciennes commandes ignorées pour la cible « /usr/src/php-devel/extensions/php_ogr-1.0.1/modules/ogr.la »
Makefile:131: attention : écrasement des commandes pour la cible « ogr.la »
Makefile:125: attention : anciennes commandes ignorées pour la cible « ogr.la »
ld -shared -soname libphp_common.so.432 -lc -o libphp_common.so
/bin/sh /usr/src/php-devel/extensions/php_ogr-1.0.1/libtool --mode=compile gcc -I. -I/usr/src/php-devel/extensions/php_ogr-1.0.1 -DPHP_ATOM_INC -I/usr/src/php-devel/extensions/php_ogr-1.0.1/include -I/usr/src/php-devel/extensions/php_ogr-1.0.1/main -I/usr/src/php-devel/extensions/php_ogr-1.0.1 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -prefer-pic -c /usr/src/php-devel/extensions/php_ogr-1.0.1/ogr.c -o ogr.lo
mkdir .libs
gcc -I. -I/usr/src/php-devel/extensions/php_ogr-1.0.1 -DPHP_ATOM_INC -I/usr/src/php-devel/extensions/php_ogr-1.0.1/include -I/usr/src/php-devel/extensions/php_ogr-1.0.1/main -I/usr/src/php-devel/extensions/php_ogr-1.0.1 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /usr/src/php-devel/extensions/php_ogr-1.0.1/ogr.c -fPIC -DPIC -o .libs/ogr.o
/usr/src/php-devel/extensions/php_ogr-1.0.1/ogr.c: In function `zif_ogr_g_createfromwkb':
/usr/src/php-devel/extensions/php_ogr-1.0.1/ogr.c:957: error: too few arguments to function `OGR_G_CreateFromWkb'
/usr/src/php-devel/extensions/php_ogr-1.0.1/ogr.c: In function `zif_ogr_f_getfieldasintegerlist':
/usr/src/php-devel/extensions/php_ogr-1.0.1/ogr.c:3238: warning: use of cast expressions as lvalues is deprecated
make: *** [ogr.lo] Erreur 1
 
What is the problem???
I need php_ogr, because I want to work with chameleon and WMS/WFS widgets.
 
Thank you for your response
 
Best regards
 
Raphaela




More information about the Chameleon mailing list