[PostGIS] #5969: Can't build postgis using --without-topology or --without-raster
PostGIS
trac at osgeo.org
Tue Aug 19 03:50:57 PDT 2025
#5969: Can't build postgis using --without-topology or --without-raster
---------------------+---------------------------
Reporter: robe | Owner: strk
Type: defect | Status: new
Priority: blocker | Milestone: PostGIS 3.6.0
Component: build | Version: 3.5.x
Keywords: |
---------------------+---------------------------
This was reported to me by mobilitydb folks and I confirmed it's an issue
# this is trying to build with switch --without-topology --without-raster
{{{
libtool: error: Continuing, but uninstalled executables may not work.
make[1]: Leaving directory '/projects/postgis/postgis-git/loader'
---- Making all in utils
make[1]: Entering directory '/projects/postgis/postgis-git/utils'
sed -e '1,/^__END__/d' postgis_restore.pl.in \
| sort -u \
> postgis_restore_data.hardcoded
make -C ../raster/rt_pg rtpostgis_upgrade.sql
make -C ../raster/rt_pg uninstall_rtpostgis.sql
make[1]: *** No rule to make target '../topology/topology_upgrade.sql',
needed by 'postgis_restore_data.generated'. Stop.
make[1]: *** Waiting for unfinished jobs....
make[2]: Entering directory '/projects/postgis/postgis-git/raster/rt_pg'
make[2]: Entering directory '/projects/postgis/postgis-git/raster/rt_pg'
/mingw64/bin/cpp -traditional-cpp -w -P -Upixel -Ubool -I../../postgis/
rtpostgis_upgrade_cleanup.sql.in > rtpostgis_upgrade_cleanup.sql.tmp
/mingw64/bin/cpp -traditional-cpp -w -P -Upixel -Ubool -I../../postgis/
rtpostgis.sql.in > rtpostgis.sql.tmp
/mingw64/bin/cpp -traditional-cpp -w -P -Upixel -Ubool -I../../postgis/
rtpostgis.sql.in > rtpostgis.sql.tmp
/mingw64/bin/cpp -traditional-cpp -w -P -Upixel -Ubool -I../../postgis/
rtpostgis_drop.sql.in > rtpostgis_drop.sql.tmp
grep -v '^#' rtpostgis_upgrade_cleanup.sql.tmp | \
/usr/bin/perl -lpe
"s'MODULE_PATHNAME'\$libdir/postgis_raster-3.6'g;s'@extschema@\.''g" >
rtpostgis_upgrade_cleanup.sql
grep -v '^#' rtpostgis.sql.tmp | \
/usr/bin/perl -lpe
"s'MODULE_PATHNAME'\$libdir/postgis_raster-3.6'g;s'@extschema@\.''g" >
rtpostgis.sql
grep -v '^#' rtpostgis_drop.sql.tmp | \
/usr/bin/perl -lpe
"s'MODULE_PATHNAME'\$libdir/postgis_raster-3.6'g;s'@extschema@\.''g" >
rtpostgis_drop.sql
grep -v '^#' rtpostgis.sql.tmp | \
/usr/bin/perl -lpe
"s'MODULE_PATHNAME'\$libdir/postgis_raster-3.6'g;s'@extschema@\.''g" >
rtpostgis.sql
rm -f rtpostgis_upgrade_cleanup.sql.tmp
rm -f rtpostgis.sql.tmp
rm -f rtpostgis_drop.sql.tmp
rm -f rtpostgis.sql.tmp
/usr/bin/perl ../../utils/create_uninstall.pl rtpostgis.sql 180 >
uninstall_rtpostgis.sql
/usr/bin/perl ../../utils/create_upgrade.pl rtpostgis.sql >
rtpostgis_upgrade.sql.in
make[2]: Leaving directory '/projects/postgis/postgis-git/raster/rt_pg'
echo 'BEGIN;' > rtpostgis_upgrade.sql
cat ../../postgis/common_before_upgrade.sql rtpostgis_upgrade_cleanup.sql
rtpostgis_upgrade.sql.in rtpostgis_drop.sql
../../postgis/common_after_upgrade.sql | sed -e 's/^BEGIN;$//' -e
's/^COMMIT;$//' >> rtpostgis_upgrade.sql
echo 'COMMIT;' >> rtpostgis_upgrade.sql
make[2]: Leaving directory '/projects/postgis/postgis-git/raster/rt_pg'
make[1]: Leaving directory '/projects/postgis/postgis-git/utils'
make: *** [GNUmakefile:36: all] Error 1
}}}
This is trying to build --without-topology alone
{{{
libtool: error: Continuing, but uninstalled executables may not work.
make[1]: Leaving directory '/projects/postgis/postgis-git/loader'
---- Making all in utils
make[1]: Entering directory '/projects/postgis/postgis-git/utils'
sed -e '1,/^__END__/d' postgis_restore.pl.in \
| sort -u \
> postgis_restore_data.hardcoded
make[1]: *** No rule to make target '../topology/topology_upgrade.sql',
needed by 'postgis_restore_data.generated'. Stop.
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/projects/postgis/postgis-git/utils'
make: *** [GNUmakefile:36: all] Error 1
}}}
They also found that building --without-raster they get the below error,
this one I haven't been able to confirm, but perhaps because I wasn't
building from the tar ball or without GDAL installed
{{{
------------------------------------------------------------
Another try by removing only raster still gave error
------------------------------------------------------------
[...]
---- Making all in postgis_tiger_geocoder
make[2]: Entering directory
'/home/esteban/src/postgis-3.6.0rc1/extensions/postgis_tiger_geocoder'
mkdir -p expected
make[2]: *** No rule to make target
'../../extras/tiger_geocoder/utility/utmzone.sql', needed by
'sql/tiger_geocoder.sql.in'. Stop.
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
'/home/esteban/src/postgis-3.6.0rc1/extensions/postgis_tiger_geocoder'
make[1]: *** [Makefile:36: all] Error 1
make[1]: Leaving directory '/home/esteban/src/postgis-3.6.0rc1/extensions'
make: *** [GNUmakefile:36: all] Error 1
------------------------------------------------------------
}}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5969>
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