<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD><TITLE></TITLE>
<STYLE>
body, table, tr, td, p {font-family: Verdana;font-size:12px;margin: 0px 0px 0px 0px}
.bgtabl {BACKGROUND-REPEAT: no-repeat}
</STYLE>
</HEAD>
<BODY bgProperties="fixed" bgcolor="#FFFFFF" background="http://flashimg.club-internet.fr/flash/vide.gif">
<P>Information system:</P>
<P>Mandrake 10.1</P>
<P>PHP4.3.8 installed with rpm and php-devel libraries</P>
<P>GDAL 1.3</P>
<P>Mapserver 6.1.0</P>
<P>libsctd5++</P>
<P>libstdc6++</P>
<P>I tried to build php_ogr.so</P>
<P>I downloaded php_ogr.1.0.1.tar.gz and I put it in php-devel/extensions directory.</P>
<P>I&nbsp;do </P>
<P>$ tar xvzf php_ogr.1.0.1.tar.gz </P>
<P>$&nbsp;cd php_ogr.1.0.1</P>
<P>$ /usr/bin/phpize</P>
<P>$ ./configure --with-ogr=/usr/local/bin/gdal-config --with-php-config=/usr/bin/php-config</P>
<P>$ make</P>
<P>&nbsp;</P>
<P>And I received this message:</P><FONT size=2>
<P>&nbsp;</P>
<P>Makefile:128: attention : écrasement des commandes pour la cible « /usr/src/php-devel/extensions/php_ogr-1.0.1/modules/ogr.la »</P>
<P>Makefile:122: attention : anciennes commandes ignorées pour la cible « /usr/src/php-devel/extensions/php_ogr-1.0.1/modules/ogr.la »</P>
<P>Makefile:131: attention : écrasement des commandes pour la cible « ogr.la »</P>
<P>Makefile:125: attention : anciennes commandes ignorées pour la cible « ogr.la »</P>
<P>ld -shared -soname libphp_common.so.432 -lc -o libphp_common.so</P>
<P>/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</P>
<P>mkdir .libs</P>
<P>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</P>
<P>/usr/src/php-devel/extensions/php_ogr-1.0.1/ogr.c: In function `zif_ogr_g_createfromwkb':</P>
<P>/usr/src/php-devel/extensions/php_ogr-1.0.1/ogr.c:957: error: too few arguments to function `OGR_G_CreateFromWkb'</P>
<P>/usr/src/php-devel/extensions/php_ogr-1.0.1/ogr.c: In function `zif_ogr_f_getfieldasintegerlist':</P>
<P>/usr/src/php-devel/extensions/php_ogr-1.0.1/ogr.c:3238: warning: use of cast expressions as lvalues is deprecated</P>
<P>make: *** [ogr.lo] Erreur 1</P>
<P>&nbsp;</P>
<P>What is the problem???</P>
<P>I need php_ogr, because I want to work with chameleon and WMS/WFS widgets.</P>
<P>&nbsp;</P>
<P>Thank you for your response</P>
<P>&nbsp;</P>
<P>Best regards</P>
<P>&nbsp;</P>
<P>Raphaela</P></FONT></body></html>