<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks to all by your help, <br>
<br>
The previous problem is solved in the follow sources:<br>
lwgeom/lwgeom_chip.c<br>
lwgeom/lwgeom_dump.c<br>
Just as it commented Michael and --strk .. etc. if we declare the
variable at first of the function the script compiles perfectly.  <br>
<br>
But now I have a new problem. Is the following one:  <br>
<i>/usr/bin/ld: cannot find -lgeos<br>
collect2: ld returned 1 exit status<br>
make[1]: *** [liblwgeom.so.1.1] Error 1<br>
<br>
</i>I look the file /etc/ld.so.conf and exist a line with
'/usr/local/geos/lib' also in the .configure exist the command
'--with-geos=/usr/local/geos/bin/geos-config' then I have looked this
file and there is this portion of code: <br>
<br>
<i>case $1 in<br>
    --prefix)<br>
    echo /usr/local/geos<br>
     ;;<br>
    --version)<br>
    echo 2.1.4<br>
     ;;<br>
    --cflags)<br>
    echo -I/usr/local/geos/include<br>
      ;;<br>
    --libs)<br>
      echo -L/usr/local/geos/lib -lgeos<br>
      ;;<br>
    --includes)<br>
      echo /usr/local/geos/include<br>
      ;;<br>
    --jtsport)<br>
    echo 1.4.1<br>
      ;;<br>
    *)<br>
      usage 1 1>&2<br>
      ;;<br>
  esac<br>
</i><br>
Apparently this code refers to that link but then the error mentioned
leaves.  <br>
<br>
In the following lines I show you the summary of the .configure:<br>
<br>
<i>SUMMARY<br>
 -------------------------------------------------------<br>
<br>
 HOST_OS: linux-gnu<br>
<br>
   PGSQL: /usr/local/pgsql/bin/pg_config<br>
    GEOS: /usr/local/geos/bin/geos-config<br>
          (ldflags: )<br>
    PROJ: prefix=/usr/local/proj libdir=/usr/local/proj/lib<br>
   ICONV: 1<br>
<br>
 PORTNAME: linux<br>
   PREFIX: /usr/local/pgsql<br>
  EPREFIX: ${prefix}<br>
      DOC: /usr/local/pgsql/doc/contrib<br>
     DATA: /usr/local/pgsql/share/contrib<br>
      MAN: /usr/local/pgsql/man<br>
      BIN: /usr/local/pgsql/bin<br>
      EXT: /usr/local/pgsql/lib (\$$libdir)<br>
 -------------------------------------------------------<br>
</i><br>
Thanks in advance<br>
Carles<br>
<br>
<br>
</body>
</html>