[kloczek@zie.pg.gda.pl: Re: [Pkg-shadow-devel] Debian patch to configure.in]

Tomasz Kłoczko kloczek@zie.pg.gda.pl
Mon, 9 May 2005 17:57:20 +0200 (CEST)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--568760595-1766164121-1115654240=:6743
Content-Type: TEXT/PLAIN; charset=ISO-8859-2
Content-Transfer-Encoding: QUOTED-PRINTABLE

On Sat, 7 May 2005, Martin Quinson wrote:

> Hello pam guys,
>=20
> As shadow packaging follower, I would like to have your advice on this on=
e.
> It looks like that the attached patch against upstream shadow is needed o=
nly
> because of the debian patches against the pam. Would you mind to explain =
the
> situation to me, please?
>=20
> We try to reduce the amount of debian specific patching as much as possib=
le
> by reinjecting the good bits to upstream...

Look at ldd output on libpam_misc provided in libpam0g Debian package:

$ ldd libpam_misc.so.0.72
        libc.so.6 =3D> /lib/libc.so.6 (0x00be4000)
        /lib/ld-linux.so.2 (0x003a5000)

Example ldd otput from libpam_misc from current Fedora devel.
$ ldd /lib/libpam_misc.so.0.79
        libc.so.6 =3D> /lib/libc.so.6 (0x003c3000)
        libdl.so.2 =3D> /lib/libdl.so.2 (0x00515000)
        libaudit.so.0 =3D> /lib/libaudit.so.0 (0x00857000)
        libpam.so.0 =3D> /lib/libpam.so.0 (0x0084c000)      <<=3D=3D=3D *th=
is*
        /lib/ld-linux.so.2 (0x003a5000)

Try compile empty main() program linked with libpam_misc from Debian:

---
int main ()
{
    return 0;
}
---

$ ln -sf libpam_misc.so.0.72 libpam_misc.so
$ gcc main.c -L. -lpam_misc
=2E/libpam_misc.so: undefined reference to `pam_getenvlist'
=2E/libpam_misc.so: undefined reference to `pam_putenv'
=2E/libpam_misc.so: undefined reference to `pam_getenv'
collect2: ld returned 1 exit status

(above was with binary from Debian libpam0g_0.72-35_i386.deb package).

Simple libpam_misc uses libpam API and must be linked with libpam.

kloczek
--=20
-----------------------------------------------------------
*Ludzie nie maj=B1 problem=F3w, tylko sobie sami je stwarzaj=B1*
-----------------------------------------------------------
Tomasz K=B3oczko, sys adm @zie.pg.gda.pl|*e-mail: kloczek@rudy.mif.pg.gda.p=
l*
--568760595-1766164121-1115654240=:6743--