Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184814 - app-admin/syslog-ng-2.0.4 fails compile due to unterminated string in config.h
Summary: app-admin/syslog-ng-2.0.4 fails compile due to unterminated string in config.h
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Mr. Bones. (RETIRED)
URL:
Whiteboard:
Keywords:
: 200818 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-10 09:44 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2007-12-03 08:20 UTC (History)
1 user (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 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2007-07-10 09:44:49 UTC
<==========================The Error ===========>
make  all-recursive
make[1]: Entering directory `/tmp/..var/portage/app-admin/syslog-ng-2.0.4/work/syslog-ng-2.0.4'
Making all in src
make[2]: Entering directory `/tmp/..var/portage/app-admin/syslog-ng-2.0.4/work/syslog-ng-2.0.4/src'
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/eventlog   -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -O2 -march=i686 -mtune=athlon-xp -pipe -ggdb3 -gstabs3 -Wall -g -c `test -f 'misc.c' || echo './'`misc.c
In file included from syslog-ng.h:27,
                 from misc.h:27,
                 from misc.c:24:
../config.h:146:28: warning: missing terminating " character
../config.h:149:25: warning: missing terminating " character
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/eventlog   -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -O2 -march=i686 -mtune=athlon-xp -pipe -ggdb3 -gstabs3 -Wall -g -c `test -f 'utils.c' || echo './'`utils.c
In file included from utils.c:24:
../config.h:146:28: warning: missing terminating " character
../config.h:149:25: warning: missing terminating " character
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/eventlog   -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -O2 -march=i686 -mtune=athlon-xp -pipe -ggdb3 -gstabs3 -Wall -g -c `test -f 'messages.c' || echo './'`messages.c
In file included from ./syslog-ng.h:27,
                 from messages.h:27,
                 from messages.c:24:
../config.h:146:28: warning: missing terminating " character
../config.h:149:25: warning: missing terminating " character
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/eventlog   -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -O2 -march=i686 -mtune=athlon-xp -pipe -ggdb3 -gstabs3 -Wall -g -c `test -f 'syslog-names.c' || echo './'`syslog-names.c
In file included from syslog-ng.h:27,
                 from syslog-names.h:27,
                 from syslog-names.c:24:
../config.h:146:28: warning: missing terminating " character
../config.h:149:25: warning: missing terminating " character
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/eventlog   -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -O2 -march=i686 -mtune=athlon-xp -pipe -ggdb3 -gstabs3 -Wall -g -c `test -f 'cfg.c' || echo './'`cfg.c
In file included from syslog-ng.h:27,
                 from cfg.h:27,
                 from cfg.c:24:
../config.h:146:28: warning: missing terminating " character
../config.h:149:25: warning: missing terminating " character
cfg.c: In function 'persist_config_save':
cfg.c:546: error: missing terminating " character
cfg.c:559: error: missing terminating " character
cfg.c: In function 'persist_config_load':
cfg.c:570: error: missing terminating " character
cfg.c:578: error: missing terminating " character
make[2]: *** [cfg.o] Error 1
make[2]: Leaving directory `/tmp/..var/portage/app-admin/syslog-ng-2.0.4/work/syslog-ng-2.0.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/..var/portage/app-admin/syslog-ng-2.0.4/work/syslog-ng-2.0.4'
make: *** [all] Error 2
 *
 * ERROR: app-admin/syslog-ng-2.0.4 failed.
 * Call stack:
 *   ebuild.sh, line 1642:   Called dyn_compile
 *   ebuild.sh, line 988:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   syslog-ng-2.0.4.ebuild, line 43:   Called die
 *
 * emake failed
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/app-admin:syslog-ng-2.0.4:20070710-091638.log'.
 *
<++++++++++++++++Stuff+++++++++++++++>

I look in config.h and see this

--
/* Define to the full name and version of this package. */
#define PACKAGE_STRING ""

/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME ""

/* Define to the version of this package. */
#define PACKAGE_VERSION ""

/* local state directory */
#define PATH_LOCALSTATEDIR "SHA      test passed!

/* sysconfdir */
#define PATH_SYSCONFDIR "SHA      test passed!

/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1

/* Define to 1 if your <sys/time.h> declares `struct tm'. */
/* #undef TM_IN_SYS_TIME */
--
Which when simply _CLOSED_ makes it compile happy as a lark.

The cause in the config.log 

#define HAVE_GETADDRINFO 1
#define HAVE_GETUTENT 1
#define ENABLE_TCP_WRAPPER 1
#define PATH_SYSCONFDIR "SHA      test passed!
MD5      test passed!
MD2      test passed!
MD4      test passed!
RIPEMD   test passed!
HMAC     test passed!
ARC4     test passed!
DES      test passed!
AES      test passed!
Twofish  test passed!
Blowfish test passed!
where's your certs dir?/etc/syslog-ng"
#define PATH_LOCALSTATEDIR "SHA      test passed!
MD5      test passed!
MD2      test passed!
MD4      test passed!
RIPEMD   test passed!
HMAC     test passed!
ARC4     test passed!
DES      test passed!
AES      test passed!
Twofish  test passed!
Blowfish test passed!
where's your certs dir?/var/lib"
#define ENABLE_SUN_STREAMS 0
#define ENABLE_SUN_DOOR 0
#define ENABLE_DEBUG 0

Broke the problem down to these lines in configure.in

patheval()
{
        OLD=$1
        NEW=`eval echo $1`
        while /usr/bin/test "x$OLD" != "x$NEW"
        do
                OLD=$NEW
                NEW=`eval echo $OLD`
        done
        echo $OLD
}


AC_DEFINE_UNQUOTED(PATH_SYSCONFDIR, "`patheval $sysconfdir`", [sysconfdir])
AC_DEFINE_UNQUOTED(PATH_LOCALSTATEDIR, "`patheval $localstatedir`", [local state directory])

through hand execution of that function, it returns the same results, ( via executing /usr/bin/test x ~= x which produces 

SHA      test passed!
MD5      test passed!
MD2      test passed!
MD4      test passed!
RIPEMD   test passed!
HMAC     test passed!
ARC4     test passed!
DES      test passed!
AES      test passed!
Twofish  test passed!
Blowfish test passed!
where's your certs dir?
)

I Dont know why they're being evaluated like that, what its  supposed to do, etc, so  I leave the rest in your capable hands

( possibly gcc4.2 + glib2.6 related, but emerge -eND system is making it turn up, goodness knows the real cause )

Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-07-10 09:52:36 UTC
Post your emerge --info please.
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2007-07-10 10:14:12 UTC
Sorry, initial comment was too long and I got distracted in a conversation.

Portage 2.1.3_rc6 (default-linux/x86/2007.0, gcc-4.2.0/vanilla, glibc-2.6-r0, 2.6.21-gentookz i686)
=================================================================
System uname: 2.6.21-gentookz i686 AMD Athlon(TM) XP 2000+
Gentoo Base System release 1.12.10
Timestamp of tree: Sun, 08 Jul 2007 01:00:02 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.3.6-r2, 2.4.4-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -mtune=athlon-xp -pipe -ggdb3 -gstabs3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/local/kdeextra/share/config /usr/local/kdeextra/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -mtune=athlon-xp -pipe -ggdb3 -gstabs3"
DISTDIR="/mnt/fission/distfiles/distfiles"
FEATURES="autoaddcvs cvs distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_AU.UTF-8"
LC_ALL="C"
LDFLAGS="-Wl,-O1,-z,combreloc,--sort-common,--enable-new-dtags"
LINGUAS="en_NZ en_GB en en_US"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/mysql-testing /usr/portage/local/layman/mysql-experimental /usr/portage/local/layman/enlightenment /usr/portage/local/layman/armagetron /usr/portage/local/layman/sunrise /usr/portage/local/layman/kde /usr/portage/local/layman/toolchain /usr/portage/local/layman/php-experimental /usr/portage/local/layman/php-testing /usr/local/portage /usr/src/musicbrainz-overlay_svn /usr/src/xgl/xgl-coffee"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
Comment 3 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2007-07-10 11:29:12 UTC
on further investigation, it seems to possibly be a problem with mysql-community, it appears that _IT_ is responsible for /usr/bin/test, instead of coreutils

[U] dev-db/mysql-community
     Installed versions:  5.1.15_beta(21:00:53 10/07/07)(-big-tables -cluster -debug -embedded extraengine innodb -latin1 -max-idx-128 -minimal -pbxt perl -selinux ssl -static)

After fixing this little dilemour, im away laughing. 

Sorry for the noise. ( maybe we should note mysql dev instead of coreutils/syslog-ng )
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2007-07-10 18:24:03 UTC
Yes, if dev-db/mysql-community installs a /usr/bin/test you should file a bug about that.  Glad it's working for you now.
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2007-12-03 08:20:45 UTC
*** Bug 200818 has been marked as a duplicate of this bug. ***