On Wed, May 19, 2010 at 23:56:03 +0200, Aurelien Jarno wrote:

> The problem is that the mkhomedir_helper is built as a library, using a
> version-script. This lead to:
> 
>   0x70000016 (MIPS_RLD_MAP)               0
> 
> Removing --version-script while linking the binary fixes the problem:
> 
>   0x70000016 (MIPS_RLD_MAP)               0x413a50
> 
Steve,

please find attached a patch to fix this.  Adding it to
debian/patches-applied/series and regenerating autoconf.patch fixed the
linking flags for mkhomedir_helper as far as I can tell.

Cheers,
Julien
Index: pam/modules/pam_mkhomedir/Makefile.am
===================================================================
--- pam.orig/modules/pam_mkhomedir/Makefile.am
+++ pam/modules/pam_mkhomedir/Makefile.am
@@ -19,14 +19,14 @@
 
 AM_CFLAGS = -I$(top_srcdir)/libpam/include -I$(top_srcdir)/libpamc/include \
 	    -DMKHOMEDIR_HELPER=\"$(sbindir)/mkhomedir_helper\"
-AM_LDFLAGS = -no-undefined -avoid-version -module
-if HAVE_VERSIONING
-  AM_LDFLAGS += -Wl,--version-script=$(srcdir)/../modules.map
-endif
 
 securelib_LTLIBRARIES = pam_mkhomedir.la
 pam_mkhomedir_la_SOURCES = pam_mkhomedir.c
 pam_mkhomedir_la_LIBADD = -L$(top_builddir)/libpam -lpam
+pam_mkhomedir_la_LDFLAGS = -no-undefined -avoid-version -module
+if HAVE_VERSIONING
+  pam_mkhomedir_la_LDFLAGS += -Wl,--version-script=$(srcdir)/../modules.map
+endif
 
 sbin_PROGRAMS = mkhomedir_helper
 mkhomedir_helper_SOURCES = mkhomedir_helper.c

Attachment: signature.asc
Description: Digital signature

Reply via email to