/bin/bash ../../libtool --tag=CC --mode=link arm-linux-androideabi-gcc -I../../libpam/include -I../../libpamc/include -DMKHOMEDIR_HELPER=\"/sbin/mkhomedir_helper\" -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 -no-undefined -avoid-version -module -Wl,--version-script=./../modules.map -Wl,--as-needed -Wl,-O1 -o mkhomedir_helper mkhomedir_helper.o -L../../libpam -lpam
libtool: link: arm-linux-androideabi-gcc -I../../libpam/include -I../../libpamc/include -DMKHOMEDIR_HELPER=\"/sbin/mkhomedir_helper\" -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,--version-script=./../modules.map -Wl,--as-needed -Wl,-O1 -o .libs/mkhomedir_helper mkhomedir_helper.o -L/host/src1/2/Linux-PAM-1.1.1/libpam /host/src1/2/Linux-PAM-1.1.1/libpam/.libs/libpam.so -ldl
/host/src1/2/Linux-PAM-1.1.1/libpam/.libs/libpam.so: undefined reference to `getutline'
/host/src1/2/Linux-PAM-1.1.1/libpam/.libs/libpam.so: undefined reference to `getspnam'
collect2: ld returned 1 exit status
make[3]: *** [mkhomedir_helper] 错误 1
make[3]:正在离开目录 `/host/src1/2/Linux-PAM-1.1.1/modules/pam_mkhomedir'
make[2]: *** [all-recursive] 错误 1
make[2]:正在离开目录 `/host/src1/2/Linux-PAM-1.1.1/modules'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/host/src1/2/Linux-PAM-1.1.1'
make: *** [all] 错误 2
2.
root@ubuntu:/host/src1/2/Linux-PAM-1.1.1# cd modules/pam_mkhomedir
root@ubuntu:/host/src1/2/Linux-PAM-1.1.1/modules/pam_mkhomedir# /bin/bash ../../libtool --tag=CC --mode=link arm-linux-androideabi-gcc -I../../libpam/include -I../../libpamc/include -DMKHOMEDIR_HELPER=\"/sbin/mkhomedir_helper\" -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 -no-undefined -avoid-version -module -Wl,--version-script=./../modules.map -Wl,--as-needed -Wl,-O1 -o mkhomedir_helper mkhomedir_helper.o -L../../libpam -lpam -luc
libtool: link: arm-linux-androideabi-gcc -I../../libpam/include -I../../libpamc/include -DMKHOMEDIR_HELPER=\"/sbin/mkhomedir_helper\" -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,--version-script=./../modules.map -Wl,--as-needed -Wl,-O1 -o .libs/mkhomedir_helper mkhomedir_helper.o -L/host/src1/2/Linux-PAM-1.1.1/libpam /host/src1/2/Linux-PAM-1.1.1/libpam/.libs/libpam.so -ldl -luc
/host/android-ndk-r7/mytoolchain/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: .libs/mkhomedir_helper: local symbol `getutline' in /host/android-ndk-r7/mytoolchain/bin/../sysroot/usr/lib/libuc.a(utent.os) is referenced by DSO
/host/android-ndk-r7/mytoolchain/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
root@ubuntu:/host/src1/2/Linux-PAM-1.1.1/modules/pam_mkhomedir# /bin/bash ../../libtool --tag=CC --mode=link arm-linux-androideabi-gcc -I../../libpam/include -I../../libpamc/include -I./.. -fpie -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 -pie -Wl,--as-needed -Wl,-O1 -o mkhomedir_helper mkhomedir_helper.o -L../../libpam -lpam -luc
libtool: link: arm-linux-androideabi-gcc -I../../libpam/include -I../../libpamc/include -I./.. -fpie -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 -pie -Wl,--as-needed -Wl,-O1 -o .libs/mkhomedir_helper mkhomedir_helper.o -L/host/src1/2/Linux-PAM-1.1.1/libpam /host/src1/2/Linux-PAM-1.1.1/libpam/.libs/libpam.so -ldl -luc