[Bug 210453] databases/postgis22: compile error: unknown type name 'LWORD'

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jul 18 16:05:06 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210453

Robert Kruus <robert.kruus at utoronto.ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |robert.kruus at utoronto.ca

--- Comment #2 from Robert Kruus <robert.kruus at utoronto.ca> ---
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list