Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77159 - qmail-1.03-r15 fails to compile
Summary: qmail-1.03-r15 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Michael Hanselmann (hansmi) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-08 12:43 UTC by Roel Brook
Modified: 2005-02-14 04:46 UTC (History)
2 users (show)

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


Attachments
The full log (4480-qmail-1.03-r15.log,30.83 KB, text/plain)
2005-01-08 12:44 UTC, Roel Brook
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roel Brook 2005-01-08 12:43:01 UTC
Title says it all...

While emerging mail-mta/qmail-1.03-r15, I get the following error:

./load qmail-qmtpd rcpthosts.o control.o constmap.o \
received.o date822fmt.o now.o qmail.o cdb.a fd.a wait.a \
datetime.a open.a getln.a sig.a case.a env.a stralloc.a \
alloc.a substdio.a error.a fs.a auto_qmail.o dns.o \
`cat dns.lib` ip.o ipalloc.o ipme.o byte_diff.o str.a
rcpthosts.o(.text+0x25f): In function `rcpthosts':
: undefined reference to `ipme_is'
collect2: ld gaf exit-status 1 terug
make: *** [qmail-qmtpd] Fout 1
make: *** Wachten op onafgeronde taken...
In file included from qmail-smtpd.c:590:
qmail-smtpd.c: In function `smtp_rcpt':
qmail-smtpd.c:115: let op: doorgeven van argument 1 van `out' laat qualifiers van doeltype van pointer vallen

r13 compiles fine.

Reproducible: Always
Steps to Reproduce:
1. emerge qmail (in ~x86 branch)

Actual Results:  
Compile error

Expected Results:  
Clean compile

Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0,
2.6.10-nitro2 i686)
=================================================================
System uname: 2.6.10-nitro2 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Nov 24 2004, 18:21:57)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.8.5-r2, 1.6.3, 1.9.3, 1.5, 1.7.9
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -mmmx -msse -m3dnow
-mfpmath=sse,387 -ffast-math"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/fax /usr/share/config /var/qmail/alias
/var/qmail/control /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -mmmx -msse -m3dnow
-mfpmath=sse,387 -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://gd.tuwien.ac.at/opsys/linux/gentoo/
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LDFLAGS=""
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib acl alsa apache2 apm arts audiofile avi bitmap-fonts
bzlib calender cdparanoia cdr chroot crypt cups dba directfb divx4linux dvd dvdr
encode esd fam filepro flac foomaticdb fortran gd gdbm gif gnome gphoto2 gpm
gstreamer gtk gtk2 guile imagemagick imlib insecure-drivers java jpeg jpeg2k
junit kde ldap libwww live mad mikmod mime mmx motif mpeg msn mysql ncurses nls
nptl odbc offensive oggvorbis ooo-kde opengl pam pdflib perl pic png postgres
python qmail qt quicktime readline real rplay samba scanner sdk sdl session
sftplogging slang softmmu speex spell sse ssl stroke svga tcltk tcpd threads
tiff truetype truetype-fonts type1-fonts usb userlocales wmf xine xinerama xml
xml2 xmms xprint xscreensaver xv xvid zlib video_cards_nvidia linguas_nl"
Comment 1 Roel Brook 2005-01-08 12:44:23 UTC
Created attachment 47959 [details]
The full log
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-01-08 17:54:56 UTC
hansmi: this is due to one of your patch changes I think.
Comment 3 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-01-09 05:32:54 UTC
There was an error in the dependencies in my patch (Makefile-relaymxlookup.patch). Sorry for this, it's now fixed in CVS. Could you test it, please?
Comment 4 Roel Brook 2005-01-09 15:41:11 UTC
no problem at all. When users want to use ~arch packages, they shouldn't be surprised if something fails to compile. That's the risk you take for being a tester :).

Thanks for the quick response, r15 compiles fine now.

When running qmail, I get:
Error in logging setup!
No CDB file found ()
Some error detected, sleeping for 30 seconds for safety
SERVICE(qmqp), QMAILDUID(201), NOFILESGID(200) or QMAILLUID() is unset in ./run
Error in logging setup!
No CDB file found ()
Some error detected, sleeping for 30 seconds for safety
SERVICE(qmtp), QMAILDUID(201), NOFILESGID(200) or QMAILLUID() is unset in ./run
Error in logging setup!
No CDB file found ()
Some error detected, sleeping for 30 seconds for safety
SERVICE(send), QMAILDUID(201), NOFILESGID(200) or QMAILLUID() is unset in ./run
Error in logging setup!
Some error detected, sleeping for 30 seconds for safety
SERVICE(smtp), QMAILDUID(201), NOFILESGID(200) or QMAILLUID() is unset in ./run
Error in logging setup!
No CDB file found ()
Some error detected, sleeping for 30 seconds for safety

This might be a problem with my setup.

I did ebuild ... config
rm /etc/tcp.*
all files in /etc/tcprules.d/ are present.

Should I make a seperate report for this?
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-01-09 16:18:23 UTC
please run the emerge again, i've put in a new config-sanity-check that is more verbose on the source of an error.
Also, when it completes, make sure you run etc-update and accept or merge ALL of changes to stuff in /var/qmail/control/config-* !
Comment 6 Roel Brook 2005-01-10 05:54:54 UTC
The more verbose error message is:

