Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67411 - Emerging cyrus-imapd failed due to a lack of a perl module
Summary: Emerging cyrus-imapd failed due to a lack of a perl module
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL: http://www.totalgeek.us/cyrus-imapd-e...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-13 09:31 UTC by James T. Richardson, Jr.
Modified: 2004-11-09 13:49 UTC (History)
1 user (show)

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


Attachments
/var/tmp/portage/cyrus-imapd-2.2.8/work/cyrus-imapd-2.2.8/config.log (config.log,95.88 KB, text/plain)
2004-10-13 11:31 UTC, James T. Richardson, Jr.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James T. Richardson, Jr. 2004-10-13 09:31:42 UTC
Emerging cyrus-imapd failed due to a lack of a perl module,

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 -lm -rdynamic -L/usr/local/lib /usr/lib/perl5/5.8.2/i686-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.2/i686-linux/CORE -lperl -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc -lssl -lcrypto   -lfl  -lresolv   -ldb-4.2 ../et/libcom_err.a
gcc: /usr/lib/perl5/5.8.2/i686-linux/auto/DynaLoader/DynaLoader.a: No such file or directory


I have a DynaLoader.1 in /usr/lib/perl5/5.8.5, but not in /usr/lib/perl5/5.8.2, and i dont know where it is getting that path.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Tuan Van (RETIRED) gentoo-dev 2004-10-13 11:06:31 UTC
please provide these:
`emerge info` output.
`emerge cyrus-imapd -pv` output.
attach /var/tmp/portage/cyrus-imapd-*/work/cyrus-imapd*/config.log as plaintext
Comment 2 James T. Richardson, Jr. 2004-10-13 11:26:42 UTC
emerge info:

Portage 2.0.51_rc9 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20041006-r0, 2.6.8-gentoo-r7.tkf.testing i686)
=================================================================
System uname: 2.6.8-gentoo-r7.tkf.testing i686 Intel(R) Pentium(R) 4 CPU 2.26GHz
Gentoo Base System version 1.5.3
ccache version 2.3 [enabled]
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 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib alsa apache2 apm arts avi berkdb bitmap-fonts bonobo bootsplash bundled-libs bzlib calendar cdr crypt cups curl curlwrappers dba domxml dvd encode esd evo exif f77 fam flac flash flatfile foomaticdb freetype ftp gd gd-external ggi gif gimp gimpprint gnome gnomedb gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile iconv imagemagick imap imlib inifile innodb java javacomm javadoc javamail jikes jpeg kde ldap libg++ libgda libwww lm_sensors mad mhash mikmod mime ming mmap mmx mng motif mozcalendar mozdevelop mozilla moznocompose moznoirc moznomail mozsvg mozxmlterm mpeg mplayer mysql nas ncurses nls nntp odbc offensive oggvorbis opengl oss pcre pda pdflib perl pic png postgres python qt quicktime readline ruby samba sasl scanner sdl session slang snmp soap sockets spell sse ssl svg svga tcltk tcpd tetex tidy tiff tokenizer truetype usb vhosts wmf wxwindows x86 xerces xine xml xml2 xmlrpc xmms xpm xprint xsl xv zlib video_cards_i810"
Comment 3 James T. Richardson, Jr. 2004-10-13 11:27:42 UTC
 emerge cyrus-imapd -pv

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

Calculating dependencies ...done!
[ebuild  N    ] net-mail/cyrus-imapd-2.2.8  -afs -drac -kerberos -pam +snmp +ssl +tcpd 0 kB
Comment 4 James T. Richardson, Jr. 2004-10-13 11:31:06 UTC
Created attachment 41747 [details]
/var/tmp/portage/cyrus-imapd-2.2.8/work/cyrus-imapd-2.2.8/config.log

the output of the emerge of cyrus-imapd is found at:

http://www.totalgeek.us/cyrus-imapd-emerge.txt
Comment 5 James T. Richardson, Jr. 2004-10-13 12:31:55 UTC
I got this package emerged by doing the following:

ACCEPT_KEYWORDS="" USE="-snmp -ssl -tcpd" emerge cyrus-imapd
Comment 6 Tuan Van (RETIRED) gentoo-dev 2004-10-13 12:59:01 UTC
It still need to be fixed. I you can, please provide the output of `portageq best_version / virtual/snmp`. I think your virtual/snmp packages has been built with perl-5.8.2 and it hardcode into to the /usr/bin/net-snmp-config file. The cyrus-imapd configure script use `/usr/bin/net-snmp-config --agent-libs` to get the library path and it points to the old one.
try:
# /usr/bin/net-snmp-config --agent-libs
to see for yourself.

Please try `emerge --oneshot net-snmp; emerge cyrus-imapd` with the `snmp' USE flag to see if it works.

perl team, please comment.
Comment 7 James T. Richardson, Jr. 2004-10-13 13:11:56 UTC
actually, USE="-snmp" fixes that problem, although the problem exists still with +snmp
Comment 8 James T. Richardson, Jr. 2004-10-13 13:39:07 UTC
You are correct:

# /usr/bin/net-snmp-config --agent-libs
-L/usr/lib -lnetsnmpagent -lnetsnmpmibs -lnetsnmphelpers -lnetsnmp -ldl -lz -lcrypto -lm -rdynamic -L/usr/local/lib /usr/lib/perl5/5.8.2/i686-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.2/i686-linux/CORE -lperl -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc

# portageq best_version / virtual/snmp
net-analyzer/net-snmp-5.1.1-r1



My guess is that this needs to be fixed in net-analyzer/net-snmp, is it seem[ed] to hardcode the perl path in it's test script when it installed it.

After I re-emerged net-snmp, `/usr/bin/net-snmp-config --agent libs` reported:
# /usr/bin/net-snmp-config --agent-libs
-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


Which, while it has the correct path, when the time comes to upgrade perl again, it will break again has it has the full path hardcoded here.

Comment 9 Jason Wever (RETIRED) gentoo-dev 2004-10-22 15:52:05 UTC
Does cyrus-imapd need net-snmp-config if the snmp useflag isn't set?  Currently the check at the top of the ebuild will cause the emerge to fail even if the snmp useflag isn't set.

Also, if net-snmp was built with the minimal useflag, net-snmp-config will not exist on the system.  Might want to add this to the text spit out in the failure.
Comment 10 Tuan Van (RETIRED) gentoo-dev 2004-10-23 17:58:00 UTC
weeve, please cvs up and try again. Thanks.
Comment 11 Tuan Van (RETIRED) gentoo-dev 2004-11-09 13:49:57 UTC
closing.