Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: new libpam has unresolved symbol openpam_static
In message <20080127105446.GA23493%isb2501.ub.uni-mainz.de@localhost>
on Sun, 27 Jan 2008 11:54:46 +0100,
Kurt Schreiner <ks%ub.uni-mainz.de@localhost> wrote:
> build.sh ... distribution fails for me when progams are linking to the
> new libpam due to "undefined reference to `openpam_static'" (s.b.).
>
> Kurt
>
> dependall ===> libexec/ftpd
> link ftpd/ftpd
> /u/NetBSD/arch/amd64/dest/usr/lib/libpam.so: undefined reference to
> `openpam_sta
> tic'
> collect2: ld returned 1 exit status
The same in i386. Apply below patch, clean and rebuild libpam.
OPENPAM_STATIC_MODULES would define in <security/openpam.h> if
NO_STATIC_MODULES and __PIC__ are undefined (and defined __GNUC__).
diff -u -u -r1.1.1.1.2.1 Makefile.inc
--- lib/libpam/Makefile.inc 29 May 2007 09:07:13 -0000 1.1.1.1.2.1
+++ lib/libpam/Makefile.inc 27 Jan 2008 11:21:54 -0000
@@ -28,7 +28,7 @@
USE_FORT?= yes # network client software *and* authentication software
# Include support for static modules.
-CPPFLAGS+= -DOPENPAM_STATIC_MODULES
+#CPPFLAGS+= -DOPENPAM_STATIC_MODULES
# Enable the static module macros.
CPPFLAGS+= -DOPENPAM_STATIC_MODULE
--
Takahiro Kambe <taca%back-street.net@localhost>
Home |
Main Index |
Thread Index |
Old Index