On Tue, 4 Sep 2007 04:49:27 -0700 Steve Langasek <[EMAIL PROTECTED]> wrote:
> > Could you please check whether this bug is still an issue with the > current version of pam in unstable (upstream version 0.99.7.1)? It is yes. > Now > that upstream is making full use of autotools, I suspect this bug has > gone away on its own. The upstream may be better but debian/rules still needs a tweak. First, set the cross-build detection: DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) and one line to add to the ./configure arguments: --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ Alternatively, create a $(CONFFLAGS) variable set the to --build and --host arguments if $(DEB_HOST_GNU_TYPE) differs from $(DEB_BUILD_GNU_TYPE) or blank otherwise. See also: http://wiki.debian.org/EmdebianGuide#head-7d381311f6972e4d3a4853bd96485e508fb6ac1f All autotools packages need to have some sort of --build and --host support before cross-building will work. CDBS does this automatically. However, even with those, there does appear to be a remaining upstream cross-build problem: make[5]: Entering directory `/opt/emdebian/trunk/p/pam/trunk/pam-0.99.7.1/Linux-PAM/conf/pam_conv1' arm-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -g -D_GNU_SOURCE -D_REENTRANT -fPIC -DCRACKLIB_DICTS=CRACKLIB_DICTPATH -O2 -MT pam_conv_l.o -MD -MP -MF .deps/pam_conv_l.Tpo -c -o pam_conv_l.o pam_conv_l.c mv -f .deps/pam_conv_l.Tpo .deps/pam_conv_l.Po arm-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -g -D_GNU_SOURCE -D_REENTRANT -fPIC -DCRACKLIB_DICTS=CRACKLIB_DICTPATH -O2 -MT pam_conv_y.o -MD -MP -MF .deps/pam_conv_y.Tpo -c -o pam_conv_y.o pam_conv_y.c mv -f .deps/pam_conv_y.Tpo .deps/pam_conv_y.Po /bin/sh ../../libtool --tag=CC --mode=link arm-linux-gnu-gcc -g -D_GNU_SOURCE -D_REENTRANT -fPIC -DCRACKLIB_DICTS=CRACKLIB_DICTPATH -O2 -Wl,--as-needed -Wl,-O1 -o pam_conv1 pam_conv_l.o pam_conv_y.o mkdir .libs arm-linux-gnu-gcc -g -D_GNU_SOURCE -D_REENTRANT -fPIC -DCRACKLIB_DICTS=CRACKLIB_DICTPATH -O2 -Wl,--as-needed -Wl,-O1 -o pam_conv1 pam_conv_l.o pam_conv_y.o pam_conv_l.o: In function `yylex': /opt/emdebian/trunk/p/pam/trunk/pam-0.99.7.1/Linux-PAM/conf/pam_conv1/pam_conv_l.c:831: undefined reference to `yywrap' collect2: ld returned 1 exit status make[5]: *** [pam_conv1] Error 1 make[5]: Leaving directory `/opt/emdebian/trunk/p/pam/trunk/pam-0.99.7.1/Linux-PAM/conf/pam_conv1' make[4]: *** [all] Error 2 make[4]: Leaving directory `/opt/emdebian/trunk/p/pam/trunk/pam-0.99.7.1/Linux-PAM/conf/pam_conv1' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/opt/emdebian/trunk/p/pam/trunk/pam-0.99.7.1/Linux-PAM/conf' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/opt/emdebian/trunk/p/pam/trunk/pam-0.99.7.1/Linux-PAM' make[1]: *** [all] Error 2 make[1]: Leaving directory `/opt/emdebian/trunk/p/pam/trunk/pam-0.99.7.1/Linux-PAM' make: *** [build-stamp] Error 2 make: Leaving directory `/opt/emdebian/trunk/p/pam/trunk/pam-0.99.7.1' This was done using a toolchain from Emdebian and dpkg-buildpackage -aarm -uc -us -rfakeroot as I can't use the emdebian-tools scripts right now due to the dpkg-cross transition. I'll revisit this issue once dpkg-cross and dpkg are sorted out. -- Neil Williams ============= http://www.data-freedom.org/ http://www.nosoftwarepatents.com/ http://www.linux.codehelp.co.uk/
pgpWnZjUJHqme.pgp
Description: PGP signature