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

Devrim GUNDUZ devrim at CommandPrompt.com
Mon Dec 25 04:46:56 PST 2006


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,
-- 
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20061225/70e0db3f/attachment.pgp>


More information about the postgis-users mailing list