Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147336 - app-admin/syslog-ng-1.6.11 compile fails with LOG_CRON undeclared error
Summary: app-admin/syslog-ng-1.6.11 compile fails with LOG_CRON undeclared error
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mr. Bones. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-12 08:45 UTC by Alexander Hsia
Modified: 2006-10-11 11:45 UTC (History)
1 user (show)

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


Attachments
syslog-ng emerge log (syslog.emerge,15.17 KB, text/plain)
2006-09-12 08:47 UTC, Alexander Hsia
Details
emerge info (emerge.info,3.43 KB, text/plain)
2006-09-12 08:47 UTC, Alexander Hsia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Hsia 2006-09-12 08:45:51 UTC
While doing a emerge -e system after upgrading to gcc-4.1.1, syslog-ng fails to compile with the following error in attachment
Comment 1 Alexander Hsia 2006-09-12 08:47:17 UTC
Created attachment 96799 [details]
syslog-ng emerge log
Comment 2 Alexander Hsia 2006-09-12 08:47:44 UTC
Created attachment 96800 [details]
emerge info
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2006-09-12 11:46:33 UTC
Works fine for me so it's likely something broken locally rather then a problem with the package.

Please attach the output of "emerge -evp syslog-ng"
Comment 4 Alexander Hsia 2006-09-12 13:07:31 UTC
# emerge -evp syslog-ng
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild  N    ] virtual/libiconv-0  0 kB 
[ebuild  N    ] sys-devel/gettext-0.15  USE="nls -doc -emacs -nocxx" 7,892 kB 
[ebuild  N    ] virtual/libintl-0  0 kB 
[ebuild  N    ] sys-apps/sed-4.1.5  USE="nls -static" 0 kB 
[ebuild  N    ] sys-kernel/linux-headers-2.6.17  USE="-gcc64" 0 kB 
[ebuild  N    ] sys-devel/gcc-config-1.3.13-r3  0 kB 
[ebuild  N    ] app-misc/pax-utils-0.1.13  USE="-caps" 0 kB 
[ebuild  N    ] dev-libs/gmp-4.2.1  USE="-doc -nocxx" 0 kB 
[ebuild  N    ] sys-libs/gpm-1.20.1-r5  USE="(-selinux)" 559 kB 
[ebuild  N    ] sys-libs/ncurses-5.5-r3  USE="gpm unicode -bootstrap -build -debug -doc -minimal -nocxx -trace" 2,259 kB 
[ebuild  N    ] sys-devel/m4-1.4.6  USE="nls" 495 kB 
[ebuild  N    ] sys-devel/gnuconfig-20060702  38 kB 
[ebuild  N    ] sys-devel/bison-2.2  USE="nls -static" 0 kB 
[ebuild  N    ] sys-apps/texinfo-4.8-r4  USE="nls -build -static" 1,486 kB 
[ebuild  N    ] sys-apps/groff-1.19.2-r1  USE="X" 2,835 kB 
[ebuild  N    ] sys-devel/binutils-config-1.9-r1  0 kB 
[ebuild  N    ] sys-devel/binutils-2.17  USE="nls -multislot -multitarget -test -vanilla" 13,482 kB 
[ebuild  N    ] sys-apps/man-1.6d  USE="nls" 0 kB 
[ebuild  N    ] perl-core/Test-Simple-0.64  69 kB 
[ebuild  N    ] virtual/perl-Test-Simple-0.64  0 kB 
[ebuild  N    ] dev-perl/Locale-gettext-1.05  7 kB 
[ebuild  N    ] sys-apps/help2man-1.36.4  USE="nls" 83 kB 
[ebuild  N    ] sys-devel/libtool-1.5.22  0 kB 
[ebuild  N    ] dev-util/pkgconfig-0.21  USE="-hardened" 0 kB 
[ebuild  N    ] x11-misc/util-macros-1.1.0  USE="-debug" 0 kB 
[ebuild  N    ] x11-proto/kbproto-1.0.3  USE="-debug" 0 kB 
[ebuild  N    ] x11-proto/xextproto-7.0.2  USE="-debug" 0 kB 
[ebuild  N    ] x11-proto/xf86bigfontproto-1.1.2  USE="-debug" 0 kB 
[ebuild  N    ] x11-proto/inputproto-1.3.2  USE="-debug" 0 kB 
[ebuild  N    ] x11-proto/xproto-7.0.7  USE="-debug" 0 kB 
[ebuild  N    ] x11-libs/libXau-1.0.2  USE="-debug" 0 kB 
[ebuild  N    ] x11-proto/bigreqsproto-1.0.2  USE="-debug" 0 kB 
[ebuild  N    ] x11-libs/libXdmcp-1.0.2  USE="-debug" 0 kB 
[ebuild  N    ] x11-proto/xcmiscproto-1.1.2  USE="-debug" 0 kB 
[ebuild  N    ] x11-libs/xtrans-1.0.1  USE="-debug" 0 kB 
[ebuild  N    ] x11-libs/libX11-1.0.3  USE="-debug -ipv6" 0 kB 
[ebuild  N    ] x11-libs/libICE-1.0.1  USE="-debug -ipv6" 0 kB 
[ebuild  N    ] x11-libs/libSM-1.0.1  USE="-debug -ipv6" 0 kB 
[ebuild  N    ] x11-libs/libXt-1.0.2  USE="-debug" 0 kB 
[ebuild  N    ] app-portage/portage-utils-0.1.21  USE="python" 67 kB 
[ebuild  N    ] dev-java/java-config-wrapper-0.12  7 kB 
[ebuild  N    ] app-shells/bash-3.1_p17  USE="nls -afs -bashlogger -vanilla" 2,517 kB 
[ebuild  N    ] sys-libs/readline-5.1_p4  1,986 kB 
[ebuild  N    ] sys-apps/diffutils-2.8.7-r1  USE="nls -static" 1,037 kB 
[ebuild  N    ] dev-libs/openssl-0.9.8c  USE="zlib -bindist -emacs -test" 0 kB 
[ebuild  N    ] app-misc/ca-certificates-20050804  0 kB 
[ebuild  N    ] sys-libs/gdbm-1.8.3-r2  USE="berkdb" 0 kB 
[ebuild  N    ] dev-libs/expat-2.0.0  0 kB 
[ebuild  N    ] sys-libs/zlib-1.2.3  USE="-build" 415 kB 
[ebuild  N    ] dev-lang/python-2.4.3-r3  USE="berkdb gdbm ncurses readline ssl -bootstrap -build -doc -ipv6 -nocxx -tk -ucs2" 0 kB 
[ebuild  N    ] dev-java/java-config-2.0.28  15 kB 
[ebuild  N    ] dev-python/python-fchksum-1.7.1  0 kB 
[ebuild  N    ] x11-libs/libXext-1.0.1  USE="-debug" 0 kB 
[ebuild  N    ] sys-devel/make-3.81  USE="nls -static" 0 kB 
[ebuild  N    ] sys-apps/sandbox-1.2.18.1  0 kB 
[ebuild  N    ] dev-python/pycrypto-2.0.1-r5  USE="-bindist -gmp -test" 0 kB 
[ebuild  N    ] sys-apps/portage-2.1.1  USE="-build -doc (-selinux)" LINGUAS="-pl" 0 kB 
[ebuild  N    ] sys-apps/sysvinit-2.86-r5  USE="(-ibm) (-selinux) -static" 0 kB 
[ebuild  N    ] sys-apps/attr-2.4.32  USE="nls" 0 kB 
[ebuild  N    ] sys-apps/acl-2.2.39  USE="nls" 0 kB 
[ebuild  N    ] sys-devel/automake-1.8.5-r3  0 kB 
[ebuild  N    ] sys-apps/coreutils-6.1  USE="acl nls (-selinux) -static" 0 kB 
[ebuild  N    ] sys-apps/baselayout-1.12.4-r7  USE="unicode -bootstrap -build -static" 0 kB 
[ebuild  N    ] sys-apps/hotplug-base-20040401  0 kB 
[ebuild  N    ] sys-fs/udev-100  USE="(-selinux)" 0 kB 
[ebuild  N    ] sys-kernel/gentoo-sources-2.6.17-r8  USE="-build -symlink (-ultra1)" 0 kB 
[ebuild  N    ] media-sound/alsa-headers-1.0.12  0 kB 
[ebuild  N    ] media-libs/alsa-lib-1.0.12  USE="-doc" 0 kB 
[ebuild  N    ] x11-libs/libXi-1.0.1  USE="-debug" 0 kB 
[ebuild  N    ] x11-proto/recordproto-1.13.2  USE="-debug" 0 kB 
[ebuild  N    ] x11-libs/libXtst-1.0.1  USE="-debug" 0 kB 
[ebuild  N    ] x11-proto/printproto-1.0.3  USE="-debug" 0 kB 
[ebuild  N    ] x11-libs/libXp-1.0.0  USE="-debug" 0 kB 
[ebuild  N    ] dev-java/sun-jdk-1.5.0.08  USE="X alsa nsplugin -doc -examples -jce" 0 kB 
[ebuild  N    ] virtual/jdk-1.5.0  0 kB 
[ebuild  N    ] virtual/jre-1.5.0  0 kB 
[ebuild  N    ] sys-libs/db-4.3.29-r2  USE="java -bootstrap -doc -nocxx -tcl -test" 0 kB 
[ebuild  N    ] sys-devel/libperl-5.8.8-r1  USE="berkdb gdbm -debug -ithreads" 0 kB 
[ebuild  N    ] dev-lang/perl-5.8.8-r2  USE="berkdb gdbm -build -debug -doc -ithreads -perlsuid" 0 kB 
[ebuild  N    ] sys-devel/autoconf-2.60  USE="-emacs" 1,334 kB 
[ebuild  N    ] sys-devel/automake-1.5  514 kB 
[ebuild  N    ] perl-core/Test-Harness-2.62  0 kB 
[ebuild  N    ] app-admin/perl-cleaner-1.04.3  0 kB 
[ebuild  N    ] perl-core/PodParser-1.34  0 kB 
[ebuild  N    ] sys-devel/autoconf-2.13  433 kB 
[ebuild  N    ] sys-devel/autoconf-wrapper-3.2-r2  0 kB 
[ebuild  N    ] sys-devel/automake-1.6.3  0 kB 
[ebuild  N    ] sys-devel/automake-1.7.9-r1  0 kB 
[ebuild  N    ] sys-devel/automake-1.4_p6  0 kB 
[ebuild  N    ] sys-devel/automake-wrapper-1-r1  0 kB 
[ebuild  N    ] sys-devel/automake-1.9.6-r2  0 kB 
[ebuild  N    ] dev-libs/mpfr-2.2.0_p14  0 kB 
[ebuild  N    ] sys-devel/gcc-4.1.1-r1  USE="fortran gtk nls (-altivec) -bootstrap -build -doc -gcj (-hardened) -ip28 -ip32r10k -mudflap (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 0 kB 
[ebuild  N    ] sys-libs/timezone-data-2006k  0 kB 
[ebuild  N    ] sys-libs/glibc-2.4-r3  USE="nls nptl nptlonly profile -build -glibc-omitfp -hardened (-multilib) (-selinux)" 0 kB 
[ebuild  N    ] dev-libs/libol-0.3.18  337 kB 
[ebuild  N    ] sys-apps/tcp-wrappers-7.6-r8  USE="-ipv6" 0 kB 
[ebuild  N    ] sys-devel/flex-2.5.33-r1  USE="nls -static" 0 kB 
[ebuild  N    ] app-admin/syslog-ng-1.6.11  USE="tcpd -hardened (-selinux) -static" 0 kB 
Total size of downloads: 37,878 kB
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2006-09-27 06:17:06 UTC
Seems like syslog-ng secretly depends on some virtual/cron.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2006-09-27 07:22:23 UTC
(In reply to comment #5)
> Seems like syslog-ng secretly depends on some virtual/cron.
> 

Sorry, that's just silly. But this might be helpful:

cd /var/tmp/portage; diff -u syslog-ng-*/work/syslog-ng*/src/syslog-names.c
--- syslog-ng-1.6.11/work/syslog-ng-1.6.11/src/syslog-names.c   2006-09-27 15:54
:18.000000000 +0200
+++ syslog-ng-2.0_rc3/work/syslog-ng-2.0rc3/src/syslog-names.c  2006-06-12 10:42
:23.000000000 +0200
<snip>
+#ifdef LOG_CRON
+  {"cron", LOG_CRON},
 #endif
-       { "cron", LOG_CRON },
<snip>

Apparently something changed between 1.6* and 2.0*.

LOG_CRON is defined in /usr/include/sys/syslog.h, part of sys-libs/glibc.

Same goes for 1.6.9 as for 1.6.11, btw. And yet I still cannot reproduce this error on a similar system. Alexander: did you use the gcc upgrading guide[1]?

[1] http://www.gentoo.org/doc/en/gcc-upgrading.xml
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2006-09-27 08:42:41 UTC
LOG_CRON is defined in /usr/include/sys/syslog.h which is supplied by glibc.
Comment 8 Mr. Bones. (RETIRED) gentoo-dev 2006-10-11 11:45:41 UTC
I'm totally unable to reproduce this bug.  I've tried various combos of gcc and so on but it builds fine for me.  I'm going to close this with NEEDINFO but please reopen if the cause is determined.  Thanks.