Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#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 Wayne Blaszczyk, 12 years ago

Gentoo seems to have a patch: https://bugs.gentoo.org/show_bug.cgi?id=454372

Will try it out and report back.

comment:2 by Armin K, 12 years ago

Summary: PulseAudio-3.0 won't build with JSON-C-0.10JSON-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 Wayne Blaszczyk, 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 Wayne Blaszczyk, 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 Wayne Blaszczyk, 12 years ago

Owner: changed from blfs-book@… to Wayne Blaszczyk

comment:6 by Wayne Blaszczyk, 12 years ago

Status: newassigned

comment:7 by Wayne Blaszczyk, 12 years ago

Resolution: fixed
Status: assignedclosed

Changes commited.

comment:8 by bdubbs@…, 11 years ago

Milestone: current

Milestone current deleted

Note: See TracTickets for help on using tickets.