Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 345255 - net-im/jabberd-1.6.1.1-r1 fails to start
Summary: net-im/jabberd-1.6.1.1-r1 fails to start
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Net-im project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-13 02:12 UTC by Emil Wojak
Modified: 2012-05-19 14:44 UTC (History)
0 users

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


Attachments
Adds -lcrypt to the linker flags (jabberd-1.6.1.1-crypt.patch,717 bytes, patch)
2010-11-13 02:14 UTC, Emil Wojak
Details | Diff
Adds -lcrypt to the linker flags (jabberd-1.6.1.1-r1-crypt.patch,775 bytes, patch)
2011-11-02 18:07 UTC, Emil Wojak
Details | Diff
Adds -lcrypt to the linker flags (jabberd-1.6.1.1-r1-crypt.patch,775 bytes, patch)
2011-11-02 18:09 UTC, Emil Wojak
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Emil Wojak 2010-11-13 02:12:14 UTC
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.
Comment 1 Emil Wojak 2010-11-13 02:14:49 UTC
Created attachment 254157 [details, diff]
Adds -lcrypt to the linker flags
Comment 2 Rafał Mużyło 2010-11-13 13:43:19 UTC
The correct place is the end of LIBADD, not LDFLAGS.
Comment 3 Emil Wojak 2011-11-02 17:44:07 UTC
Isn't anybody interested in fixing this?
It'd nice to have my /usr/local/portage cleaned after a year :)
Comment 4 Emil Wojak 2011-11-02 18:07:49 UTC
Created attachment 291533 [details, diff]
Adds -lcrypt to the linker flags

-lcrypt moved from LDFLAGS to LIBADD as suggested in comment #2
Comment 5 Emil Wojak 2011-11-02 18:09:53 UTC
Created attachment 291535 [details, diff]
Adds -lcrypt to the linker flags

Reversed patch direction.