Package: libpam-foreground
Version: 0.2
Tags: patch

When building the source, this lintian error is reported:

  W: libpam-foreground binary:
    shared-lib-without-dependency-information
    ./lib/security/pam_foreground.so

The Ubuntu version of the package contain this patch with the
changelog comment "Add missing linker options (LP: #76364), thanks to
Bohdan Kmit'."  I assume it is related to this problem:

 pam_foreground.so: pam_foreground.c
        gcc -fPIC -O2 -Wall -c pam_foreground.c
-       ld -x --shared -o pam_foreground.so pam_foreground.o
+       ld -lpam -x --shared -o pam_foreground.so pam_foreground.o
 clean:

Adding this patch changes the lintian warning to this one:

  W: libpam-foreground: library-not-linked-against-libc
    ./lib/security/pam_foreground.so

The following patch take care of both.  It is based on a patch from
Daniel Hess.

--- libpam-foreground-0.2.orig/Makefile
+++ libpam-foreground-0.2/Makefile
@@ -1,6 +1,6 @@
 pam_foreground.so: pam_foreground.c
        gcc -fPIC -O2 -Wall -c pam_foreground.c
-       ld -x --shared -o pam_foreground.so pam_foreground.o
+       ld -x --shared -o pam_foreground.so pam_foreground.o -lpam -lc
 clean:
        - rm *.o *.so
 

Please include it in the next version of libpam-foreground.

Happy hacking,
-- 
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Reply via email to