Building Postgris on Solaris 11

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Building Postgris on Solaris 11

Andrew Watkins-3


Hello folks,


Beening battling my way through Postgis on Solaris and I am getting close but still getting errors. Here is the relevant information and any pointers:

postgis-2.2.2# ./configure CC=/opt/studio12u1/bin/cc CFLAGS="-m64 -DNAN=\"(0.0/0.0)\"" CPPFLAGS=-m64 CXXFLAGS=-m64 LDFLAGS="-m64 -L/usr/local/postgres/pgdg/lib/64 -L/usr/local/postgres/geos/lib -L/usr/local/postgres/proj4/lib" \
    --with-pgconfig=/usr/local/postgres/pgdg/bin/64/pg_config \
    --with-geosconfig=/usr/local/postgres/geos/bin/geos-config \
    --with-gdalconfig=/usr/local/postgres/gdal/bin/gdal-config \
    --with-projdir=/usr/local/postgres/proj4

...

  PostGIS is now configured for i386-pc-solaris2.11

 -------------- Compiler Info -------------
  C compiler:           /opt/studio12u1/bin/cc -m64 -DNAN="(0.0/0.0)"
  SQL preprocessor:     /usr/gcc/4.5/bin/cpp -traditional-cpp -w -P

 -------------- Dependencies --------------
  GEOS config:          /usr/local/postgres/geos/bin/geos-config
  GEOS version:         3.5.0
  GDAL config:          /usr/local/postgres/gdal/bin/gdal-config
  GDAL version:         2.1.0
  PostgreSQL config:    /usr/local/postgres/pgdg/bin/64/pg_config
  PostgreSQL version:   PostgreSQL 9.5.3
  PROJ4 version:        49
  Libxml2 config:       /usr/bin/xml2-config
  Libxml2 version:      2.9.2
  JSON-C support:       yes
  PCRE support:         no
  PostGIS debug level:  0
  Perl:                 /usr/bin/perl

 --------------- Extensions ---------------
  PostGIS Raster:       enabled
  PostGIS Topology:     enabled
  SFCGAL support:       disabled
  Address Standardizer support:       disabled

 -------- Documentation Generation --------
  xsltproc:             /usr/bin/xsltproc
  xsl style sheets:    
  dblatex:             
  convert:             
  mathml2.dtd:          http://www.w3.org/Math/DTD/mathml2/mathml2.dtd

# make

