Building sci-libs/geos-3.3.2 fails when php use flag is selected. First error seems to be here: geos.c:83:27: error: 'tsrm_ls' undeclared (first use in this function) Maybe a configure flag (--enable-php) not used? Reproducible: Always Steps to Reproduce: 1. keyword sci-libs/geos (for postgis-2.0.0 dependency) 2. enable php use flag in sci-libs/geos 2. emerge sci-libs/geos Actual Results: build fails Expected Results: build succeeds Package successfully builds when php flag is not selected.
Created attachment 311087 [details] build.log
Created attachment 311089 [details] environment
Created attachment 311091 [details] emerge info
Created attachment 311093 [details] emerge pretend
From the ./php/README in the source tarball: "Just add --enable-php to your GEOS configure line and run 'make'" However, the ebuild already makes a call to $(use_enable php). Compiling just the php module produces the same error $ cd php $ make ... geos.c:83:27: error: 'tsrm_ls' undeclared (first use in this function) ... What is this TSRMLS_CC macro anyway? Will have to do some reading...
Geos, as any other crazy-minded-upstream science library is not threadsafe at all. So -threads on php solves our issue. Fixed (well rewrite would be better than forced usedep...) in cvs.