[postgis-devel] Unable to compile PostGIS 2.0 under Solaris x86 - BYTE_ORDER undeclared

Hecox, Brad bhecox at cghtech.com
Thu May 26 07:38:12 PDT 2011


Hi,  

In attempting to compile the latest build of 2.0 (revision 7254) we are receiving errors with regards to determining the BYTE_ORDER:

Any ideas?  Thanks!

*****************************
# uname -a
Solaris x86 SunOS pghost 5.10 Generic_141445-09 i86pc i386 i86pc
*****************************

# gmake
for s in liblwgeom regress postgis loader utils  ; do \
       echo "---- Making all in ${s}"; \
       gmake -C ${s} all || exit 1; \
done;
---- Making all in liblwgeom
gmake[1]: Entering directory `/opt/repository/db/postgis-2.0.0SVN/liblwgeom'
gcc -g -O2  -fPIC -DPIC   -c -o stringbuffer.o stringbuffer.c
gcc -g -O2  -fPIC -DPIC   -c -o measures.o measures.c
gcc -g -O2  -fPIC -DPIC   -c -o measures3d.o measures3d.c
In file included from measures3d.c:18:
measures3d.h:102:2: warning: no newline at end of file
gcc -g -O2  -fPIC -DPIC   -c -o box2d.o box2d.c
gcc -g -O2  -fPIC -DPIC   -c -o ptarray.o ptarray.c
gcc -g -O2  -fPIC -DPIC   -c -o lwgeom_api.o lwgeom_api.c
gcc -g -O2  -fPIC -DPIC   -c -o lwgeom.o lwgeom.c
gcc -g -O2  -fPIC -DPIC   -c -o lwpoint.o lwpoint.c
gcc -g -O2  -fPIC -DPIC   -c -o lwline.o lwline.c
gcc -g -O2  -fPIC -DPIC   -c -o lwpoly.o lwpoly.c
gcc -g -O2  -fPIC -DPIC   -c -o lwtriangle.o lwtriangle.c
gcc -g -O2  -fPIC -DPIC   -c -o lwmpoint.o lwmpoint.c
gcc -g -O2  -fPIC -DPIC   -c -o lwmline.o lwmline.c
gcc -g -O2  -fPIC -DPIC   -c -o lwmpoly.o lwmpoly.c
gcc -g -O2  -fPIC -DPIC   -c -o lwcollection.o lwcollection.c
gcc -g -O2  -fPIC -DPIC   -c -o lwcircstring.o lwcircstring.c
gcc -g -O2  -fPIC -DPIC   -c -o lwcompound.o lwcompound.c
lwcompound.c:151:2: warning: no newline at end of file
gcc -g -O2  -fPIC -DPIC   -c -o lwcurvepoly.o lwcurvepoly.c
gcc -g -O2  -fPIC -DPIC   -c -o lwmcurve.o lwmcurve.c
gcc -g -O2  -fPIC -DPIC   -c -o lwmsurface.o lwmsurface.c
gcc -g -O2  -fPIC -DPIC   -c -o lwpsurface.o lwpsurface.c
gcc -g -O2  -fPIC -DPIC   -c -o lwtin.o lwtin.c
gcc -g -O2  -fPIC -DPIC   -c -o lwout_wkb.o lwout_wkb.c
lwout_wkb.c: In function `wkb_swap_bytes':
lwout_wkb.c:168: error: `BYTE_ORDER' undeclared (first use in this function)
lwout_wkb.c:168: error: (Each undeclared identifier is reported only once
lwout_wkb.c:168: error: for each function it appears in.)
lwout_wkb.c:168: error: `LITTLE_ENDIAN' undeclared (first use in this function)
lwout_wkb.c:169: error: `BIG_ENDIAN' undeclared (first use in this function)
lwout_wkb.c: In function `lwgeom_to_wkb':
lwout_wkb.c:717: error: `BYTE_ORDER' undeclared (first use in this function)
lwout_wkb.c:717: error: `LITTLE_ENDIAN' undeclared (first use in this function)
gmake[1]: *** [lwout_wkb.o] Error 1
gmake[1]: Leaving directory `/opt/repository/db/postgis-2.0.0SVN/liblwgeom'
gmake: *** [all] Error 1





More information about the postgis-devel mailing list