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"
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.
No, it isn't the same problem. My problem is with the snmp code, if i USE="-snmp", it will be build correctly.
Please attach config.log, out put of `emerge cyrus-imapd -vp` and `emerge net-snmp -vp`
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.
Created attachment 42264 [details] new ebuild
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
Created attachment 42274 [details] the config.log with your ebuild script
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.
so i should try to rebuild the snmp with -tcpd?
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.
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?
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.
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?/
> 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
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.
ok, the ebuild script which is currently in the portage system is correct about this fact.
I believe this issue has been fixed.