[MacPorts] #72619: postgis3 build error: *** A compiler with support for C++11 language features is required
MacPorts
noreply at macports.org
Wed Jun 18 07:39:45 UTC 2025
#72619: postgis3 build error: *** A compiler with support for C++11 language
features is required
--------------------------+----------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.7
Keywords: | Port: postgis3
--------------------------+----------------------
{{{
---> Configuring pg17-postgis3
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis3/pg17-postgis3/work/postgis-3.5.3"
&& ./configure --prefix=/opt/local --without-address-standardizer --with-
raster --without-sfcgal --with-topology
--libdir=/opt/local/lib/postgresql17
--bindir=/opt/local/lib/postgresql17/bin --with-
pgconfig=/opt/local/lib/postgresql17/bin/pg_config
PROJ_CFLAGS=-I/opt/local/lib/proj9/include
PROJ_LIBS="-L/opt/local/lib/proj9/lib -lproj" --with-
gdalconfig=/opt/local/bin/gdal-config
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... powerpc-apple-darwin10.8.0
checking host system type... powerpc-apple-darwin10.8.0
checking how to print strings... printf
checking for gcc... /opt/local/bin/gcc-mp-14
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /opt/local/bin/gcc-mp-14 accepts -g... yes
checking for /opt/local/bin/gcc-mp-14 option to accept ISO C89... none
needed
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by /opt/local/bin/gcc-mp-14... /opt/local/bin/ld
checking if the linker (/opt/local/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /opt/local/bin/nm
checking the name lister (/opt/local/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking how to convert powerpc-apple-darwin10.8.0 file names to powerpc-
apple-darwin10.8.0 format... func_convert_file_noop
checking how to convert powerpc-apple-darwin10.8.0 file names to toolchain
format... func_convert_file_noop
checking for /opt/local/bin/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking whether we are using Clang... no
checking whether we are using the GNU C compiler... (cached) yes
checking for gcc-ar... no
checking for ar... ar
checking whether we are using Clang... (cached) no
checking whether we are using the GNU C compiler... (cached) yes
checking for gcc-ranlib... no
checking for ranlib... ranlib
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... (cached) ranlib
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking command to parse /opt/local/bin/nm output from /opt/local/bin
/gcc-mp-14 object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... /opt/local/bin/gcc-mp-14 -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /opt/local/bin/gcc-mp-14 supports -fno-rtti -fno-exceptions...
no
checking for /opt/local/bin/gcc-mp-14 option to produce PIC... -fno-common
-DPIC
checking if /opt/local/bin/gcc-mp-14 PIC flag -fno-common -DPIC works...
yes
checking if /opt/local/bin/gcc-mp-14 static flag -static works... no
checking if /opt/local/bin/gcc-mp-14 supports -c -o file.o... yes
checking if /opt/local/bin/gcc-mp-14 supports -c -o file.o... (cached) yes
checking whether the /opt/local/bin/gcc-mp-14 linker (/opt/local/bin/ld)
supports shared libraries... yes
checking dynamic linker characteristics... darwin10.8.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) /opt/local/bin/gcc-mp-14
checking whether we are using the GNU C compiler... (cached) yes
checking whether /opt/local/bin/gcc-mp-14 accepts -g... (cached) yes
checking for /opt/local/bin/gcc-mp-14 option to accept ISO C89... (cached)
none needed
checking how to run the C preprocessor... /opt/local/bin/gcc-mp-14 -E
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking whether byte ordering is bigendian... yes
checking for cpp... /opt/local/bin/cpp-mp-14
checking if /opt/local/bin/gcc-mp-14 supports -fno-math-errno... yes
checking if /opt/local/bin/gcc-mp-14 supports -fno-signed-zeros... yes
checking if /opt/local/bin/gcc-mp-14 supports -std=gnu11... yes
checking if /opt/local/bin/gcc-mp-14 supports --exclude-libs... no
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... /usr/bin/bison
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for vasprintf... yes
checking for asprintf... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for perl... /opt/local/bin/perl
checking for xsltproc... /opt/local/bin/xsltproc
checking for xmlcatalog... /opt/local/bin/xmlcatalog
checking for xmllint... /opt/local/bin/xmllint
checking for xml2pot... no
configure: WARNING: xml2pot is not installed so translation template
cannot be updated
checking for msgmerge... no
configure: WARNING: msgmerge is not installed so translations cannot be
updated
checking for msgcat... no
configure: WARNING: msgcat is not installed so translation templates
cannot be updated
checking for msgcomm... no
configure: WARNING: msgcomm is not installed so translations cannot be
updated
checking for msgattrib... no
configure: WARNING: msgattrib is not installed so translations cannot be
updated
checking for msginit... no
configure: WARNING: msginit is not installed so new translations cannot be
initialized
checking for convert... no
configure: WARNING: ImageMagick does not seem to be installed.
Documentation cannot be built
checking for dblatex... no
configure: WARNING: dblatex is not installed so PDF documentation cannot
be built
checking for dbtoepub... no
configure: WARNING: dbtoepub is not installed so EPUB documentation cannot
be built
checking for xhtml5/docbook.xsl in URI
http://cdn.docbook.org/release/xsl/current...... not found
checking for xhtml5/docbook.xsl in URI
https://cdn.docbook.org/release/xsl/current...... not found
checking for xhtml5/docbook.xsl in URI
http://docbook.sourceforge.net/release/xsl-ns/current...... not found
checking for xhtml5/docbook.xsl in directory /usr/share/sgml/docbook/xsl-
stylesheets...... not found
checking for xhtml5/docbook.xsl in directory
/usr/share/xml/docbook/stylesheet/docbook-xsl-ns...... not found
checking for xhtml5/docbook.xsl in directory
/usr/share/xml/docbook/stylesheet/docbook-xsl...... not found
checking for xhtml5/docbook.xsl in directory
/usr/share/xml/docbook/stylesheet/nwalsh...... not found
checking for xhtml5/docbook.xsl in directory
/usr/share/sgml/docbook/stylesheet/xsl/nwalsh...... not found
checking for xhtml5/docbook.xsl in directory /opt/local/share/xsl/docbook-
xsl...... not found
checking for xhtml5/docbook.xsl in directory /usr/local/opt/docbook-xsl
/docbook-xsl...... not found
checking for xhtml5/docbook.xsl in directory /usr/local/share/xsl/docbook-
xsl...... not found
checking for xhtml5/docbook.xsl in directory /usr/share/xsl/docbook-
xsl...... not found
configure: WARNING: could not locate Docbook stylesheets required to build
the html documentation
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for CUNIT... no
configure: WARNING: could not locate CUnit required for unit tests
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for libiconv_open in -liconv... yes
checking for iconvctl... no
checking for libiconvctl... no
Using user-specified pg_config file:
/opt/local/lib/postgresql17/bin/pg_config
checking PostgreSQL version... PostgreSQL 17.5
checking libpq-fe.h usability... yes
checking libpq-fe.h presence... yes
checking for libpq-fe.h... yes
checking for PQserverVersion in -lpq... yes
------------------------------------------------------------------------
WARNING: You have set the --prefix to '/opt/local'. But we mostly
ignore the --prefix. For your info, using the values determined from
/opt/local/lib/postgresql17/bin/pg_config we will be installing:
* postgis shared library in /opt/local/lib/postgresql17
* postgis SQL files in
/opt/local/share/postgresql17/contrib/postgis-3.5
------------------------------------------------------------------------
checking for xml2-config... /opt/local/bin/xml2-config
checking for xcrun... /usr/bin/xcrun
xcrun: error: unrecognized option: --show-sdk-version
usage:
xcrun [-verbose] [-no-cache] [-kill-cache] [-sdk <sdkroot>] [-log] [-run]
<utility> [utility argument(s) ...]
xcrun [-verbose] [-no-cache] [-kill-cache] [-sdk <sdkroot>] -find
<utility>
<tool> [tool arguments ...]
./configure: line 15656: test: =: unary operator expected
using OSX XCode ... yes
checking libxml/tree.h usability... yes
checking libxml/tree.h presence... yes
checking for libxml/tree.h... yes
checking libxml/parser.h usability... yes
checking libxml/parser.h presence... yes
checking for libxml/parser.h... yes
checking libxml/xpath.h usability... yes
checking libxml/xpath.h presence... yes
checking for libxml/xpath.h... yes
checking libxml/xpathInternals.h usability... yes
checking libxml/xpathInternals.h presence... yes
checking for libxml/xpathInternals.h... yes
checking for xmlInitParser in -lxml2... yes
checking for GEOS... yes
checking GEOS version... 3.13.1
checking GEOS numeric version... 31301
checking GEOS link flags... -L/opt/local/lib -lgeos_c
checking GEOS compile flags...
checking GEOS version is supported... yes
checking for GEOS_RPATH under MacOS... /opt/local/lib
checking geos_c.h usability... yes
checking geos_c.h presence... yes
checking for geos_c.h... yes
checking for initGEOS in -lgeos_c... yes
checking whether make sets $(MAKE)... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking whether NLS is requested... yes
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking for ld... /opt/local/bin/ld
checking if the linker (/opt/local/bin/ld) is GNU ld... no
checking for shared library run path origin... done
checking 32-bit host C ABI... yes
checking for ELF binary format... no
checking for the common suffixes of directories in the library search
path... lib,lib,lib
checking for CFPreferencesCopyAppValue... yes
checking for CFLocaleCopyPreferredLanguages... yes
checking for GNU gettext in libc... no
checking for iconv... yes
checking for working iconv... yes
checking how to link with libiconv... -liconv
checking for GNU gettext in libintl... yes
checking whether to use NLS... yes
checking where the gettext function comes from... external libintl
checking how to link with libintl... -lintl -Wl,-framework
-Wl,CoreFoundation
checking for PROJ... yes
Package proj was not found in the pkg-config search path.
Perhaps you should add the directory containing `proj.pc'
to the PKG_CONFIG_PATH environment variable
No package 'proj' found
checking for PROJ_RPATH under MacOS... /opt/local/lib/proj9/lib
checking proj_api.h usability... no
checking proj_api.h presence... no
checking for proj_api.h... no
checking proj.h usability... yes
checking proj.h presence... yes
checking for proj.h... yes
checking PROJ version via compiled code... 9.6.2
checking for pj_get_release in -lproj... no
checking for proj_info in -lproj... yes
checking for JSONC... yes
checking for PROTOBUFC... yes
checking protobuf-c/protobuf-c.h usability... yes
checking protobuf-c/protobuf-c.h presence... yes
checking for protobuf-c/protobuf-c.h... yes
checking for protobuf_c_message_init in -lprotobuf-c... yes
checking for protobuf_c_version in -lprotobuf-c... yes
checking protobuf-c version... 1005002
checking for protoc-c... /opt/local/bin/protoc-c
checking if /opt/local/bin/gcc-mp-14 supports -Wall... yes
phony-revision:
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]]
...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
ADDRESS_STANDARDIZER support: disabled
TOPOLOGY: Topology support requested
RASTER: Raster support requested
checking GDAL version... 3.11.0
checking for OGR enabled... yes
checking gdal.h usability... yes
checking gdal.h presence... yes
checking for gdal.h... yes
checking ogr_api.h usability... yes
checking ogr_api.h presence... yes
checking for ogr_api.h... yes
checking cpl_conv.h usability... yes
checking cpl_conv.h presence... yes
checking for cpl_conv.h... yes
checking for library containing GDALAllRegister... none required
checking for library containing OGRRegisterAll... none required
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/gcc-4.2 -std=gnu99 accepts -g... yes
checking how to run the C++ preprocessor... /usr/bin/gcc-4.2 -std=gnu99 -E
checking for ld used by /usr/bin/gcc-4.2 -std=gnu99... /opt/local/bin/ld
checking if the linker (/opt/local/bin/ld) is GNU ld... no
checking whether the /usr/bin/gcc-4.2 -std=gnu99 linker
(/opt/local/bin/ld) supports shared libraries... yes
checking for /usr/bin/gcc-4.2 -std=gnu99 option to produce PIC... -fno-
common -DPIC
checking if /usr/bin/gcc-4.2 -std=gnu99 PIC flag -fno-common -DPIC
works... yes
checking if /usr/bin/gcc-4.2 -std=gnu99 static flag -static works... no
checking if /usr/bin/gcc-4.2 -std=gnu99 supports -c -o file.o... yes
checking if /usr/bin/gcc-4.2 -std=gnu99 supports -c -o file.o... (cached)
yes
checking whether the /usr/bin/gcc-4.2 -std=gnu99 linker
(/opt/local/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin10.8.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether /usr/bin/gcc-4.2 -std=gnu99 supports C++11 features with
-std=c++11... no
checking whether /usr/bin/gcc-4.2 -std=gnu99 supports C++11 features with
+std=c++11... no
checking whether /usr/bin/gcc-4.2 -std=gnu99 supports C++11 features with
-h std=c++11... no
checking whether /usr/bin/gcc-4.2 -std=gnu99 supports C++11 features with
-std=c++0x... no
checking whether /usr/bin/gcc-4.2 -std=gnu99 supports C++11 features with
+std=c++0x... no
checking whether /usr/bin/gcc-4.2 -std=gnu99 supports C++11 features with
-h std=c++0x... no
configure: error: *** A compiler with support for C++11 language features
is required.
}}}
--
Ticket URL: <https://trac.macports.org/ticket/72619>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list