Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. $ tar xzf gdal-1.11.2.tar.gz
  2. $ cd gdal-1.11.2
  3. $ ./configure
  4. $ make
  5.  
  6. 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
  7. In file included from /usr/include/string.h:634:0,
  8. from /home/user/tmp/gdal-1.9.1/port/cpl_port.h:132,
  9. from /home/user/tmp/gdal-1.9.1/port/cpl_conv.h:34,
  10. from json_object.c:12:
  11. json_object.c:29:9: error: expected identifier or '(' before '__extension__'
  12. char* strndup(const char* str, size_t n);
  13. ^
  14. GNUmakefile:23: recipe for target '../../o/json_object.lo' failed
  15.  
  16. $ 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
  17.  
  18. In file included from /usr/include/string.h:634:0,
  19. from /home/user/tmp/gdal-1.9.2/port/cpl_port.h:132,
  20. from /home/user/tmp/gdal-1.9.2/port/cpl_conv.h:34,
  21. from /home/user/tmp/gdal-1.9.2/ogr/ogrsf_frmts/geojson/jsonc/json_object.c:12:
  22. /home/user/tmp/gdal-1.9.2/ogr/ogrsf_frmts/geojson/jsonc/json_object.c:29:9: error: expected identifier or ‘(’ before ‘__extension__’
  23. char* strndup(const char* str, size_t n);
  24.  
  25. 12 #include "cpl_conv.h"
  26. 13
  27. 14 #include "config.h"
  28. 15
  29. 16 #include <stdio.h>
  30. 17 #include <stdlib.h>
  31. 18 #include <stddef.h>
  32. 19 #include <string.h>
  33. 20
  34. 21 #include "debug.h"
  35. 22 #include "printbuf.h"
  36. 23 #include "linkhash.h"
  37. 24 #include "arraylist.h"
  38. 25 #include "json_object.h"
  39. 26 #include "json_object_private.h"
  40. 27
  41. 28 #if !HAVE_STRNDUP
  42. 29 char* strndup(const char* str, size_t n);
  43. 30 #endif /* !HAVE_STRNDUP */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement