[postgis-users] Makefile syntax problem with 1.2/8.2?

Nick Bower nick at nickbower.com
Tue Dec 26 00:58:21 PST 2006


Thanks Devrim.  In the end I had to compile lwgeom by hand, removing the 
offending gcc arg "/usr/lib", then re-ran the top-level Makefile.  
Thanks for so adeptly tracking down the source of the problem!

FYI, my geos is 2.2.1 so 12 months old and perhaps time to upgrade.  
Even if your fix isn't accepted, a note will need to be placed into the 
Postgis system requirements for a minimum supported level of geos deployed.


Devrim GUNDUZ wrote:
> Hi,
>
> On Wed, 2006-12-13 at 12:59 +0000, Nick Bower wrote:
>   
>> Hi.  This is weirding me out - I'm not new to Postgis/Postgres, but an
>> getting  a compilation syntax error when building using FC6 packaged
>> proj/geos.  Any ideas? 
>>     
>
> I just got the same error. Applying this patch solved my problem; but
> I'm not sure whether this is the right fix or not:
>
> =========================
> --- configure.old       2006-12-25 14:39:26.000000000 +0200
> +++ configure   2006-12-25 14:39:35.000000000 +0200
> @@ -4609,13 +4609,6 @@
>         GEOS_DIR=`$GEOSCONFIG --prefix`
>
>         GEOS_LDFLAGS=`$GEOSCONFIG --ldflags 2> /dev/null`
> -       if test x"$GEOS_LDFLAGS" = "x"; then
> -               # older geos-config versions did not
> -               # support the --ldflags switch, we'll
> -               # default to GEOS_DIR/lib in this case.
> -               #
> -               GEOS_LDFLAGS="$GEOS_DIR/lib"
> -       fi
>
>         GEOS_MAJOR=`$GEOSCONFIG --version | cut -d. -f1`
>         if test "$GEOS_MAJOR" = "@GEOS_VERSION@"; then
>
> =========================
>
> AFAICS the problem is the code introduced here:
>
> 2006-11-10 Sandro Santilli <strk at refractions.net>
>
>         * configure.in (geos detection): use $geos_prefix/lib when
>           --ldflags is not supported by geos-config available.
>
> This patch results in:
> =======
>     GEOS: /usr/bin/geos-config (with C-API)
>           (ldflags: )
> =======
>
> Any comment?
>
> Regards,
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>   




More information about the postgis-users mailing list