I tried to emerge qmail-ldap compilation stopped searching -lshadow Reproducible: Always Steps to Reproduce: 1.emerge sync 2.emerge -Du world 3. emerge qmail-ldap Actual Results: compilation stopped complaining about missing libraries ./load digest passwd.o digest_md4.o digest_md5.o digest_rmd160.o \ digest_sha1.o base64.o qldap-debug.o output.o getopt.a strerr.a \ substdio.a case.a env.a stralloc.a str.a fs.a alloc.a error.a \ -lcrypt -lshadow /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lshadow collect2: ld returned 1 exit status make: *** [digest] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: mail-mta/qmail-ldap-1.03-r4 failed. Expected Results: merging succesfully # emerge info Portage 2.0.51_rc4 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6.8-gentoo-r4 i686) ================================================================= System uname: 2.6.8-gentoo-r4 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.90GHz Gentoo Base System version 1.5.3 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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/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="-march=pentium4 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks sandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/home/" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="S3TC X X509 Xaw3d aalib acl acpi aim alsa apache2 apm async audiofile avi bcmath berkdb bidi bitmap-fonts blender-game bluetooth bonobo bootsplash bzlib cap caps cdb cddb cdf cdinstall cdparanoia cdr cdrom chroot cjk clanJavaScript clanVoice clearpasswd cnamefix codecs crypt cscope ctype cups curl curlwrappers dba dbcp dbx devfs26 dga dillo dio directfb distcache distribution divx4linux dnd dnsdb doc dts dv dvd dvdread editor edl encode erandom escreen esd ethereal evo extensions f77 faac faad fam fastcgi fbcon ffmpeg fftw flac flash flatfile flexresp fmod foomaticdb ftp fwdzone gb gcj gcl gd gdbm geoip ggi gif gimp gimpprint ginac glade glgd gmp gmtsuppl gnome gnutls gphoto2 gpm gps graphviz gs gsl gstreamer gtk gtk2 gtkhtml guile icq idea ieee1394 image imagemagick imap imlib imlib2 inifile innodb ipalias ipcs ipv6 ipv6arpa irmc j2ee jabber java javacomm javadoc javamail javascript jbig jboss jce jdepend jikes joystick jp2 jpeg jython kerberos krb4 lcms ldap leaf lesstif libcaca libg++ libgd libgda libsamplerate libwww live lzo lzw lzw-tiff mad maildir mailwrapper mcal md5sum memlimit mikmod miknod mime ming mixer mldonkeypango mmap mmx mng mono motif mozilla mpeg mpeg4 mpi mplayer msn multipleip music mysql nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses net netcdf network neural nls nntp nocd nptl ntlm objc odbc offensive ofx oggvorbis openal opengl optional-tasks oscar pam pcap pcmcia pcntl pda pdflib pear-db perl php physfs pic pie png pnp posix ppds prelude pthreads python qemu-fast qhull qt quicktime radeon readline roundrobin rtc ruby samba scanner sdl shaper shared sharedmem sheep silc simplexml skey slang slp sndfile snmp snortsam soap sockets socks5 softquota sox spamassassin speedo spell spl sse ssl stats stencil-buffer stroke svg svga sysvipc szip t1lib tcltk tcpd tcsim tetex tga theora tidy tiff timidity tokenizer tools transcode truetype trusted type1 uml unicode usb v4l v4l2 vda vhosts videos vim-with-x wifi wildlsearch wmf wxwin wxwindows x86 xatrix xchatdccserver xface xforms xfs xine xinerama xinetd xml xml2 xmlrpc xmms xprint xrandr xsl xv xvid yahoo yv12 zlib"
Created attachment 40486 [details, diff] Makefile Patch This Patch removes unused libshadow.so from linking against auth_* See bug 37725
Created attachment 40495 [details] ebuild for qmail that correct libshadow mislinking ebuild for qmail that correct libshadow mislinking
Please Test this. Patch corrects mislinkink see bug 37725
*** Bug 58070 has been marked as a duplicate of this bug. ***
*** Bug 97848 has been marked as a duplicate of this bug. ***
*** Bug 62526 has been marked as a duplicate of this bug. ***
Ok, I saw that in the shadow ebuild it have this: # Remove libshadow and libmisc; see bug 37725 and the following # comment from shadow's README.linux: # Currently, libshadow.a is for internal use only, so if you see # -lshadow in a Makefile of some other package, it is safe to # remove it. and it have: --enable-shared=no \ in the configure options. So, I just took the gentoo.patch for qmail-ldap and changed -#SHADOWLIBS=-lcrypt -lshadow -#SHADOWOPTS=-DPW_SHADOW +SHADOWLIBS=-lcrypt -lshadow +SHADOWOPTS=-DPW_SHADOW to: -#SHADOWLIBS=-lcrypt -lshadow -#SHADOWOPTS=-DPW_SHADOW +SHADOWLIBS=-lcrypt +#SHADOWOPTS=-DPW_SHADOW In order to omit the shadow linking (wich, according to the shadow ebuild, is not needed). By the way, this works on amd64. Hope this helps! Ildefonso Camargo.
(In reply to comment #7) > So, I just took the gentoo.patch for qmail-ldap and changed ... > In order to omit the shadow linking (wich, according to the shadow ebuild, is > not needed). Worked here to. > By the way, this works on amd64. Ditto.
fixed in qmail-ldap-1.03-r5