Making all in . make[3]: Entering directory `/var/tmp/portage/syslog-ng-1.6.8/work/syslog-ng-1.6.8/src' i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/syslog-ng-1.6.8/work/syslog-ng-1.6.8/src -I. -march=i686 -O2 -fomit-frame-pointer -pipe -Wall -I/usr/include/libol -D_GNU_SOURCE -c `test -f 'main.c' || echo '/var/tmp/portage/syslog-ng-1.6.8/work/syslog-ng-1.6.8/src/'`main.c main.c: In function `do_reread_config': main.c:91: error: `debug_flag' undeclared (first use in this function) main.c:91: error: (Each undeclared identifier is reported only once main.c:91: error: for each function it appears in.) main.c:95: warning: implicit declaration of function `notice' main.c: In function `main_loop': main.c:245: error: `debug_flag' undeclared (first use in this function) main.c:246: warning: implicit declaration of function `set_error_stream' main.c: In function `go_background': main.c:271: warning: implicit declaration of function `werror' main.c: In function `main': main.c:444: error: `debug_flag' undeclared (first use in this function) main.c:447: error: `verbose_flag' undeclared (first use in this function) make[3]: *** [main.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/syslog-ng-1.6.8/work/syslog-ng-1.6.8/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/syslog-ng-1.6.8/work/syslog-ng-1.6.8/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/syslog-ng-1.6.8/work/syslog-ng-1.6.8/src' make: *** [all-recursive] Error 1 !!! ERROR: app-admin/syslog-ng-1.6.8 failed. !!! Function src_compile, Line 32, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.51.22-r2 (hardened/x86/2.6, gcc-3.3.5-20050130, glibc-2.3.5-r0, 2.6.11-hardened-r15 i686) ================================================================= System uname: 2.6.11-hardened-r15 i686 Intel(R) Xeon(TM) CPU 3.00GHz Gentoo Base System version 1.6.12 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.10 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=i686 -O2 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=i686 -O2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_US.UTF-8" LC_ALL="" MAKEOPTS="-j1" PKGDIR="/usr/portage//packages/x86/" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage/" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apache2 bcmath bzlib cnamefix crypt curl curlwrappers dio dlloader ftp gd hardened hardenedphp iconv imap innodb java jpeg junit memlimit mhash mmx mysql ncurses nls no-suexec nptl nptlonly pam pcre perl pic png python qmail readline roundrobin sasl semanticfix session sharedext slang sockets spamassassin ssl symlink tcpd tiff truetype ucs2 unicode userlocales wddx x86 xml xml2 xsl zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS
re-emerge libol and flex correct this error. Strange behavior :-/