CVS version does not build yet on FreeBSD due to missing ENDIANness defines. It is enaught to include <sys/types.h> to postgis.h in order to get those defines: 45a46 > #include <sys/types.h> I've read some old posts in the list and this seems the cleaner way to to make it work (one more include will not hurt). --strk;