[postgis-tickets] [PostGIS] #5099: Running make twice compiles again under postgis

PostGIS trac at osgeo.org
Wed Feb 16 16:39:21 PST 2022


#5099: Running make twice compiles again under postgis
------------------------------------+---------------------------
  Reporter:  strk                   |      Owner:  strk
      Type:  defect                 |     Status:  new
  Priority:  medium                 |  Milestone:  PostGIS 3.3.0
 Component:  build/upgrade/install  |    Version:  master
Resolution:                         |   Keywords:
------------------------------------+---------------------------

Comment (by strk):

 This is what's being re-built:
 {{{
 ---- Making all in postgis
 make[1]: Entering directory '/home/src/postgis/postgis/build/postgis'
 gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-
 statement -Werror=vla -Wendif-labels -Wmissing-format-attribute
 -Wimplicit-fallthrough=3 -Wformat-security -fno-strict-aliasing -fwrapv
 -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-
 truncation -g -g -O2 -flto=auto -ffat-lto-objects -fstack-protector-strong
 -Wformat -Werror=format-security -fno-omit-frame-pointer -fPIC
 -I../../liblwgeom -I../liblwgeom -std=gnu99 -O2 -g -Wall -fno-math-errno
 -fno-signed-zeros -Wall -I../../libpgcommon -I../../deps/flatgeobuf
 -I../../deps/wagyu -I../../deps/uthash/include  -I/usr/local/include
 -I/usr/include/libxml2 -I/usr/include -I/usr/include/json-c  -DNDEBUG
 -fPIC -DPIC -I. -I./ -I/usr/include/postgresql/13/server
 -I/usr/include/postgresql/internal  -Wdate-time -D_FORTIFY_SOURCE=2
 -D_GNU_SOURCE -I/usr/include/libxml2   -c -o vector_tile.pb-c.o
 vector_tile.pb-c.c
 gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-
 statement -Werror=vla -Wendif-labels -Wmissing-format-attribute
 -Wimplicit-fallthrough=3 -Wformat-security -fno-strict-aliasing -fwrapv
 -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-
 truncation -g -g -O2 -flto=auto -ffat-lto-objects -fstack-protector-strong
 -Wformat -Werror=format-security -fno-omit-frame-pointer -fPIC
 -I../../liblwgeom -I../liblwgeom -std=gnu99 -O2 -g -Wall -fno-math-errno
 -fno-signed-zeros -Wall -I../../libpgcommon -I../../deps/flatgeobuf
 -I../../deps/wagyu -I../../deps/uthash/include  -I/usr/local/include
 -I/usr/include/libxml2 -I/usr/include -I/usr/include/json-c  -DNDEBUG
 -fPIC -DPIC -I. -I./ -I/usr/include/postgresql/13/server
 -I/usr/include/postgresql/internal  -Wdate-time -D_FORTIFY_SOURCE=2
 -D_GNU_SOURCE -I/usr/include/libxml2   -c -o geobuf.pb-c.o geobuf.pb-c.c
 gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-
 statement -Werror=vla -Wendif-labels -Wmissing-format-attribute
 -Wimplicit-fallthrough=3 -Wformat-security -fno-strict-aliasing -fwrapv
 -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-
 truncation -g -g -O2 -flto=auto -ffat-lto-objects -fstack-protector-strong
 -Wformat -Werror=format-security -fno-omit-frame-pointer -fPIC -shared -o
 postgis-3.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_geos_prepared.o lwgeom_geos_clean.o
 lwgeom_geos_relatematch.o lwgeom_generate_grid.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
 lwgeom_rectree.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 gserialized_supportfn.o
 gserialized_spgist_2d.o gserialized_spgist_3d.o gserialized_spgist_nd.o
 brin_2d.o brin_nd.o brin_common.o gserialized_estimate.o geography_inout.o
 geography_btree.o geography_centroid.o geography_measurement.o
 geography_measurement_trees.o geometry_inout.o postgis_libprotobuf.o
 vector_tile.pb-c.o geobuf.pb-c.o mvt.o lwgeom_out_mvt.o geobuf.o
 lwgeom_out_geobuf.o lwgeom_out_geojson.o flatgeobuf.o
 lwgeom_in_flatgeobuf.o lwgeom_out_flatgeobuf.o postgis_legacy.o -lm
 ../deps/wagyu/libwagyu.la -lstdc++ ../deps/flatgeobuf/libflatgeobuf.la
 -lstdc++ ../libpgcommon/libpgcommon.a ../liblwgeom/.libs/liblwgeom.a
 -L/usr/local/lib -lgeos_c -lproj -ljson-c -lprotobuf-c -lxml2
 -L/usr/lib/x86_64-linux-gnu -lSFCGAL -lgmpxx -Wl,--exclude-libs,ALL  -lm
 }}}

 So it's basically:

   - vector_tile.pb-c.o
   - geobuf.pb-c.o

 The two object files above, when rebuilt, trigger also rebuilding
 postgis-3.3.so

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5099#comment:1>
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