Summary: | dev-db/postgis-2.0.2 - lwgeom_in_geojson.c:31:23: fatal error: json/json.h: No such file or directory compilation terminated. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | eroen <erikdenstore+gbugs> |
Component: | [OLD] Development | Assignee: | PgSQL Bugs <pgsql-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sci-geosciences |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 452234 | ||
Bug Blocks: | |||
Attachments: |
Build log
build log for postgis-2.0.2-r1 |
Description
eroen
2013-01-31 07:34:19 UTC
Created attachment 337386 [details]
Build log
Update succeeds (not tested other than successful build) after copying /usr/include/json-c to /usr/include/json AND un-setting MAKEOPTS . MAKOPTS=-j2 did not work, but with a different error. I guess that's an unrelated bug from this, though. Emerging jsoncpp does not seem to help, still different error. I have the same issue. Does MAKEOPTS=-j1 work? Please post the output of `postgresql-config show`. (In reply to comment #5) > Please post the output of `postgresql-config show`. Disregard that statement. I found what I need in the build.log. This is actually related to bug 452234. The header location of JSON-C changed with 0.10 from /usr/include/json/json.h to /usr/include/json-c/json.h. I'll add a bit of logic to the ebuild to work around this issue. (In reply to comment #7) > This is actually related to bug 452234. > > The header location of JSON-C changed with 0.10 from > /usr/include/json/json.h to /usr/include/json-c/json.h. > > I'll add a bit of logic to the ebuild to work around this issue. simply use the pkg-config file. That was the reason why I moved json-c. *postgis-2.0.2-r1 (03 Feb 2013) 03 Feb 2013; Aaron W. Swenson <titanofold@gentoo.org> -postgis-2.0.2.ebuild, +postgis-2.0.2-r1.ebuild: Add JSON-C dependency and use pkg-config fixing bug 454774. I'm reopening this, as postgis-2.0.2-r1 fails to emerge with the same message, build log is attached. To avoid confusion, since the last report I have switched postgresql slot: $ postgresql-config show 9.2 I also rebuilt dev-db/postgresql-base-9.2.2-r1 and dev-db/postgresql-server-9.2.2-r1 in an effort to avoid possible problem sources. It would seem passing include path in C(XX)FLAGS is insufficient/ignored for parts of the build. The comments about re-using postgresql's *FLAGS for building modules stand out as a possible source of this issue. Created attachment 337850 [details]
build log for postgis-2.0.2-r1
(In reply to comment #11) > Created attachment 337850 [details] > build log for postgis-2.0.2-r1 I confirm that, having the exact same error. I really fixed it this time. I made the changes in place; no revbump. Sync and reemerge. |