Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ tar xzf gdal-1.11.2.tar.gz
- $ cd gdal-1.11.2
- $ ./configure
- $ make
- libtool: compile: gcc -g -O2 -Wall -Wdeclaration-after-statement -DOGR_ENABLED -I/home/user/tmp/gdal-1.9.1/port -I/usr/include -c json_object.c -fPIC -DPIC -o ../../o/.libs/json_object.o
- In file included from /usr/include/string.h:634:0,
- from /home/user/tmp/gdal-1.9.1/port/cpl_port.h:132,
- from /home/user/tmp/gdal-1.9.1/port/cpl_conv.h:34,
- from json_object.c:12:
- json_object.c:29:9: error: expected identifier or '(' before '__extension__'
- char* strndup(const char* str, size_t n);
- ^
- GNUmakefile:23: recipe for target '../../o/json_object.lo' failed
- $ gcc -g -O2 -Wall -Wdeclaration-after-statement -DOGR_ENABLED -I/home/user/tmp/gdal-1.9.2/port -c /home/user/tmp/gdal-1.9.2/ogr/ogrsf_frmts/geojson/jsonc/json_object.c
- In file included from /usr/include/string.h:634:0,
- from /home/user/tmp/gdal-1.9.2/port/cpl_port.h:132,
- from /home/user/tmp/gdal-1.9.2/port/cpl_conv.h:34,
- from /home/user/tmp/gdal-1.9.2/ogr/ogrsf_frmts/geojson/jsonc/json_object.c:12:
- /home/user/tmp/gdal-1.9.2/ogr/ogrsf_frmts/geojson/jsonc/json_object.c:29:9: error: expected identifier or ‘(’ before ‘__extension__’
- char* strndup(const char* str, size_t n);
- 12 #include "cpl_conv.h"
- 13
- 14 #include "config.h"
- 15
- 16 #include <stdio.h>
- 17 #include <stdlib.h>
- 18 #include <stddef.h>
- 19 #include <string.h>
- 20
- 21 #include "debug.h"
- 22 #include "printbuf.h"
- 23 #include "linkhash.h"
- 24 #include "arraylist.h"
- 25 #include "json_object.h"
- 26 #include "json_object_private.h"
- 27
- 28 #if !HAVE_STRNDUP
- 29 char* strndup(const char* str, size_t n);
- 30 #endif /* !HAVE_STRNDUP */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement