[postgis-users] PostGIS 2.2.0 build error on Linux.
strk at keybit.net
Tue Oct 13 00:44:25 PDT 2015
On Tue, Oct 13, 2015 at 11:47:09AM +0530, Bandaru Muralikrishna wrote:
> I am trying build PostGIS 2.2.0 source code on linux platform . I am
> getting below build error:
> In file included from bytebuffer.c:40:
> bytebuffer.h:1: error: stray ‘\357’ in program
> bytebuffer.h:1: error: stray ‘\273’ in program
> bytebuffer.h:1: error: stray ‘\277’ in program
> In file included from bytebuffer.h:44,
> from bytebuffer.c:40:
> varint.h:1: error: stray ‘\357’ in program
> varint.h:1: error: stray ‘\273’ in program
> varint.h:1: error: stray ‘\277’ in program
> make: make: Leaving directory
> *** [bytebuffer.lo] Error 1
> make: *** [all] Error 1
> I found that the file types for the files mentioned below are UTF-8
> Unicode. When I converted these files to ASCII type the build issue
> get resolved. Should this change go in git?
YES, it's a byte-order-mark (BOM) !
Thanks for the list.
Now fixed with r14269 in trunk and r14270 in 2.2 branch.
Out of curiosity, which compiler (or preprocessor) did not understand
the BOM ?
More information about the postgis-users