A fresh install of net-im/jabberd-1.6.1.1-r1 fails to start when built with newest sys-libs/glibc-2.11.2-r3 because of missing crypt symbol in /usr/lib/libjabberdsm.so Reproducible: Always Steps to Reproduce: jabberserver ~ # /etc/init.d/jabber start Actual Results: The following appears on the terminal: * Starting Jabber Server ... [ ok ] jabberserver ~ # Loading /usr/lib/libjabberdsm.so failed: '/usr/lib/libjabberdsm.so: undefined symbol: crypt' Invalid configuration in instance 'sessions.#####: <load xmlns='http://jabberd.org/ns/configfile' main='jsm'> <jsm>/usr/lib/libjabberdsm.so</jsm> <mod_privacy>/usr/lib/libjabberdsm.so</mod_privacy> <mod_stat>/usr/lib/libjabberdsm.so</mod_stat> <mod_echo>/usr/lib/libjabberdsm.so</mod_echo> <mod_roster>/usr/lib/libjabberdsm.so</mod_roster> <mod_time>/usr/lib/libjabberdsm.so</mod_time> <mod_vcard>/usr/lib/libjabberdsm.so</mod_vcard> <mod_last>/usr/lib/libjabberdsm.so</mod_last> <mod_version>/usr/lib/libjabberdsm.so</mod_version> <mod_announce>/usr/lib/libjabberdsm.so</mod_announce> <mod_browse>/usr/lib/libjabberdsm.so</mod_browse> <mod_disco>/usr/lib/libjabberdsm.so</mod_disco> <mod_admin>/usr/lib/libjabberdsm.so</mod_admin> <mod_offline>/usr/lib/libjabberdsm.so</mod_offline> <mod_ping>/usr/lib/libjabberdsm.so</mod_ping> <mod_presence>/usr/lib/libjabberdsm.so</mod_presence> <mod_useridpolicy>/usr/lib/libjabberdsm.so</mod_useridpolicy> <mod_auth_digest>/usr/lib/libjabberdsm.so</mod_auth_digest> <mod_log>/usr/lib/libjabberdsm.so</mod_log> <mod_register>/usr/lib/libjabberdsm.so</mod_register> <mod_xml>/usr/lib/libjabberdsm.so</mod_xml> </load> The jabberd process dies. This appears to be a consequence of not linking to the -lcrypt library. Applying the attached patch solves the problem.
Created attachment 254157 [details, diff] Adds -lcrypt to the linker flags
The correct place is the end of LIBADD, not LDFLAGS.
Isn't anybody interested in fixing this? It'd nice to have my /usr/local/portage cleaned after a year :)
Created attachment 291533 [details, diff] Adds -lcrypt to the linker flags -lcrypt moved from LDFLAGS to LIBADD as suggested in comment #2
Created attachment 291535 [details, diff] Adds -lcrypt to the linker flags Reversed patch direction.
done, in -underlinking.patch: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/jabberd/files/jabberd-1.6.1.1-underlinking.patch?r1=1.1&r2=1.2