Summary: | databases/postgis22: compile error: unknown type name 'LWORD' | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | O. Hartmann <ohartmann> |
Component: | Individual Port(s) | Assignee: | freebsd-ports-bugs (Nobody) <ports-bugs> |
Status: | Closed Not Enough Information | ||
Severity: | Affects Many People | CC: | rhurlin, robert.kruus |
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(rhurlin) |
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
O. Hartmann
2016-06-22 06:12:52 UTC
The problem occurs as long databases/postgis21 is installed. Deleting that specific port first, solve the problem. Updating/replacing databases/postgis21 via portmaster -o databases/postgis22 databases/postgis21 results in the reported error. I'm not sure wether the "updating" or "migration" via the above shown command is correct, so I close the PR. The problem is due to the order of the includes in the compile statement: cc -O2 -pipe -O3 -march=native -I/usr/local/include -fstack-protector -fno-strict-aliasing -I../liblwgeom -I/usr/local/include/postgresql/server -fPIC -DPIC -Wall -Wmissing-prototypes -c -o gserialized_gist.o gserialized_gist.c moving the "-I/usr/local/include" to after the "-I../liblwgeom" in the compile fixes the issue as it will use the newer header files. cc -O2 -pipe -O3 -march=native -fstack-protector -fno-strict-aliasing -I../liblwgeom -I/usr/local/include/postgresql/server -I/usr/local/include -fPIC -DPIC -Wall -Wmissing-prototypes -c -o gserialized_gist.o gserialized_gist.c The fix would be to patch the Makefile in appropriate directory. Might try to kludge an example fix together. (In reply to Robert Kruus from comment #2) Thanks for your analysis and suggestion. I was just preparing exactly the same patch, you published in bug #211203. Is there any reason, to not append that patch to this one (no 210453)? Some short test of the patched databases/postgis22 did no show me any misbehaviour. So probably, the patch should be ok? |