SERVICE(qmqp), QMAILDUID(201), NOFILESGID(200) or QMAILLUID() is unset in ./run
LOG_OPTS: 
LOG_DEST: 
Error in logging setup!
No CDB file found ()
Some error detected in qmqp, sleeping for 90 seconds for safety
SERVICE(send), QMAILDUID(201), NOFILESGID(200) or QMAILLUID() is unset in ./run
LOG_OPTS: 
LOG_DEST: /var/log/qmail/qmail-send
Error in logging setup!
Some error detected in send, sleeping for 90 seconds for safety
SERVICE(smtp), QMAILDUID(201), NOFILESGID(200) or QMAILLUID() is unset in ./run
LOG_OPTS: 
LOG_DEST: 
Error in logging setup!
No CDB file found ()
Some error detected in smtp, sleeping for 90 seconds for safety
SERVICE(pop3), QMAILDUID(201), NOFILESGID(200) or QMAILLUID() is unset in ./run
LOG_OPTS: 
LOG_DEST: 
Error in logging setup!
No CDB file found ()
Some error detected in pop3, sleeping for 90 seconds for safety

The directory /var/log/qmail does exist.

The contents of /var/qmail/control are merged, according to etc-update (and that dir is in CONFIG_PROTECT)

Comment 7 Roel Brook 2005-01-10 15:55:23 UTC
Adding

QMAILLUID=`id -u qmaild`

to /var/qmail/control/conf-common seemed to solve the "SERVICE(smtp), QMAILDUID(201), NOFILESGID(200) or QMAILLUID() is unset in ./run" error

Still getting the "No CDB" error.
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-01-10 16:17:17 UTC
That QMAILLUID=`id -u qmaild` should have been there already. This indicates something isn't up to date, probably an etc-update screwup.

These are the CVS headers that should be in the files:
(grep Header /var/qmail/control/conf-*)
conf-common:# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail/files/conf-common,v 1.2 2004/07/18 03:29:51 dragonheart Exp $
conf-pop3d:# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail/files/conf-pop3d,v 1.2 2004/07/18 03:29:51 dragonheart Exp $
conf-qmqpd:# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail/files/conf-qmqpd,v 1.2 2004/07/18 03:29:51 dragonheart Exp $
conf-qmtpd:# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail/files/conf-qmtpd,v 1.2 2004/07/18 03:29:51 dragonheart Exp $
conf-send:# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail/files/conf-send,v 1.2 2004/07/18 03:29:51 dragonheart Exp $
conf-smtpd:# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail/files/conf-smtpd,v 1.3 2005/01/03 21:31:33 hansmi Exp $

for the moment, please try:
/etc/init.d/svscan stop
mv /var/qmail/control /var/qmail/control.old
emerge qmail
ebuild ... config (or copy over the files VERY carefully).
Comment 9 Roel Brook 2005-01-10 16:19:25 UTC
Adding

TCPSERVER_RULESCDB="/etc/tcprules.d/tcp.qmail-xxxx.cdb"

to /var/qmail/control/xxxxd.conf solved the CDB not found.

Error remaining:

LOG_DEST: 
Error in logging setup!
Some error detected in qmqp, sleeping for 90 seconds for safety
LOG_OPTS: 
LOG_DEST: 
Error in logging setup!
Some error detected in qmtp, sleeping for 90 seconds for safety
LOG_OPTS: 
LOG_DEST: /var/log/qmail/qmail-send
Error in logging setup!
Some error detected in send, sleeping for 90 seconds for safety
LOG_OPTS: 
LOG_DEST: 
Error in logging setup!
Some error detected in smtp, sleeping for 90 seconds for safety
LOG_OPTS: 
LOG_DEST: 
Error in logging setup!
Some error detected in pop3, sleeping for 90 seconds for safety
Comment 10 Roel Brook 2005-01-10 16:20:16 UTC
root@Medusa# grep Header /var/qmail/control/conf-*         (/var/qmail/control)
/var/qmail/control/conf-common:# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail/files/1.03-r13/conf-common,v 1.2 2004/07/18 03:29:51 dragonheart Exp $
/var/qmail/control/conf-pop3d:# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail/files/1.03-r13/conf-pop3d,v 1.2 2004/07/18 03:29:51 dragonheart Exp $
/var/qmail/control/conf-qmqpd:# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail/files/1.03-r13/conf-qmqpd,v 1.2 2004/07/18 03:29:51 dragonheart Exp $
/var/qmail/control/conf-qmtpd:# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail/files/1.03-r13/conf-qmtpd,v 1.2 2004/07/18 03:29:51 dragonheart Exp $
/var/qmail/control/conf-send:# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail/files/conf-send,v 1.2 2004/07/18 03:29:51 dragonheart Exp $
/var/qmail/control/conf-smtpd:# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail/files/conf-smtpd,v 1.3 2005/01/03 21:31:33 hansmi Exp $


seems good
Comment 11 Roel Brook 2005-01-10 16:25:57 UTC
--------
/etc/init.d/svscan stop
mv /var/qmail/control /var/qmail/control.old
emerge qmail
ebuild ... config (or copy over the files VERY carefully).
--------

this solved it!! thanks

I'll leave the bug open for reassignment for a fix in etc-update (or wherever this should be fixed)

Thanks both for your responses!
Comment 12 Roel Brook 2005-02-14 04:46:04 UTC
closing this bug.

I don't know if this is still reproducable. There have been 2 updates in portage, so I think (hope) this is fixed now.

Thank you!