[postgis-users] Building postgis on solaris 11

Sandro Santilli strk at keybit.net
Mon Mar 3 02:12:37 PST 2014


On Sun, Mar 02, 2014 at 02:09:29PM -0500, Phillip Ross wrote:

> I'm attempting to build postgis-2.1.1 on solaris 11.1 and was hoping to
> find some assistance.  I've built postgres(9.3.3 64bit), proj(4.8.0 64bit),
> geos(3.4.2 64bit), json-c(0.11 64bit), and gdal(1.10.1 64bit), and I point
> the postgis compilation to these dependencies.  The configure script in
> postgis runs fine, but the compilation trips up in a place that has me
> confused.
> 
> The following is my configure line:
> 
> CFLAGS="-m64" CXXFLAGS="-m64" LDFLAGS="-m64" ./configure \
>     --prefix=$HOME/postgis \
>     --with-geosconfig=$HOME/postgis/bin/geos-config \
>     --with-projdir=$HOME/postgis \
>     --with-gdalconfig=$HOME/postgis/bin/gdal-config \
>     --with-jsondir=$HOME/postgis
> 
> The following is the output of the configure script:
> PostGIS is now configured for i386-pc-solaris2.11
>  -------------- Compiler Info -------------
>   C compiler:           gcc -m64
>   C++ compiler:         g++ -m64
>   SQL preprocessor:

[...]

> I../libpgcommon postgis.sql.in | grep -v '^#' | \
> /usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis-2.1'g" > postgis.sql
> /bin/sh: line 1: I../libpgcommon: not found

It looks like the configure script was unable to find a working
SQL preprocessor.

This is the snippet in configure.ac:

  dnl SQL Preprocessor
  dnl
  AC_PATH_PROG([CPPBIN], [cpp], [])
  if test "x$CPPBIN" != "x"; then
    SQLPP="${CPPBIN} -traditional-cpp -P"
  else
    AC_PATH_PROG([GPP], [gpp_], [])
    if test "x$GPP" != "x"; then
      SQLPP="${GPP} -C -s \'" dnl Use better string support
    else
      SQLPP="${CPP} -traditional-cpp"
    fi
  fi
  AC_SUBST([SQLPP])

Feel free to file a ticket and send further debugging/patch there.

--strk; 

 ()  ASCII ribbon campaign  --  Keep it simple !
 /\  http://strk.keybit.net/rants/ascii_mails.txt  


More information about the postgis-users mailing list