[postgis-users] Building postgis on solaris 11

Sandro Santilli strk at keybit.net
Mon Mar 3 07:37:24 PST 2014


On Mon, Mar 03, 2014 at 09:09:36AM -0500, Phillip Ross wrote:
> Thanks, but I figured out the problem after a little more digging.
> 
> The problem was that on solaris 11.1, /usr/bin/gcc is a symlink pointing to
> /usr/gcc/4.5/bin/gcc and /usr/bin was in the PATH env var, but there is no
> corresponding symlink for cpp.  After putting /usr/gcc/4.5/bin in the path,
> the configure script was able to find cpp and set SQLPP appropriately.
> 
> Unfortunately the build fails further down with some linkling problems, but
> I'll do a little more research on my own before following up on the mailing
> list.
> 
> Thanks again for the help!  Much appreciated!

Thank you for the report.
If you feel like filing a ticket I'd still like the ./configure
step to _fail_ noisly if no valid sql preprocessor is found.

--strk;

> 
> 
> On Mon, Mar 3, 2014 at 5:12 AM, Sandro Santilli <strk at keybit.net> wrote:
> 
> > 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
> > _______________________________________________
> > postgis-users mailing list
> > postgis-users at lists.osgeo.org
> > http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users
> >

> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users


-- 

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


More information about the postgis-users mailing list