[geos-devel] PHP bindings

strk strk at keybit.net
Fri Jun 18 12:53:19 EDT 2010


On Fri, Jun 18, 2010 at 06:41:47PM +0200, strk wrote:
> So, current trunk as a -std=gnu99 added to CFLAGS
> when building the PHP bindings and was tested to
> work on OpenSUSE 11.1 and Ubuntu 8.10 with gcc-4.3.2
> (-std=c99 didn't work on the Ubuntu box).

FYI: also tested successfully on 
Debian 4.0 with:
 gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)]

--strk;

> 
> If anyone feels like testing on other systems these
> are the steps:
> 
> 	0: svn up
> 	1: make sure you have php5 dev files
> 	   installed (for debian-based: apt-get install php5-dev)
> 	2: ./autogen.sh && ./configure --enable-php
> 	3: make 
> 	4: make check (bonus)
> 
> Bonus step 4 you may want to run under php/ dir only.
> If you get lots of errors in step 3 that's likely Zend
> interaction with -ansi, which is what I'm trying to
> fix in a general way.
> 
> --strk;
> 
> On Fri, Jun 18, 2010 at 11:26:35AM +0200, strk wrote:
> > I've started hand-crafting PHP bindings for the GEOS C-API.
> > Currently in the process of merging into trunk for proper
> > build scripts.
> > 
> > One obstacle I found is that -ansi, which is added to
> > CFLAGS by ./configure, won't accept Zend (PHP engine)
> > headers, so that switch must be removed when building
> > the PHP module.
> > 
> > Does anyone know how to override the cflags for just
> > one dir ? Or ideally, only drop the -ansi switch ?
> > 
> > Here's the relevant annotation from configure.in:
> > 
> >   2533    mloskot AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -ansi], [dum
> > my_cv_ansi], [-ansi], [], [WARNFLAGS="$WARNFLAGS -ansi"], [])
> > 
> > --strk; 
> > 
> >   ()   Free GIS & Flash consultant/developer
> >   /\   http://strk.keybit.net/services.html
> > _______________________________________________
> > geos-devel mailing list
> > geos-devel at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/geos-devel
> 
> -- 
> 
>   ()   Free GIS & Flash consultant/developer
>   /\   http://strk.keybit.net/services.html
> _______________________________________________
> geos-devel mailing list
> geos-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geos-devel

-- 

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html


More information about the geos-devel mailing list