[postgis-tickets] [PostGIS] #3506: build variable not defined ?

PostGIS trac at osgeo.org
Thu Aug 25 21:03:35 PDT 2016


#3506: build variable not defined ?
------------------------+-----------------------------
  Reporter:  darkblueb  |      Owner:  pramsey
      Type:  defect     |     Status:  new
  Priority:  medium     |  Milestone:  PostGIS 2.2.3
 Component:  postgis    |    Version:  2.2.x
Resolution:             |   Keywords:  autotools, make
------------------------+-----------------------------

Comment (by darkblueb):

 ugh - revisited today.. same bat-server, same bat-error..  It is Ubuntu
 1404 and apt.postgresql.org installed pg '''9.4''' and pg '''9.5''' both..
 you know, port 5433 for the second "cluster" ..

 I updated my source tree with PostGIS svn version 15045, then
 {{{
 PG_CONFIG=/usr/lib/postgresql/9.5/bin/pg_config ./configure
 PG_CONFIG=/usr/lib/postgresql/9.5/bin/pg_config make
 }}}

 the error changes slightly if you omit the second PG_CONFIG and call make
 alone. Its probably me, but, this is occurring reproducibly.

 here is the output
 {{{
 $ PG_CONFIG=/usr/lib/postgresql/9.5/bin/pg_config ./configure
 ...
 config.status: executing po-directories commands

   PostGIS is now configured for x86_64-unknown-linux-gnu

  -------------- Compiler Info -------------
   C compiler:           gcc -g -O2
   SQL preprocessor:

  -------------- Dependencies --------------
   GEOS config:          /usr/local/bin/geos-config
   GEOS version:         3.5.1
   GDAL config:          /usr/local/bin/gdal-config
   GDAL version:         2.1.0
   PostgreSQL config:    /usr/lib/postgresql/9.5/bin/pg_config
   PostgreSQL version:   PostgreSQL 9.5.4
   PROJ4 version:        48
   Libxml2 config:       /usr/bin/xml2-config
   Libxml2 version:      2.9.1
   JSON-C support:       yes
   PCRE support:         yes
   PostGIS debug level:  0
   Perl:                 /usr/bin/perl

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

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


 $ PG_CONFIG=/usr/lib/postgresql/9.5/bin/pg_config make
 ...
 gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-
 statement -Wendif-labels -Wmissing-format-attribute -Wformat-security
 -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2
 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-
 security -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic
 -shared -o postgis-2.3.so postgis_module.o lwgeom_accum.o
 lwgeom_spheroid.o lwgeom_ogc.o lwgeom_functions_analytic.o lwgeom_inout.o
 lwgeom_functions_basic.o lwgeom_btree.o lwgeom_box.o lwgeom_box3d.o
 lwgeom_geos.o lwgeom_backend_api.o lwgeom_geos_prepared.o
 lwgeom_geos_clean.o lwgeom_geos_relatematch.o lwgeom_export.o
 lwgeom_in_gml.o lwgeom_in_kml.o lwgeom_in_geohash.o lwgeom_in_geojson.o
 lwgeom_in_encoded_polyline.o lwgeom_triggers.o lwgeom_dump.o
 lwgeom_dumppoints.o lwgeom_functions_lrs.o lwgeom_functions_temporal.o
 long_xact.o lwgeom_sqlmm.o lwgeom_rtree.o lwgeom_transform.o
 lwgeom_window.o gserialized_typmod.o gserialized_gist_2d.o
 gserialized_gist_nd.o brin_2d.o brin_nd.o brin_common.o
 gserialized_estimate.o geography_inout.o geography_btree.o
 geography_measurement.o geography_measurement_trees.o geometry_inout.o
 -L/usr/lib/x86_64-linux-gnu -Wl,-Bsymbolic-functions -Wl,-z,relro
 -Wl,-z,now -Wl,--as-needed -L/usr/lib/mit-krb5 -L/usr/lib/x86_64-linux-gnu
 /mit-krb5  -Wl,--as-needed  ../libpgcommon/libpgcommon.a
 ../liblwgeom/.libs/liblwgeom.a  -L/usr/local/lib  -lgeos_c -lproj
 -ljson-c -lxml2   -Wl,--exclude-libs,ALL
 I../libpgcommon postgis.sql.in | grep -v '^#' | \
 /usr/bin/perl -lpe
 "s'MODULE_PATHNAME'\$libdir/postgis-2.3'g;s'@extschema@\.''g" >
 postgis.sql
 /bin/sh: 1: I../libpgcommon: not found
 I../libpgcommon postgis.sql.in | grep -v '^#' | \
 /usr/bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis-2.3'g" >
 postgis_for_extension.sql
 /bin/sh: 1: I../libpgcommon: not found
 /usr/bin/perl ../utils/create_undef.pl postgis.sql 95 >
 uninstall_postgis.sql
 /usr/bin/perl ../utils/postgis_proc_upgrade.pl postgis.sql UNUSED >
 postgis_upgrade.sql.in
 Unable to locate target new version number in postgis.sql
 Makefile:189: recipe for target 'postgis_upgrade.sql.in' failed
 make[1]: *** [postgis_upgrade.sql.in] Error 255
 make[1]: *** Deleting file 'postgis_upgrade.sql.in'
 make[1]: Leaving directory '/home/shared/srcs_i7d/postgis_trunk/postgis'
 GNUmakefile:16: recipe for target 'all' failed
 make: *** [all] Error 1
 }}}

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3506#comment:5>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list