/usr/bin/perl ../utils/postgis_proc_set_search_path.pl postgis.sql UNUSED > postgis_proc_set_search_path.sql
/usr/gcc/4.5/bin/cpp -traditional-cpp -w -P -I../libpgcommon legacy.sql.in | grep -v '^#' | \
/usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis-2.2'g" > legacy.sql
/usr/bin/perl ../utils/create_undef.pl legacy.sql 95 > uninstall_legacy.sql
/usr/gcc/4.5/bin/cpp -traditional-cpp -w -P -I../libpgcommon legacy_minimal.sql.in | grep -v '^#' | \
/usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis-2.2'g" > legacy_minimal.sql
/usr/gcc/4.5/bin/cpp -traditional-cpp -w -P -I../libpgcommon legacy_gist.sql.in | grep -v '^#' | \
/usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis-2.2'g" > legacy_gist.sql
make[1]: Leaving directory `/tmp/postgis-2.2.2/postgis'
---- Making all in regress
make[1]: Entering directory `/tmp/postgis-2.2.2/regress'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/postgis-2.2.2/regress'
---- Making all in raster
make[1]: Entering directory `/tmp/postgis-2.2.2/raster'
make -C rt_core
make[2]: Entering directory `/tmp/postgis-2.2.2/raster/rt_core'
/opt/studio12u1/bin/cc -m64 -DNAN="(0.0/0.0)"  -KPIC -DPIC  -I../../liblwgeom -I/usr/local/postgres/gdal/include -I/usr/local/postgres/proj4/include -I/usr/local/postgres/geos/include   -c -o rt_util.o rt_util.c
"/usr/local/postgres/gdal/include/ogr_core.h", line 415: warning: enumerator value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 416: warning: enumerator value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 417: warning: enumerator value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 418: warning: enumerator value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 419: warning: enumerator value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 420: warning: enumerator value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 421: warning: enumerator value overflows INT_MAX (2147483647)
"librtcore.h", line 151: warning: macro redefined: __attribute__
"librtcore.h", line 245: syntax error before or at: (
"librtcore.h", line 244: function cannot return function or array
"librtcore.h", line 245: warning: function prototype parameters must have types
"librtcore.h", line 244: function cannot return function or array
"librtcore.h", line 245: warning: syntax error:  empty declaration
"/usr/include/assert.h", line 23: syntax error before or at: (
"/usr/include/assert.h", line 23: function cannot return function or array
"/usr/include/assert.h", line 23: function cannot return function or array
"rt_util.c", line 142: warning: statement not reached
"rt_util.c", line 173: warning: statement not reached
cc: acomp failed for rt_util.c
make[2]: *** [rt_util.o] Error 2
make[2]: Leaving directory `/tmp/postgis-2.2.2/raster/rt_core'
make[1]: *** [corelib] Error 2
make[1]: Leaving directory `/tmp/postgis-2.2.2/raster'
make: *** [all] Error 1

I have tried it with gcc but I get the same error.

Thanks,

Andrew

-- 
Andrew Watkins * Birkbeck, University of London * Computer Science *
* http://notallmicrosoft.blogspot.com *
* UKOUG Systems SIG Chair * 
* UKOUG Tech committee * 
* tel: 020 7631 6720 *

 


_______________________________________________
postgis-devel mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/postgis-devel
Reply | Threaded
Open this post in threaded view
|

Re: Building Postgris on Solaris 11

Sandro Santilli-4
On Thu, Jun 30, 2016 at 04:28:02PM +0100, Andrew Watkins wrote:

> Beening battling my way through Postgis on Solaris and I am getting
> close but still getting errors. Here is the relevant information and
> any pointers:

[...]

> "librtcore.h", line 151: warning: macro redefined: __attribute__
> "librtcore.h", line 245: syntax error before or at: (
> "librtcore.h", line 244: function cannot return function or array
> "librtcore.h", line 245: warning: function prototype parameters must
> have types
> "librtcore.h", line 244: function cannot return function or array
> "librtcore.h", line 245: warning: syntax error:  empty declaration

> I have tried it with gcc but I get the same error.

Which gcc version ?
Does removing the __attribute__ line fix it ?

If you can give me a shell and a budget I could look at
the issue directly on the target machine ...

--strk;

  ()   Free GIS & Flash consultant/developer
  /\   https://strk.kbt.io/services.html
_______________________________________________
postgis-devel mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/postgis-devel
Reply | Threaded
Open this post in threaded view
|

Re: Building Postgris on Solaris 11

Andrew Watkins-3
In reply to this post by Andrew Watkins-3
On 06/30/16 16:28, Andrew Watkins wrote:


Hello folks,


Beening battling my way through Postgis on Solaris and I am getting close but still getting errors. Here is the relevant information and any pointers:

postgis-2.2.2# ./configure CC=/opt/studio12u1/bin/cc CFLAGS="-m64 -DNAN=\"(0.0/0.0)\"" CPPFLAGS=-m64 CXXFLAGS=-m64 LDFLAGS="-m64 -L/usr/local/postgres/pgdg/lib/64 -L/usr/local/postgres/geos/lib -L/usr/local/postgres/proj4/lib" \
    --with-pgconfig=/usr/local/postgres/pgdg/bin/64/pg_config \
    --with-geosconfig=/usr/local/postgres/geos/bin/geos-config \
    --with-gdalconfig=/usr/local/postgres/gdal/bin/gdal-config \
    --with-projdir=/usr/local/postgres/proj4

...

  PostGIS is now configured for i386-pc-solaris2.11

 -------------- Compiler Info -------------
  C compiler:           /opt/studio12u1/bin/cc -m64 -DNAN="(0.0/0.0)"
  SQL preprocessor:     /usr/gcc/4.5/bin/cpp -traditional-cpp -w -P

 -------------- Dependencies --------------
  GEOS config:          /usr/local/postgres/geos/bin/geos-config
  GEOS version:         3.5.0
  GDAL config:          /usr/local/postgres/gdal/bin/gdal-config
  GDAL version:         2.1.0
  PostgreSQL config:    /usr/local/postgres/pgdg/bin/64/pg_config
  PostgreSQL version:   PostgreSQL 9.5.3
  PROJ4 version:        49
  Libxml2 config:       /usr/bin/xml2-config
  Libxml2 version:      2.9.2
  JSON-C support:       yes
  PCRE support:         no
  PostGIS debug level:  0
  Perl:                 /usr/bin/perl

 --------------- Extensions ---------------
  PostGIS Raster:       enabled
  PostGIS Topology:     enabled
  SFCGAL support:       disabled
  Address Standardizer support:       disabled

 -------- Documentation Generation --------
  xsltproc:             /usr/bin/xsltproc
  xsl style sheets:    
  dblatex:             
  convert:             
  mathml2.dtd:          http://www.w3.org/Math/DTD/mathml2/mathml2.dtd

# make

/usr/bin/perl ../utils/postgis_proc_set_search_path.pl postgis.sql UNUSED > postgis_proc_set_search_path.sql
/usr/gcc/4.5/bin/cpp -traditional-cpp -w -P -I../libpgcommon legacy.sql.in | grep -v '^#' | \
/usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis-2.2'g" > legacy.sql
/usr/bin/perl ../utils/create_undef.pl legacy.sql 95 > uninstall_legacy.sql
/usr/gcc/4.5/bin/cpp -traditional-cpp -w -P -I../libpgcommon legacy_minimal.sql.in | grep -v '^#' | \
/usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis-2.2'g" > legacy_minimal.sql
/usr/gcc/4.5/bin/cpp -traditional-cpp -w -P -I../libpgcommon legacy_gist.sql.in | grep -v '^#' | \
/usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis-2.2'g" > legacy_gist.sql
make[1]: Leaving directory `/tmp/postgis-2.2.2/postgis'
---- Making all in regress
make[1]: Entering directory `/tmp/postgis-2.2.2/regress'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/postgis-2.2.2/regress'
---- Making all in raster
make[1]: Entering directory `/tmp/postgis-2.2.2/raster'
make -C rt_core
make[2]: Entering directory `/tmp/postgis-2.2.2/raster/rt_core'
/opt/studio12u1/bin/cc -m64 -DNAN="(0.0/0.0)"  -KPIC -DPIC  -I../../liblwgeom -I/usr/local/postgres/gdal/include -I/usr/local/postgres/proj4/include -I/usr/local/postgres/geos/include   -c -o rt_util.o rt_util.c
"/usr/local/postgres/gdal/include/ogr_core.h", line 415: warning: enumerator value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 416: warning: enumerator value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 417: warning: enumerator value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 418: warning: enumerator value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 419: warning: enumerator value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 420: warning: enumerator value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 421: warning: enumerator value overflows INT_MAX (2147483647)
"librtcore.h", line 151: warning: macro redefined: __attribute__
"librtcore.h", line 245: syntax error before or at: (
"librtcore.h", line 244: function cannot return function or array
"librtcore.h", line 245: warning: function prototype parameters must have types
"librtcore.h", line 244: function cannot return function or array
"librtcore.h", line 245: warning: syntax error:  empty declaration
"/usr/include/assert.h", line 23: syntax error before or at: (
"/usr/include/assert.h", line 23: function cannot return function or array
"/usr/include/assert.h", line 23: function cannot return function or array
"rt_util.c", line 142: warning: statement not reached
"rt_util.c", line 173: warning: statement not reached
cc: acomp failed for rt_util.c
make[2]: *** [rt_util.o] Error 2
make[2]: Leaving directory `/tmp/postgis-2.2.2/raster/rt_core'
make[1]: *** [corelib] Error 2
make[1]: Leaving directory `/tmp/postgis-2.2.2/raster'
make: *** [all] Error 1

I have tried it with gcc but I get the same error.


Well, it looks like people don't use Solaris for PostGIS or they don't share there findings.

I do like sharing here are is my blog entries for compiling PostGIS on Solaris 11 http://notallmicrosoft.blogspot.co.uk/2016/07/install-postgis-on-solaris-11-113.html

Only bad news is that I have not managed to get all modules working, but it is a start.

Anyway, hope it helps others.

-- 
Andrew Watkins * Birkbeck, University of London * Computer Science *
* http://notallmicrosoft.blogspot.com *
* UKOUG Systems SIG Chair * 
* UKOUG Tech committee * 
* tel: 020 7631 6720 *

 


_______________________________________________
postgis-devel mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/postgis-devel
Reply | Threaded
Open this post in threaded view
|

Re: Building Postgris on Solaris 11

Sandro Santilli-4
On Tue, Jul 05, 2016 at 12:29:06PM +0100, Andrew Watkins wrote:

> I do like sharing here are is my blog entries for compiling PostGIS
> on Solaris 11 http://notallmicrosoft.blogspot.co.uk/2016/07/install-postgis-on-solaris-11-113.html

Thanks Andrew, please consider adding a link to your blog post
on the PostGIS wiki as there are a number of other build-on-xxx
guides there:
https://trac.osgeo.org/postgis/wiki/UsersWikiInstall

--strk;

  ()   Free GIS & Flash consultant/developer
  /\   https://strk.kbt.io/services.html
_______________________________________________
postgis-devel mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/postgis-devel
Reply | Threaded
Open this post in threaded view
|

Re: Building Postgris on Solaris 11

Paul Ramsey
In reply to this post by Andrew Watkins-3
I should have sent this at the time, but it didn't answer your
proximate problem since you were building w/ the Sun compiler...

https://github.com/pramsey/suite-solaris-build/blob/master/pgsql-postgis-gdal-build.sh

P.

On Tue, Jul 5, 2016 at 4:29 AM, Andrew Watkins <[hidden email]> wrote:

> On 06/30/16 16:28, Andrew Watkins wrote:
>
>
> Hello folks,
>
>
> Beening battling my way through Postgis on Solaris and I am getting close
> but still getting errors. Here is the relevant information and any pointers:
>
> postgis-2.2.2# ./configure CC=/opt/studio12u1/bin/cc CFLAGS="-m64
> -DNAN=\"(0.0/0.0)\"" CPPFLAGS=-m64 CXXFLAGS=-m64 LDFLAGS="-m64
> -L/usr/local/postgres/pgdg/lib/64 -L/usr/local/postgres/geos/lib
> -L/usr/local/postgres/proj4/lib" \
>     --with-pgconfig=/usr/local/postgres/pgdg/bin/64/pg_config \
>     --with-geosconfig=/usr/local/postgres/geos/bin/geos-config \
>     --with-gdalconfig=/usr/local/postgres/gdal/bin/gdal-config \
>     --with-projdir=/usr/local/postgres/proj4
>
> ...
>
>   PostGIS is now configured for i386-pc-solaris2.11
>
>  -------------- Compiler Info -------------
>   C compiler:           /opt/studio12u1/bin/cc -m64 -DNAN="(0.0/0.0)"
>   SQL preprocessor:     /usr/gcc/4.5/bin/cpp -traditional-cpp -w -P
>
>  -------------- Dependencies --------------
>   GEOS config:          /usr/local/postgres/geos/bin/geos-config
>   GEOS version:         3.5.0
>   GDAL config:          /usr/local/postgres/gdal/bin/gdal-config
>   GDAL version:         2.1.0
>   PostgreSQL config:    /usr/local/postgres/pgdg/bin/64/pg_config
>   PostgreSQL version:   PostgreSQL 9.5.3
>   PROJ4 version:        49
>   Libxml2 config:       /usr/bin/xml2-config
>   Libxml2 version:      2.9.2
>   JSON-C support:       yes
>   PCRE support:         no
>   PostGIS debug level:  0
>   Perl:                 /usr/bin/perl
>
>  --------------- Extensions ---------------
>   PostGIS Raster:       enabled
>   PostGIS Topology:     enabled
>   SFCGAL support:       disabled
>   Address Standardizer support:       disabled
>
>  -------- Documentation Generation --------
>   xsltproc:             /usr/bin/xsltproc
>   xsl style sheets:
>   dblatex:
>   convert:
>   mathml2.dtd:          http://www.w3.org/Math/DTD/mathml2/mathml2.dtd
>
> # make
>
> /usr/bin/perl ../utils/postgis_proc_set_search_path.pl postgis.sql UNUSED >
> postgis_proc_set_search_path.sql
> /usr/gcc/4.5/bin/cpp -traditional-cpp -w -P -I../libpgcommon legacy.sql.in |
> grep -v '^#' | \
> /usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis-2.2'g" > legacy.sql
> /usr/bin/perl ../utils/create_undef.pl legacy.sql 95 > uninstall_legacy.sql
> /usr/gcc/4.5/bin/cpp -traditional-cpp -w -P -I../libpgcommon
> legacy_minimal.sql.in | grep -v '^#' | \
> /usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis-2.2'g" >
> legacy_minimal.sql
> /usr/gcc/4.5/bin/cpp -traditional-cpp -w -P -I../libpgcommon
> legacy_gist.sql.in | grep -v '^#' | \
> /usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis-2.2'g" >
> legacy_gist.sql
> make[1]: Leaving directory `/tmp/postgis-2.2.2/postgis'
> ---- Making all in regress
> make[1]: Entering directory `/tmp/postgis-2.2.2/regress'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/tmp/postgis-2.2.2/regress'
> ---- Making all in raster
> make[1]: Entering directory `/tmp/postgis-2.2.2/raster'
> make -C rt_core
> make[2]: Entering directory `/tmp/postgis-2.2.2/raster/rt_core'
> /opt/studio12u1/bin/cc -m64 -DNAN="(0.0/0.0)"  -KPIC -DPIC
> -I../../liblwgeom -I/usr/local/postgres/gdal/include
> -I/usr/local/postgres/proj4/include -I/usr/local/postgres/geos/include   -c
> -o rt_util.o rt_util.c
> "/usr/local/postgres/gdal/include/ogr_core.h", line 415: warning: enumerator
> value overflows INT_MAX (2147483647)
> "/usr/local/postgres/gdal/include/ogr_core.h", line 416: warning: enumerator
> value overflows INT_MAX (2147483647)
> "/usr/local/postgres/gdal/include/ogr_core.h", line 417: warning: enumerator
> value overflows INT_MAX (2147483647)
> "/usr/local/postgres/gdal/include/ogr_core.h", line 418: warning: enumerator
> value overflows INT_MAX (2147483647)
> "/usr/local/postgres/gdal/include/ogr_core.h", line 419: warning: enumerator
> value overflows INT_MAX (2147483647)
> "/usr/local/postgres/gdal/include/ogr_core.h", line 420: warning: enumerator
> value overflows INT_MAX (2147483647)
> "/usr/local/postgres/gdal/include/ogr_core.h", line 421: warning: enumerator
> value overflows INT_MAX (2147483647)
> "librtcore.h", line 151: warning: macro redefined: __attribute__
> "librtcore.h", line 245: syntax error before or at: (
> "librtcore.h", line 244: function cannot return function or array
> "librtcore.h", line 245: warning: function prototype parameters must have
> types
> "librtcore.h", line 244: function cannot return function or array
> "librtcore.h", line 245: warning: syntax error:  empty declaration
> "/usr/include/assert.h", line 23: syntax error before or at: (
> "/usr/include/assert.h", line 23: function cannot return function or array
> "/usr/include/assert.h", line 23: function cannot return function or array
> "rt_util.c", line 142: warning: statement not reached
> "rt_util.c", line 173: warning: statement not reached
> cc: acomp failed for rt_util.c
> make[2]: *** [rt_util.o] Error 2
> make[2]: Leaving directory `/tmp/postgis-2.2.2/raster/rt_core'
> make[1]: *** [corelib] Error 2
> make[1]: Leaving directory `/tmp/postgis-2.2.2/raster'
> make: *** [all] Error 1
>
> I have tried it with gcc but I get the same error.
>
>
> Well, it looks like people don't use Solaris for PostGIS or they don't share
> there findings.
>
> I do like sharing here are is my blog entries for compiling PostGIS on
> Solaris 11
> http://notallmicrosoft.blogspot.co.uk/2016/07/install-postgis-on-solaris-11-113.html
>
> Only bad news is that I have not managed to get all modules working, but it
> is a start.
>
> Anyway, hope it helps others.
>
> --
> Andrew Watkins * Birkbeck, University of London * Computer Science *
> * http://notallmicrosoft.blogspot.com *
> * UKOUG Systems SIG Chair *
> * UKOUG Tech committee *
> * tel: 020 7631 6720 *
>
>
>
>
> _______________________________________________
> postgis-devel mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/postgis-devel
_______________________________________________
postgis-devel mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/postgis-devel
Reply | Threaded
Open this post in threaded view
|

Re: Building Postgris on Solaris 11

Andrew Watkins-3

Paul,

I did see that I tried it but still gave me problems.
May be I should revisit it to see if it can solve other problems.

Thanks,

Andrew


On 07/05/16 13:04, Paul Ramsey wrote:
I should have sent this at the time, but it didn't answer your
proximate problem since you were building w/ the Sun compiler...

https://github.com/pramsey/suite-solaris-build/blob/master/pgsql-postgis-gdal-build.sh

P.

On Tue, Jul 5, 2016 at 4:29 AM, Andrew Watkins [hidden email] wrote:
On 06/30/16 16:28, Andrew Watkins wrote:


Hello folks,


Beening battling my way through Postgis on Solaris and I am getting close
but still getting errors. Here is the relevant information and any pointers:

postgis-2.2.2# ./configure CC=/opt/studio12u1/bin/cc CFLAGS="-m64
-DNAN=\"(0.0/0.0)\"" CPPFLAGS=-m64 CXXFLAGS=-m64 LDFLAGS="-m64
-L/usr/local/postgres/pgdg/lib/64 -L/usr/local/postgres/geos/lib
-L/usr/local/postgres/proj4/lib" \
    --with-pgconfig=/usr/local/postgres/pgdg/bin/64/pg_config \
    --with-geosconfig=/usr/local/postgres/geos/bin/geos-config \
    --with-gdalconfig=/usr/local/postgres/gdal/bin/gdal-config \
    --with-projdir=/usr/local/postgres/proj4

...

  PostGIS is now configured for i386-pc-solaris2.11

 -------------- Compiler Info -------------
  C compiler:           /opt/studio12u1/bin/cc -m64 -DNAN="(0.0/0.0)"
  SQL preprocessor:     /usr/gcc/4.5/bin/cpp -traditional-cpp -w -P

 -------------- Dependencies --------------
  GEOS config:          /usr/local/postgres/geos/bin/geos-config
  GEOS version:         3.5.0
  GDAL config:          /usr/local/postgres/gdal/bin/gdal-config
  GDAL version:         2.1.0
  PostgreSQL config:    /usr/local/postgres/pgdg/bin/64/pg_config
  PostgreSQL version:   PostgreSQL 9.5.3
  PROJ4 version:        49
  Libxml2 config:       /usr/bin/xml2-config
  Libxml2 version:      2.9.2
  JSON-C support:       yes
  PCRE support:         no
  PostGIS debug level:  0
  Perl:                 /usr/bin/perl

 --------------- Extensions ---------------
  PostGIS Raster:       enabled
  PostGIS Topology:     enabled
  SFCGAL support:       disabled
  Address Standardizer support:       disabled

 -------- Documentation Generation --------
  xsltproc:             /usr/bin/xsltproc
  xsl style sheets:
  dblatex:
  convert:
  mathml2.dtd:          http://www.w3.org/Math/DTD/mathml2/mathml2.dtd

# make

/usr/bin/perl ../utils/postgis_proc_set_search_path.pl postgis.sql UNUSED >
postgis_proc_set_search_path.sql
/usr/gcc/4.5/bin/cpp -traditional-cpp -w -P -I../libpgcommon legacy.sql.in |
grep -v '^#' | \
/usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis-2.2'g" > legacy.sql
/usr/bin/perl ../utils/create_undef.pl legacy.sql 95 > uninstall_legacy.sql
/usr/gcc/4.5/bin/cpp -traditional-cpp -w -P -I../libpgcommon
legacy_minimal.sql.in | grep -v '^#' | \
/usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis-2.2'g" >
legacy_minimal.sql
/usr/gcc/4.5/bin/cpp -traditional-cpp -w -P -I../libpgcommon
legacy_gist.sql.in | grep -v '^#' | \
/usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis-2.2'g" >
legacy_gist.sql
make[1]: Leaving directory `/tmp/postgis-2.2.2/postgis'
---- Making all in regress
make[1]: Entering directory `/tmp/postgis-2.2.2/regress'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/postgis-2.2.2/regress'
---- Making all in raster
make[1]: Entering directory `/tmp/postgis-2.2.2/raster'
make -C rt_core
make[2]: Entering directory `/tmp/postgis-2.2.2/raster/rt_core'
/opt/studio12u1/bin/cc -m64 -DNAN="(0.0/0.0)"  -KPIC -DPIC
-I../../liblwgeom -I/usr/local/postgres/gdal/include
-I/usr/local/postgres/proj4/include -I/usr/local/postgres/geos/include   -c
-o rt_util.o rt_util.c
"/usr/local/postgres/gdal/include/ogr_core.h", line 415: warning: enumerator
value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 416: warning: enumerator
value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 417: warning: enumerator
value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 418: warning: enumerator
value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 419: warning: enumerator
value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 420: warning: enumerator
value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 421: warning: enumerator
value overflows INT_MAX (2147483647)
"librtcore.h", line 151: warning: macro redefined: __attribute__
"librtcore.h", line 245: syntax error before or at: (
"librtcore.h", line 244: function cannot return function or array
"librtcore.h", line 245: warning: function prototype parameters must have
types
"librtcore.h", line 244: function cannot return function or array
"librtcore.h", line 245: warning: syntax error:  empty declaration
"/usr/include/assert.h", line 23: syntax error before or at: (
"/usr/include/assert.h", line 23: function cannot return function or array
"/usr/include/assert.h", line 23: function cannot return function or array
"rt_util.c", line 142: warning: statement not reached
"rt_util.c", line 173: warning: statement not reached
cc: acomp failed for rt_util.c
make[2]: *** [rt_util.o] Error 2
make[2]: Leaving directory `/tmp/postgis-2.2.2/raster/rt_core'
make[1]: *** [corelib] Error 2
make[1]: Leaving directory `/tmp/postgis-2.2.2/raster'
make: *** [all] Error 1

I have tried it with gcc but I get the same error.


Well, it looks like people don't use Solaris for PostGIS or they don't share
there findings.

I do like sharing here are is my blog entries for compiling PostGIS on
Solaris 11
http://notallmicrosoft.blogspot.co.uk/2016/07/install-postgis-on-solaris-11-113.html

Only bad news is that I have not managed to get all modules working, but it
is a start.

Anyway, hope it helps others.

--
Andrew Watkins * Birkbeck, University of London * Computer Science *
* http://notallmicrosoft.blogspot.com *
* UKOUG Systems SIG Chair *
* UKOUG Tech committee *
* tel: 020 7631 6720 *




_______________________________________________
postgis-devel mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/postgis-devel
_______________________________________________
postgis-devel mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/postgis-devel


-- 
Andrew Watkins * Birkbeck, University of London * Computer Science *
* http://notallmicrosoft.blogspot.com *
* UKOUG Systems SIG Chair * 
* UKOUG Tech committee * 
* tel: 020 7631 6720 *

 


_______________________________________________
postgis-devel mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/postgis-devel
Reply | Threaded
Open this post in threaded view
|

Re: Building Postgris on Solaris 11

Phillip Ross-2
Andrew, you might want to look at how pkgsrc builds it as well:
https://github.com/joyent/pkgsrc/tree/trunk/databases/postgresql-postgis2

I know Illumos is not Solaris, but it may provide you with some hints as to how to get it to build.

Hope that helps!
- Phillip

On Tue, Jul 5, 2016 at 8:08 AM, Andrew Watkins <[hidden email]> wrote:

Paul,

I did see that I tried it but still gave me problems.
May be I should revisit it to see if it can solve other problems.

Thanks,

Andrew


On 07/05/16 13:04, Paul Ramsey wrote:
I should have sent this at the time, but it didn't answer your
proximate problem since you were building w/ the Sun compiler...

https://github.com/pramsey/suite-solaris-build/blob/master/pgsql-postgis-gdal-build.sh

P.

On Tue, Jul 5, 2016 at 4:29 AM, Andrew Watkins [hidden email] wrote:
On 06/30/16 16:28, Andrew Watkins wrote:


Hello folks,


Beening battling my way through Postgis on Solaris and I am getting close
but still getting errors. Here is the relevant information and any pointers:

postgis-2.2.2# ./configure CC=/opt/studio12u1/bin/cc CFLAGS="-m64
-DNAN=\"(0.0/0.0)\"" CPPFLAGS=-m64 CXXFLAGS=-m64 LDFLAGS="-m64
-L/usr/local/postgres/pgdg/lib/64 -L/usr/local/postgres/geos/lib
-L/usr/local/postgres/proj4/lib" \
    --with-pgconfig=/usr/local/postgres/pgdg/bin/64/pg_config \
    --with-geosconfig=/usr/local/postgres/geos/bin/geos-config \
    --with-gdalconfig=/usr/local/postgres/gdal/bin/gdal-config \
    --with-projdir=/usr/local/postgres/proj4

...

  PostGIS is now configured for i386-pc-solaris2.11

 -------------- Compiler Info -------------
  C compiler:           /opt/studio12u1/bin/cc -m64 -DNAN="(0.0/0.0)"
  SQL preprocessor:     /usr/gcc/4.5/bin/cpp -traditional-cpp -w -P

 -------------- Dependencies --------------
  GEOS config:          /usr/local/postgres/geos/bin/geos-config
  GEOS version:         3.5.0
  GDAL config:          /usr/local/postgres/gdal/bin/gdal-config
  GDAL version:         2.1.0
  PostgreSQL config:    /usr/local/postgres/pgdg/bin/64/pg_config
  PostgreSQL version:   PostgreSQL 9.5.3
  PROJ4 version:        49
  Libxml2 config:       /usr/bin/xml2-config
  Libxml2 version:      2.9.2
  JSON-C support:       yes
  PCRE support:         no
  PostGIS debug level:  0
  Perl:                 /usr/bin/perl

 --------------- Extensions ---------------
  PostGIS Raster:       enabled
  PostGIS Topology:     enabled
  SFCGAL support:       disabled
  Address Standardizer support:       disabled

 -------- Documentation Generation --------
  xsltproc:             /usr/bin/xsltproc
  xsl style sheets:
  dblatex:
  convert:
  mathml2.dtd:          http://www.w3.org/Math/DTD/mathml2/mathml2.dtd

# make

/usr/bin/perl ../utils/postgis_proc_set_search_path.pl postgis.sql UNUSED >
postgis_proc_set_search_path.sql
/usr/gcc/4.5/bin/cpp -traditional-cpp -w -P -I../libpgcommon legacy.sql.in |
grep -v '^#' | \
/usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis-2.2'g" > legacy.sql
/usr/bin/perl ../utils/create_undef.pl legacy.sql 95 > uninstall_legacy.sql
/usr/gcc/4.5/bin/cpp -traditional-cpp -w -P -I../libpgcommon
legacy_minimal.sql.in | grep -v '^#' | \
/usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis-2.2'g" >
legacy_minimal.sql
/usr/gcc/4.5/bin/cpp -traditional-cpp -w -P -I../libpgcommon
legacy_gist.sql.in | grep -v '^#' | \
/usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis-2.2'g" >
legacy_gist.sql
make[1]: Leaving directory `/tmp/postgis-2.2.2/postgis'
---- Making all in regress
make[1]: Entering directory `/tmp/postgis-2.2.2/regress'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/postgis-2.2.2/regress'
---- Making all in raster
make[1]: Entering directory `/tmp/postgis-2.2.2/raster'
make -C rt_core
make[2]: Entering directory `/tmp/postgis-2.2.2/raster/rt_core'
/opt/studio12u1/bin/cc -m64 -DNAN="(0.0/0.0)"  -KPIC -DPIC
-I../../liblwgeom -I/usr/local/postgres/gdal/include
-I/usr/local/postgres/proj4/include -I/usr/local/postgres/geos/include   -c
-o rt_util.o rt_util.c
"/usr/local/postgres/gdal/include/ogr_core.h", line 415: warning: enumerator
value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 416: warning: enumerator
value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 417: warning: enumerator
value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 418: warning: enumerator
value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 419: warning: enumerator
value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 420: warning: enumerator
value overflows INT_MAX (2147483647)
"/usr/local/postgres/gdal/include/ogr_core.h", line 421: warning: enumerator
value overflows INT_MAX (2147483647)
"librtcore.h", line 151: warning: macro redefined: __attribute__
"librtcore.h", line 245: syntax error before or at: (
"librtcore.h", line 244: function cannot return function or array
"librtcore.h", line 245: warning: function prototype parameters must have
types
"librtcore.h", line 244: function cannot return function or array
"librtcore.h", line 245: warning: syntax error:  empty declaration
"/usr/include/assert.h", line 23: syntax error before or at: (
"/usr/include/assert.h", line 23: function cannot return function or array
"/usr/include/assert.h", line 23: function cannot return function or array
"rt_util.c", line 142: warning: statement not reached
"rt_util.c", line 173: warning: statement not reached
cc: acomp failed for rt_util.c
make[2]: *** [rt_util.o] Error 2
make[2]: Leaving directory `/tmp/postgis-2.2.2/raster/rt_core'
make[1]: *** [corelib] Error 2
make[1]: Leaving directory `/tmp/postgis-2.2.2/raster'
make: *** [all] Error 1

I have tried it with gcc but I get the same error.


Well, it looks like people don't use Solaris for PostGIS or they don't share
there findings.

I do like sharing here are is my blog entries for compiling PostGIS on
Solaris 11
http://notallmicrosoft.blogspot.co.uk/2016/07/install-postgis-on-solaris-11-113.html

Only bad news is that I have not managed to get all modules working, but it
is a start.

Anyway, hope it helps others.

--
Andrew Watkins * Birkbeck, University of London * Computer Science *
* http://notallmicrosoft.blogspot.com *
* UKOUG Systems SIG Chair *
* UKOUG Tech committee *
* tel: 020 7631 6720 *




_______________________________________________
postgis-devel mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/postgis-devel
_______________________________________________
postgis-devel mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/postgis-devel


-- 
Andrew Watkins * Birkbeck, University of London * Computer Science *
* http://notallmicrosoft.blogspot.com *
* UKOUG Systems SIG Chair * 
* UKOUG Tech committee * 
* tel: 020 7631 6720 *

 


_______________________________________________
postgis-devel mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/postgis-devel


_______________________________________________
postgis-devel mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/postgis-devel