Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61896 - net-im/jabberd-2.0-r1: c2s compiles without (or with broken) PAM support
Summary: net-im/jabberd-2.0-r1: c2s compiles without (or with broken) PAM support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Net-im project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-27 01:31 UTC by Antek Grzymała (antoszka)
Modified: 2004-09-01 06:36 UTC (History)
0 users

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


Attachments
working ebuild (jabberd-2.0-r2.ebuild,4.73 KB, text/plain)
2004-08-30 16:31 UTC, Christian Loitsch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antek Grzymała (antoszka) 2004-08-27 01:31:09 UTC
I updated my jabber server to jabberd-2.0-r1 having successfully run jabberd-2.0 to this date with PAM authentication, everything seems to compile fine, except that the c2s exits immediately with the following log entry:

[jabberd/c2s] no such auth module 'pam'

Reemerging old jabberd-2.0 kinda fixed the problem, so I presume my PAM isn't broken.

Reproducible: Always
Steps to Reproduce:
1. Compile jabberd-2.0-r1 with USE +berkdb +ipv6 -ldap +mysql +pam -postgres +ssl
2. Try to start server via init script or manually
3. See the c2s component exit miserably

Actual Results:  
All components run except c2s

Expected Results:  
c2s should run as it did with jabberd-2.0 (and same config files)

Gentoo Base System version 1.4.16
Portage 2.0.50-r10 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r1,
2.4.26-gentoo-r8)
=================================================================
System uname: 2.4.26-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://gentoo.inode.at/source/
ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.easynet.nl/mirror/gentoo/
http://gentoo.inode.at/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl apache2 apm avi berkdb cdr crypt cups curl evms2 fam fastcgi fbcon
flexresp foomaticdb gcj gdbm gif gpm gtk2 imap imlib ipv6 jabber java javascript
jpeg libg++ libwww mbox moznocompose moznoirc moznomail mysql ncurses nls nptl
oav opengl pam pdflib perl php png python readline sasl sdl slang spell sse ssl
svga tcpd tiff truetype usb x86 xml xml2 zlib"
================================================================
some package versions (I'm not quite sure, which are related):
dev-db/mysql-4.0.20
sys-libs/db-1.85-r1
sys-libs/db-3.2.9-r2
sys-libs/gdbm-1.8.0-r5
sys-libs/db-4.1.25_p1-r3
sys-libs/db-4.0.14-r2
sys-libs/pwdb-0.62
dev-perl/DB_File-1.807
dev-perl/DBI-1.38
dev-perl/DBD-mysql-2.1027
sys-libs/pam-0.77
Comment 1 Antek Grzymała (antoszka) 2004-08-27 01:46:35 UTC
c2s from jabberd-2.0-r1 is not linked against pam:

# ldd /usr/bin/c2s
        libresolv.so.2 => /lib/libresolv.so.2 (0x4a23f000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x4a251000)
        libmysqlclient.so.12 => /usr/lib/libmysqlclient.so.12 (0x4a266000)
        libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x4a2a9000)
        libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x4a2d9000)
        libidn.so.11 => /usr/lib/libidn.so.11 (0x4a3d5000)
        libc.so.6 => /lib/libc.so.6 (0x4a407000)
        libz.so.1 => /lib/libz.so.1 (0x4a517000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x4a52d000)
        libm.so.6 => /lib/libm.so.6 (0x4a55a000)
        libdl.so.2 => /lib/libdl.so.2 (0x4a57c000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4a223000)

c2s from jabberd-2.0 is linked just fine:

# ldd /usr/bin/c2s 
        libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x46aa9000)
        libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x46ad9000)
        libdb-4.1.so => /usr/lib/libdb-4.1.so (0x46bd5000)
        libmysqlclient.so.12 => /usr/lib/libmysqlclient.so.12 (0x46c97000)
        libpam.so.0 => /lib/libpam.so.0 (0x46cda000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x46ce3000)
        libc.so.6 => /lib/libc.so.6 (0x46cf6000)
        libdl.so.2 => /lib/libdl.so.2 (0x46e06000)
        libz.so.1 => /lib/libz.so.1 (0x46e09000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x46e1f000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x46e4c000)
        libm.so.6 => /lib/libm.so.6 (0x46e61000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x46a8d000)
Comment 2 Antek Grzymała (antoszka) 2004-08-27 02:14:24 UTC
OK, solution at hand:

ebuild needs fixing to have simple $(use_enable pam) in it, and perhaps so it needs for the other drivers too. Please read this thread.

http://www.jabber.org/pipermail/jadmin/2004-June/016455.html

Worked for me.

Antek
Comment 3 Christian Loitsch 2004-08-30 16:31:56 UTC
Created attachment 38547 [details]
working ebuild

jabberd changed quite some configure-options.
I hopefully corrected them and also removed the dependency on openssl when no
ssl use flag.
Comment 4 Gustavo Felisberto (RETIRED) gentoo-dev 2004-09-01 06:36:13 UTC
Ok i missed that on the changelog and it actually builds ok (i dont runa jabberd2).
Thanks for the note and thanks to Christian for helping with the fix.