[#5185] Build kernel with lib pam fails
Submitted By: Vivi Li
Open Date
2009-06-01 06:23:40 Close Date
2009-06-03 05:37:36
Priority:
Medium Assignee:
Vivi Li
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
Make Errors Board:
N/A
Processor:
ALL Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Rejected
Uboot version or rev.:
Toolchain version or rev.:
gcc4.1-09r1_rc6
App binary format:
N/A
Summary: Build kernel with lib pam fails
Details:
Build kernel with lib pam fails for both flat and fdpic.
Bellow is the log for flat format and config is attached.
--
if /bin/sh ../libtool --tag=CC --mode=compile bfin-uclinux-gcc -DHOST_NAME_MAX=255 -DHAVE_CONFIG_H -I. -I../../Linux-PAM-0.99.3.0/libpam -I.. -DEMBED -D__uClinux__ -I/home/test/work/cruise/checkouts/uclinux-dist -mcpu=bf537-0.2 -DDEFAULT_MODULE_PATH=\"/lib/security/\" -DLIBPAM_COMPILE -I../../Linux-PAM-0.99.3.0/libpam/include -DPAM_VERSION=\"0.99.3.0\" -pipe -Wall -g -O2 -mcpu=bf537-0.2 -DOMIT_NIS -DPAM_STATIC -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wwrite-strings -Winline -Wshadow -MT pam_handlers.lo -MD -MP -MF ".deps/pam_handlers.Tpo" -c -o pam_handlers.lo ../../Linux-PAM-0.99.3.0/libpam/pam_handlers.c; \
then mv -f ".deps/pam_handlers.Tpo" ".deps/pam_handlers.Plo"; else rm -f ".deps/pam_handlers.Tpo"; exit 1; fi
bfin-uclinux-gcc -DHOST_NAME_MAX=255 -DHAVE_CONFIG_H -I. -I../../Linux-PAM-0.99.3.0/libpam -I.. -DEMBED -D__uClinux__ -I/home/test/work/cruise/checkouts/uclinux-dist -mcpu=bf537-0.2 -DDEFAULT_MODULE_PATH=\"/lib/security/\" -DLIBPAM_COMPILE -I../../Linux-PAM-0.99.3.0/libpam/include -DPAM_VERSION=\"0.99.3.0\" -pipe -Wall -g -O2 -mcpu=bf537-0.2 -DOMIT_NIS -DPAM_STATIC -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wwrite-strings -Winline -Wshadow -MT pam_handlers.lo -MD -MP -MF .deps/pam_handlers.Tpo -c ../../Linux-PAM-0.99.3.0/libpam/pam_handlers.c -o pam_handlers.o
../../Linux-PAM-0.99.3.0/libpam/pam_handlers.c: In function '_pam_add_handler':
../../Linux-PAM-0.99.3.0/libpam/pam_handlers.c:605: error: 'servicefn' undeclared (first use in this function)
../../Linux-PAM-0.99.3.0/libpam/pam_handlers.c:605: error: (Each undeclared identifier is reported only once
../../Linux-PAM-0.99.3.0/libpam/pam_handlers.c:605: error: for each function it appears in.)
../../Linux-PAM-0.99.3.0/libpam/pam_handlers.c:605: error: expected ';' before 'func'
../../Linux-PAM-0.99.3.0/libpam/pam_handlers.c:756: error: 'func' undeclared (first use in this function)
../../Linux-PAM-0.99.3.0/libpam/pam_handlers.c:756: error: 'func2' undeclared (first use in this function)
../../Linux-PAM-0.99.3.0/libpam/pam_handlers.c:816: error: expected ')' before '_pam_get_static_sym'
../../Linux-PAM-0.99.3.0/libpam/pam_handlers.c:829: error: expected ')' before '_pam_get_static_sym'
make[6]: *** [pam_handlers.lo] Error 1
make[6]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/lib/libpam/build/libpam'
--
Bellow is the log for fdpic format:
--
bfin-linux-uclibc-gcc -DHOST_NAME_MAX=255 -DHAVE_CONFIG_H -I. -I../../Linux-PAM-0.99.3.0/libpam -I.. -DEMBED -D__uClinux__ -I/home/test/work/cruise/checkouts/uclinux-dist -mcpu=bf537-0.2 -DDEFAULT_MODULE_PATH=\"/lib/security/\" -DLIBPAM_COMPILE -I../../Linux-PAM-0.99.3.0/libpam/include -DPAM_VERSION=\"0.99.3.0\" -pipe -Wall -g -O2 -mcpu=bf537-0.2 -DOMIT_NIS -DPAM_DYNAMIC -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wwrite-strings -Winline -Wshadow -MT pam_modutil_getspnam.lo -MD -MP -MF .deps/pam_modutil_getspnam.Tpo -c ../../Linux-PAM-0.99.3.0/libpam/pam_modutil_getspnam.c -fPIC -DPIC -o .libs/pam_modutil_getspnam.o
Generating dependencies for ../SDL-1.2.13/src/events/SDL_mouse.c
ar: creating ../libcrypto.a
../../Linux-PAM-0.99.3.0/libpam/pam_modutil_getspnam.c:15:20: error: shadow.h: No such file or directory
../../Linux-PAM-0.99.3.0/libpam/pam_modutil_getspnam.c: In function 'pam_modutil_getspnam':
../../Linux-PAM-0.99.3.0/libpam/pam_modutil_getspnam.c:40: warning: unused parameter 'pamh'
../../Linux-PAM-0.99.3.0/libpam/pam_modutil_getspnam.c:40: warning: unused parameter 'user'
make[6]: *** [pam_modutil_getspnam.lo] Error 1
make[6]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/lib/libpam/build/libpam'
make[5]: *** [all-recursive] Error 1
--
Follow-ups
--- Sonic Zhang 2009-06-03 04:42:03
Not a bug.
Linux-PAM depends on shadow.h, which is included in uClibc, but is not built by
default.
User should select UCLIBC_HAS_SHADOW in uClibc and rebuilt his toolchain.
--- Vivi Li 2009-06-03 05:37:36
OK, disable lib pam in build_toolchain_kernel.exp.
Close this bug.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.user.pam.flat application/octet-stream 45658 Vivi Li