Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68254 - net-mail/cyrus-imapd-2.2.8-r1 build failed with USE="snmp"
Summary: net-mail/cyrus-imapd-2.2.8-r1 build failed with USE="snmp"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-20 02:44 UTC by Csaba Tóth
Modified: 2004-11-09 13:48 UTC (History)
0 users

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


Attachments
${FILESDIR}/cyrus-imapd-2.2.8-libwrap.patch (cyrus-imapd-2.2.8-libwrap.patch,390 bytes, patch)
2004-10-20 13:04 UTC, Tuan Van (RETIRED)
Details | Diff
new ebuild (cyrus-imapd-2.2.8-r1.ebuild,7.18 KB, text/plain)
2004-10-20 13:05 UTC, Tuan Van (RETIRED)
Details
the config.log with your ebuild script (config.log,100.62 KB, text/plain)
2004-10-20 15:04 UTC, Csaba Tóth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Csaba Tóth 2004-10-20 02:44:12 UTC
when i try to build the cyrus-imapd-2.2.8-r1 and the 2.2.8 version with snmp support, it fails:

gcc  -o master master.o masterconf.o cyrusMasterMIB.o ../lib/lock_fcntl.o ../lib/libcyrus_min.a -L/usr/lib -lnetsnmpagent -lnetsnmpmibs -lnetsnmphelpers -lnetsnmp -ldl -lz -lcrypto -lelf -lm -rdynamic -L/usr/local/lib /usr/lib/perl5/5.8.5/i686-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.5/i686-linux/CORE -lperl -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc -lssl -lcrypto   -lfl  -lresolv   -ldb-4.2 ../et/libcom_err.a
/usr/lib/libnetsnmpagent.so: undefined reference to `hosts_ctl'
collect2: ld returned 1 exit status
make[1]: *** [master] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/cyrus-imapd-2.2.8-r1/work/cyrus-imapd-2.2.8/master'
make: *** [all] Error 1

!!! ERROR: net-mail/cyrus-imapd-2.2.8-r1 failed.
!!! Function src_compile, Line 134, Exitcode 2
!!! compile problem
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1. USE="-afs drac -kerberos pam snmp ssl -tcpd" emerge =cyrus-imapd-2.2.8-r1




mars ~ # emerge info
Portage 2.0.51_rc10 (hardened/x86/2.6, gcc-3.4.2, glibc-2.3.4.20041006-r0,
2.6.6-1.435.2.3 i686)
=================================================================
System uname: 2.6.6-1.435.2.3 i686 Intel(R) Celeron(R) CPU 2.60GHz
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -mtune=pentium4 -mfpmath=sse -fPIC -pipe
-fomit-frame-pointer -msse -mmmx"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -mtune=pentium4 -mfpmath=sse -fPIC -pipe
-fomit-frame-pointer -msse -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks fixpackages sandbox"
GENTOO_MIRRORS="http://gentoo.mirror.icd.hu/ ftp://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="aac accounting acl acpi acpi4linux apache2 apm bcmath berkdb bzlib calendar
cdparanoia cdr cdrom clamac clamav crypt ctype curl curlwrappers dba dbase dbm
devfs devfs26 dio dlloader dv dvb dvd dvdr dvdread encode erandom exif f77 fam
freetype fs ftp gcj gd gdbm geoip gif gmp gnutls guile hal hardened iconv image
imagemagick imap inifile innodb intl java javascript jikes jpeg jpeg2k junit
ldap lesstif libg++ libwww live lm_sensors lzo lzw lzw-tiff mcal memlimit mhash
mime mmap mmx mmx2 mng mp3 mpeg mpeg4 mysql ncurses nethack network nls nptl
ntlm objc odbc oggvorbis openal openssh pam parse-clocks pcap pcntl pcre pdf
pdflib perl pic pie png pnp posix postgres pthreads pwdb python readline recode
samba sasl shared sharedmem simplexml skey slang smime sms snmp sockets spell
squid sse ssl svg sysvipc tcltk tcpd threads tiff transcode truetype type1
unicode usb userlocales virus-scan wmf x86 xfs xinetd xml xml2 xmlrpc xpm zlib"
Comment 1 Aaron Walker (RETIRED) gentoo-dev 2004-10-20 05:08:09 UTC
This looks very similar to bug #67411 ; looks like its failing on the line after.
Don't know if they are the same are not, so I'll let you net-mail guys decide if its a dupe.
Comment 2 Csaba Tóth 2004-10-20 05:22:06 UTC
No, it isn't the same problem.
My problem is with the snmp code, if i USE="-snmp", it will be build correctly.
Comment 3 Tuan Van (RETIRED) gentoo-dev 2004-10-20 11:28:08 UTC
Please attach config.log, out put of `emerge cyrus-imapd -vp` and `emerge net-snmp -vp`
Comment 4 Tuan Van (RETIRED) gentoo-dev 2004-10-20 13:04:00 UTC
Created attachment 42263 [details, diff]
${FILESDIR}/cyrus-imapd-2.2.8-libwrap.patch

please copy the atached patch to ${FILESDIR}, and try the new ebuild (to be
followed), then report back. Thanks.
Comment 5 Tuan Van (RETIRED) gentoo-dev 2004-10-20 13:05:45 UTC
Created attachment 42264 [details]
new ebuild
Comment 6 Csaba Tóth 2004-10-20 15:03:08 UTC
ok, i try it, but it won't working
the problem still exists

Here is what you had requested (the config.log is attached next):

mars files # USE="drac snmp -tcpd" emerge cyrus-imapd -pv

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] net-mail/cyrus-imapd-2.2.8-r1 [2.2.8] -afs +drac -kerberos +pam +snmp* +ssl -tcpd 0 kB

Total size of downloads: 0 kB

mars files # emerge net-snmp -pv

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] net-analyzer/net-snmp-5.1.1-r1  -X -ipv6 +lm_sensors -minimal +perl +ssl +tcpd 0 kB

Total size of downloads: 0 kB

Comment 7 Csaba Tóth 2004-10-20 15:04:29 UTC
Created attachment 42274 [details]
the config.log with your ebuild script
Comment 8 Tuan Van (RETIRED) gentoo-dev 2004-10-20 15:19:03 UTC
the problem is you build net-analyzer/net-snmp with +tcpd then try to build net-mail/cyrus-imapd with +snmp -tcpd. I don't know it that is possible.
Comment 9 Csaba Tóth 2004-10-20 15:40:59 UTC
so i should try to rebuild the snmp with -tcpd?
Comment 10 Tuan Van (RETIRED) gentoo-dev 2004-10-20 15:49:55 UTC
If you willing, please do and report back. In the mean time I am compiling net-snmp-5.1.2 to see if it solves your problem.
Comment 11 Csaba Tóth 2004-10-20 15:58:58 UTC
i had tried it, and it is solved the problem.

USE="-tcpd" emerge net-snmp
USE="snmp -tcpd" emerge cyrus-imapd

but what will be the final solution?
Comment 12 Tuan Van (RETIRED) gentoo-dev 2004-10-20 16:09:29 UTC
For now, just remember to sync your tcpd USE flag for both net-snmp and cyrus-imapd. That is if you want tcpwarpper then add tcpd to make.conf or /etc/portage/package.use otherwise add a -tcpd. Hope fully we can come up with something better to solve this problem.
Comment 13 Csaba Tóth 2004-10-20 16:18:00 UTC
maybe can you add this info to a comment? or just i am so stupid to build the snmp with tcpd param and the cyrus-imapd without the tcpd param?
/anyway what will the tcpd (tcp wrapper) do?/
Comment 14 Tuan Van (RETIRED) gentoo-dev 2004-10-20 16:50:54 UTC
> anyway what will the tcpd (tcp wrapper) do?
see http://www.gentoo.org/doc/en/gentoo-security.xml#doc_chap9
man 8 tcpd
man 5 hosts_access
Comment 15 Csaba Tóth 2004-10-21 03:24:54 UTC
thanks:)

so i tried to rebuild them, and it worked with your patch and new ebuild:

USE="tcpd snmp" emerge net-snmp cyrus-imapd

now i try to do a `emerge sync` and rebuild the cyrus-imapd to see if the current ebuild script is ok or not.
Comment 16 Csaba Tóth 2004-10-21 07:38:30 UTC
ok, the ebuild script which is currently in the portage system is correct about this fact.
Comment 17 Tuan Van (RETIRED) gentoo-dev 2004-11-09 13:48:45 UTC
I believe this issue has been fixed.