Opened 7 months ago

Closed 7 months ago

Last modified 7 months ago

#7195 closed defect (fixed)

json_object_private.h doesn't exist in json-c anymore

Reported by: saultdon Owned by: warmerdam
Priority: normal Milestone: 2.2.4
Component: default Version: 2.2.3
Severity: major Keywords: json-c
Cc:

Description

The build fails for gdal 2.2.3 because it can't find the file json_object_private.h

I don't think this file exists anymore for json-c 0.13.

g++ -I/tmp/makepkg/gdal-filegdb/src/gdal-2.2/port -I/tmp/makepkg/gdal-filegdb/src/gdal-2.2/gcore -I/tmp/makepkg/gdal-filegdb/src/gdal-2.2/alg -I/tmp/makepkg/gdal-filegdb/src/gdal-2.2/ogr -I/tmp/makepkg/gdal-filegdb/src/gdal-2.2/ogr/ogrsf_frmts -I/tmp/makepkg/gdal-filegdb/src/gdal-2.2/gnm -I/tmp/makepkg/gdal-filegdb/src/gdal-2.2/apps -DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -march=native -O2 -pipe -fstack-protector-strong -fPIC  -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wlogical-op -Wshadow -Werror=vla -Wdate-time -Wnull-dereference -Wduplicated-cond -Wfloat-conversion -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -Wsuggest-override -Wimplicit-fallthrough  -I/usr/include/json-c -I. -I.. -I../..  -DGNM_ENABLED -D_FORTIFY_SOURCE=2 -I/tmp/makepkg/gdal-filegdb/src/gdal-2.2/port -I/usr/include  -DGDAL_COMPILATION -c -o ../o/ogrgeojsonwriter.o ogrgeojsonwriter.cpp
ogrgeojsonwriter.cpp:35:10: fatal error: json_object_private.h: No such file or directory
 #include <json_object_private.h>
          ^~~~~~~~~~~~~~~~~~~~~~~

Change History (2)

comment:1 Changed 7 months ago by Even Rouault

Resolution: fixed
Status: newclosed

In 41200:

Add support for json-c v0.13 (patch by Björn Esser, fixes ​https://github.com/OSGeo/gdal/pull/277, backport of r41043, fixes #7195)

comment:2 Changed 7 months ago by Even Rouault

Milestone: 2.2.4
Note: See TracTickets for help on using tickets.