pam fails to cross-build

Bug #873015 reported by Wookey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
flex (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

pam fail to cross-build with:

arm-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../.. -g -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wwrite-strings -Winline -Wshadow -c pam_conv_y.c
/bin/bash ../../libtool --tag=CC --mode=link arm-linux-gnueabi-gcc -g -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wwrite-strings -Winline -Wshadow -Wl,-z,defs -Wl,--as-needed -Wl,-O1 -o pam_conv1 pam_conv_l.o pam_conv_y.o
libtool: link: arm-linux-gnueabi-gcc -g -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wwrite-strings -Winline -Wshadow -Wl,-z -Wl,defs -Wl,--as-needed -Wl,-O1 -o pam_conv1 pam_conv_l.o pam_conv_y.o
pam_conv_l.o: In function `yylex':
/home/wookey/testing/build/build/xdeb/pam/conf/pam_conv1/pam_conv_l.c:871: undefined reference to `yywrap'

This is a problem with flex processing.

Background:
The build command is:
xdeb --only-explicit -a armel --prefer-apt --apt-source --debug --force-rebuild pam

The actual build command xdeb issues is:
debuild --no-lintian -eUSER -eCONFIG_SITE=/etc/dpkg-cross/cross-config.armel -eDEB_BUILD_OPTIONS=nocheck -eGTEST_INCLUDEDIR=/usr/arm-linux-gnueabi/include -eGTEST_LIBDIR=/usr/arm-linux-gnueabi/lib -ePKG_CONFIG_LIBDIR=/usr/arm-linux-gnueabi/lib/pkgconfig:/usr/arm-linux-gnueabi/share/pkgconfig:/usr/share/pkgconfig -eDH_VERBOSE=1 -aarmel -b -uc -us -tc

To easily reproduce the build environment in which this bug was discovered follow the HOWTO here:
https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/CrossBuildNano

Tags: cross natty

Related branches

Revision history for this message
Wookey (wookey) wrote :
affects: ubuntu → pam (Ubuntu)
Steve Langasek (vorlon)
affects: pam (Ubuntu) → flex (Ubuntu)
Changed in flex (Ubuntu):
status: New → Fix Committed
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package flex - 2.5.35-10ubuntu2

---------------
flex (2.5.35-10ubuntu2) precise; urgency=low

  * Split the flex package into flex and libfl-dev, with flex as a
    Multi-Arch: foreign package depending on a Multi-Arch: same libfl-dev,
    so that flex works for cross-building. Thanks to
    Riku Voipio <email address hidden> for the initial version of this patch.
    Closes: #611230, LP: #873015.
 -- Steve Langasek <email address hidden> Sun, 06 Nov 2011 18:46:54 -0800

Changed in flex (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.