[MacPorts] #55647: postgis2 @2.4.2: fatal error: 'json-c/json_object_private.h' file not found (was: postgis2 upgrade/install fails in High Sierra)
MacPorts
noreply at macports.org
Thu Jan 18 01:12:01 UTC 2018
#55647: postgis2 @2.4.2: fatal error: 'json-c/json_object_private.h' file not found
------------------------------+----------------------
Reporter: basmac | Owner: Veence
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version: 2.4.2
Resolution: | Keywords:
Port: json-c postgis2 |
------------------------------+----------------------
Changes (by ryandesign):
* status: closed => reopened
* resolution: fixed =>
Old description:
> {{{
>
> after install to Xcode 9.2 is that makes any difference, tried clean,
> uninstall/install.
> end of debug follows
>
> DEBUG: Found Dependency: receipt exists for gdal
> DEBUG: Executing org.macports.main (postgis2)
> DEBUG: dropping privileges: euid changed to 504, egid changed to 503.
> DEBUG: Skipping completed org.macports.archivefetch (postgis2)
> DEBUG: Privilege de-escalation not attempted as not running as root.
> DEBUG: Skipping completed org.macports.fetch (postgis2)
> DEBUG: Privilege de-escalation not attempted as not running as root.
> DEBUG: Skipping completed org.macports.checksum (postgis2)
> DEBUG: Privilege de-escalation not attempted as not running as root.
> DEBUG: Skipping completed org.macports.extract (postgis2)
> DEBUG: Privilege de-escalation not attempted as not running as root.
> DEBUG: Skipping completed org.macports.patch (postgis2)
> DEBUG: Privilege de-escalation not attempted as not running as root.
> DEBUG: Skipping completed org.macports.configure (postgis2)
> DEBUG: Privilege de-escalation not attempted as not running as root.
> DEBUG: build phase started at Fri Jan 5 12:17:46 MST 2018
> ---> Building postgis2
> DEBUG: Executing org.macports.build (postgis2)
> DEBUG: port disallows a parallel build
> DEBUG: Environment:
> CC_PRINT_OPTIONS='YES'
> CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/.CC_PRINT_OPTIONS'
> CPATH='/opt/local/include'
> LIBRARY_PATH='/opt/local/lib'
> MACOSX_DEPLOYMENT_TARGET='10.13'
> Executing: cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/postgis-2.4.2"
> && /usr/bin/make -w all ICONV_LDFLAGS='-L/opt/local/lib -liconv'
> PGSQL_DOCDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/destroot/opt/local/share/doc/postgresql10
> PGSQL_MANDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/destroot/opt/local/share/man
> DEBUG: system: cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/postgis-2.4.2"
> && /usr/bin/make -w all ICONV_LDFLAGS='-L/opt/local/lib -liconv'
> PGSQL_DOCDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/destroot/opt/local/share/doc/postgresql10
> PGSQL_MANDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/destroot/opt/local/share/man
> make: Entering directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/postgis-2.4.2'
> /opt/local/bin/perl utils/svn_repo_revision.pl
> Can't fetch local revision (neither .svn nor .git found)
> Not updating existing rev file at 16113
> for s in liblwgeom libpgcommon postgis regress raster topology loader
> utils doc extensions; do \
> echo "---- Making all in ${s}"; \
> /Applications/Xcode.app/Contents/Developer/usr/bin/make
> -C ${s} all || exit 1; \
> done;
> ---- Making all in liblwgeom
> make[1]: Entering directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/postgis-2.4.2/liblwgeom'
> /bin/sh ../libtool --mode=compile /usr/bin/clang -I/opt/local/include
> -I/opt/local/include/libxml2 -I/opt/local/include -pipe -Os
> -Diconv=libiconv -Diconv_open=libiconv_open -Diconv_close=libiconv_close
> -arch x86_64 -fno-common -DPIC -Wall -Wmissing-prototypes
> -I/opt/local/include -c -o lwin_geojson.lo lwin_geojson.c
> libtool: compile: /usr/bin/clang -I/opt/local/include
> -I/opt/local/include/libxml2 -I/opt/local/include -pipe -Os
> -Diconv=libiconv -Diconv_open=libiconv_open -Diconv_close=libiconv_close
> -arch x86_64 -fno-common -DPIC -Wall -Wmissing-prototypes
> -I/opt/local/include -c lwin_geojson.c -fno-common -DPIC -o
> .libs/lwin_geojson.o
> lwin_geojson.c:36:10: fatal error: 'json-c/json_object_private.h' file
> not found
> #include <json-c/json_object_private.h>
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
> make[1]: *** [lwin_geojson.lo] Error 1
> make[1]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/postgis-2.4.2/liblwgeom'
> make: *** [all] Error 1
> make: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/postgis-2.4.2'
> Command failed: cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/postgis-2.4.2"
> && /usr/bin/make -w all ICONV_LDFLAGS='-L/opt/local/lib -liconv'
> PGSQL_DOCDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/destroot/opt/local/share/doc/postgresql10
> PGSQL_MANDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/destroot/opt/local/share/man
> Exit code: 2
> Error: Failed to build postgis2: command execution failed
> DEBUG: Error code: CHILDSTATUS 61021 2
> DEBUG: Backtrace: command execution failed
> while executing
> "system {*}$notty {*}$nice $fullcmdstring"
> invoked from within
> "command_exec build"
> (procedure "portbuild::build_main" line 8)
> invoked from within
> "$procedure $targetname"
> Error: See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/main.log
> for details.
> Error: Follow https://guide.macports.org/#project.tickets to report a
> bug.
> Error: Processing of port postgis2 failed
> bash-3.2# whoami
> root
> bash-3.2#
>
> }}}
New description:
after install to Xcode 9.2 is that makes any difference, tried clean,
uninstall/install.
end of debug follows
{{{
DEBUG: Found Dependency: receipt exists for gdal
DEBUG: Executing org.macports.main (postgis2)
DEBUG: dropping privileges: euid changed to 504, egid changed to 503.
DEBUG: Skipping completed org.macports.archivefetch (postgis2)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: Skipping completed org.macports.fetch (postgis2)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: Skipping completed org.macports.checksum (postgis2)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: Skipping completed org.macports.extract (postgis2)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: Skipping completed org.macports.patch (postgis2)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: Skipping completed org.macports.configure (postgis2)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: build phase started at Fri Jan 5 12:17:46 MST 2018
---> Building postgis2
DEBUG: Executing org.macports.build (postgis2)
DEBUG: port disallows a parallel build
DEBUG: Environment:
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.13'
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/postgis-2.4.2"
&& /usr/bin/make -w all ICONV_LDFLAGS='-L/opt/local/lib -liconv'
PGSQL_DOCDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/destroot/opt/local/share/doc/postgresql10
PGSQL_MANDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/destroot/opt/local/share/man
DEBUG: system: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/postgis-2.4.2"
&& /usr/bin/make -w all ICONV_LDFLAGS='-L/opt/local/lib -liconv'
PGSQL_DOCDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/destroot/opt/local/share/doc/postgresql10
PGSQL_MANDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/destroot/opt/local/share/man
make: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/postgis-2.4.2'
/opt/local/bin/perl utils/svn_repo_revision.pl
Can't fetch local revision (neither .svn nor .git found)
Not updating existing rev file at 16113
for s in liblwgeom libpgcommon postgis regress raster topology loader
utils doc extensions; do \
echo "---- Making all in ${s}"; \
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C
${s} all || exit 1; \
done;
---- Making all in liblwgeom
make[1]: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/postgis-2.4.2/liblwgeom'
/bin/sh ../libtool --mode=compile /usr/bin/clang -I/opt/local/include
-I/opt/local/include/libxml2 -I/opt/local/include -pipe -Os
-Diconv=libiconv -Diconv_open=libiconv_open -Diconv_close=libiconv_close
-arch x86_64 -fno-common -DPIC -Wall -Wmissing-prototypes
-I/opt/local/include -c -o lwin_geojson.lo lwin_geojson.c
libtool: compile: /usr/bin/clang -I/opt/local/include
-I/opt/local/include/libxml2 -I/opt/local/include -pipe -Os
-Diconv=libiconv -Diconv_open=libiconv_open -Diconv_close=libiconv_close
-arch x86_64 -fno-common -DPIC -Wall -Wmissing-prototypes
-I/opt/local/include -c lwin_geojson.c -fno-common -DPIC -o
.libs/lwin_geojson.o
lwin_geojson.c:36:10: fatal error: 'json-c/json_object_private.h' file not
found
#include <json-c/json_object_private.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [lwin_geojson.lo] Error 1
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/postgis-2.4.2/liblwgeom'
make: *** [all] Error 1
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/postgis-2.4.2'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/postgis-2.4.2"
&& /usr/bin/make -w all ICONV_LDFLAGS='-L/opt/local/lib -liconv'
PGSQL_DOCDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/destroot/opt/local/share/doc/postgresql10
PGSQL_MANDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/destroot/opt/local/share/man
Exit code: 2
Error: Failed to build postgis2: command execution failed
DEBUG: Error code: CHILDSTATUS 61021 2
DEBUG: Backtrace: command execution failed
while executing
"system {*}$notty {*}$nice $fullcmdstring"
invoked from within
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port postgis2 failed
bash-3.2# whoami
root
bash-3.2#
}}}
--
Comment:
json_object_private.h is a private json-c header file, not intended for
others to use. It should not be installed and postgis2 should not use it.
[https://github.com/postgis/postgis/commit/ccb7b1c48b26256a81a264baeb4ab9d06cf7221e
Here is the commit] where postgis2 was fixed not to use it. Perhaps this
can be backported to the postgis2 port.
--
Ticket URL: <https://trac.macports.org/ticket/55647#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list