Opened 7 years ago
Closed 7 years ago
#55647 closed defect (fixed)
postgis2 @2.4.2: fatal error: 'json-c/json_object_private.h' file not found
Reported by: | basmac | Owned by: | Veence (Vincent) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.4.2 |
Keywords: | Cc: | ||
Port: | json-c postgis2 |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
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#
Change History (6)
comment:1 Changed 7 years ago by mf2k (Frank Schima)
Keywords: | postgis2 removed |
---|---|
Owner: | set to Veence |
Status: | new → assigned |
Summary: | postgis2 upgrade/install fails in HS → postgis2 upgrade/install fails in high sierra |
comment:2 Changed 7 years ago by mf2k (Frank Schima)
Summary: | postgis2 upgrade/install fails in high sierra → postgis2 upgrade/install fails in High Sierra |
---|
I see this too. This seems to be an issue with the latest json-c port. That header file apparently is no longer installed:
$ port contents json-c | grep object /opt/local/include/json-c/json_object.h /opt/local/include/json-c/json_object_iterator.h
comment:3 Changed 7 years ago by mf2k (Frank Schima)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:4 Changed 7 years ago by mf2k (Frank Schima)
Port: | json-c added |
---|
comment:5 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
Summary: | postgis2 upgrade/install fails in High Sierra → postgis2 @2.4.2: fatal error: 'json-c/json_object_private.h' file not found |
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. Here is the commit where postgis2 was fixed not to use it. Perhaps this can be backported to the postgis2 port.
comment:6 Changed 7 years ago by Veence (Vincent)
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
This has been corrected, I think.
Note: See
TracTickets for help on using
tickets.
In the future, please Cc the port maintainers (
port info --maintainers postgis2
).