Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 641688 - app-admin/syslog-ng-3.13.2 fails to build with dev-libs/json-c-0.13: modules/json/json-parser.c:31:10: fatal error: json_object_private.h: No such file or directory
Summary: app-admin/syslog-ng-3.13.2 fails to build with dev-libs/json-c-0.13: modules...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-19 09:35 UTC by Pryka
Modified: 2017-12-20 20:44 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pryka 2017-12-19 09:35:18 UTC
emerge =app-admin/syslog-ng-3.13.2 -1av

Ends up with this:

libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./lib -I./modules -I./lib -I./modules -I./modules/json -I./modules/json -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I./lib/eventlog/src -I./lib/eventlog/src -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/json-c -march=native -O2 -pipe -Wall -pthread -c modules/json/json-parser.c  -fPIC -DPIC -o modules/json/.libs/modules_json_libjson_plugin_la-json-parser.o
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -I./lib -I./modules -I./lib -I./modules -I./modules/json -I./modules/json -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I./lib/eventlog/src -I./lib/eventlog/src      -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/include/json-c -march=native -O2 -pipe -Wall -pthread -c -o modules/json/modules_json_libjson_plugin_la-json-parser-grammar.lo `test -f 'modules/json/json-parser-grammar.c' || echo './'`modules/json/json-parser-grammar.c
modules/json/json-parser.c:31:10: fatal error: json_object_private.h: No such file or directory
 #include <json_object_private.h>
          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:13498: modules/json/modules_json_libjson_plugin_la-json-parser.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./lib -I./modules -I./lib -I./modules -I./modules/json -I./modules/json -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I./lib/eventlog/src -I./lib/eventlog/src -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/json-c -march=native -O2 -pipe -Wall -pthread -c modules/json/json-parser-grammar.c  -fPIC -DPIC -o modules/json/.libs/modules_json_libjson_plugin_la-json-parser-grammar.o
make[1]: *** [Makefile:16462: all-recursive] Error 1
make: *** [Makefile:6751: all] Error 2


EMERGE INFO:
Portage 2.3.19 (python 2.7.14-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-7.2.0, glibc-2.26-r3, 4.14.7 x86_64)
=================================================================
System uname: Linux-4.14.7-x86_64-Intel-R-_Pentium-R-_Dual_CPU_E2180_@_2.00GHz-with-gentoo-2.4.1
KiB Mem:     4045456 total,    860280 free
KiB Swap:    2016120 total,   2015852 free
Timestamp of repository gentoo: Tue, 19 Dec 2017 05:45:01 +0000
Head commit of repository gentoo: 5fa2e6bd4aa18e4b08f2ca0d4318fdecbfc13fd6
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.6-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.10.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            7.2.0::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://ftp.vectranet.pl/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 

sunrise
    location: /var/lib/layman/sunrise
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/sunrise-reviewed.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL google-chrome Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.vectranet.pl/gentoo/ http://ftp.vectranet.pl/gentoo/"
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="64bit X a52 aac accessibility acl acpi activities alsa amd64 bash-completion bazaar berkdb binary-drivers bluetooth branding bzip2 cairo cdda cdr cjk cli color consolekit cracklib crashreporter crypt css cups cxx dbus declarative device-mapper dri dts dvd dvdnav dvdr embedded emboss encode exif fam fat ffmpeg firefox flac fontconfig fortran gcj gdbm gif glamor gpm gtk handbook hddtemp iconv idn imlib ipv6 java jpeg kde kipi kwallet lame lcms ldap legacy-systray libnotify lua mad mercurial mng modules mp3 mp4 mpeg multilib ncurses nls nptl nss ntfs ogg opengl openmp pam pango pcre pdf phonon plasma png policykit postproc ppds pulseaudio qml qt3support qt5 readline sdl seccomp semantic-desktop session slang spell sse3 ssl ssse3 startup-notification subversion svg symlink sync-plugin-portage syslog tcpd thumbnail tiff truetype udev udisks unicode update_drivedb upower usb vorbis webm widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xv xvfb xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="pl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby21 ruby22 ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 thunderrd 2017-12-19 12:25:20 UTC
I have the identical error on my ~amd64 install; it's related to the update of dev-libs/json-c to version 0.13

syslog-ng will successfully build with -json set.

masking devlibs/json-c-0.13 and reverting to 0.12 allows compiling of syslog-ng with +json set, so that's my quick fix for now, until the bug is sorted.
Comment 2 Tomáš Mózes 2017-12-19 13:30:51 UTC
https://github.com/balabit/syslog-ng/pull/1810
Comment 3 Tomáš Mózes 2017-12-19 13:36:09 UTC
Thanks for noticing, I'll add the patch to version 3.13.2.
Comment 4 Larry the Git Cow gentoo-dev 2017-12-20 20:44:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d03a886fc569f7025ff7d97b7975c5af817ad963

commit d03a886fc569f7025ff7d97b7975c5af817ad963
Author:     Tomas Mozes <hydrapolic@gmail.com>
AuthorDate: 2017-12-19 15:30:41 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2017-12-20 20:44:04 +0000

    app-admin/syslog-ng: fix building with dev-libs/json-c-0.13
    
    Closes: https://bugs.gentoo.org/641688
    Package-Manager: Portage-2.3.18, Repoman-2.3.6

 .../patches/syslog-ng-3.12.1-json-c-0.13+.patch    | 33 ++++++++++++++++++++++
 ...ng-3.12.1-r1.ebuild => syslog-ng-3.12.1.ebuild} |  7 ++++-
 ...ng-3.13.2-r1.ebuild => syslog-ng-3.13.2.ebuild} |  7 ++++-
 3 files changed, 45 insertions(+), 2 deletions(-)