#3808 closed defect (fixed)
JSON-C-0.10 doesn't install necesary headers
Reported by: | Wayne Blaszczyk | Owned by: | Wayne Blaszczyk |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | BOOK | Version: | SVN |
Severity: | normal | Keywords: | |
Cc: |
Description
The following error occurs during make:
In file included from pulse/format.c:28:0: /usr/include/json/json.h:27:34: fatal error: json_object_iterator.h: No such file or directory compilation terminated.
The json_object_iterator.h file is not installed during JSON install.
Change History (8)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Summary: | PulseAudio-3.0 won't build with JSON-C-0.10 → JSON-C-0.10 doesn't install necesary headers |
---|
Try this workaround from Fedora - it's for JSON-C, not Pulseaudio
sed -e 's/json_object.c/json_object.c json_object_iterator.c/' \ -e 's/json_object.h/json_object.h json_object_iterator.h/' \ -e 's/json_object.lo/json_object.lo json_object_iterator.lo/' \ -i Makefile.in
If you have some time, please commit it.
comment:3 by , 12 years ago
The Gentoo patch works (with a autoreconf -fi), but it also changes /usr/include/json to /usr/include/json-c. Not sure if that is necessary. It's getting late, I'll try out the Fedora's workaround tomorrow.
comment:4 by , 12 years ago
Couldn't resist . The Fedora's workaround works. It doesn't require a autoreconf, so I think it is a better solution. Will have to wait till tomorrow at least for a commit from me.
comment:5 by , 12 years ago
Owner: | changed from | to
---|
comment:6 by , 12 years ago
Status: | new → assigned |
---|
Gentoo seems to have a patch: https://bugs.gentoo.org/show_bug.cgi?id=454372
Will try it out and report back.