When makinglibpam, I got two errors:
/host/src1/2/Linux-PAM-1.0.1/libpam/.libs/libpam.so: undefined reference to `getutline'
/host/src1/2/Linux-PAM-1.0.1/libpam/.libs/libpam.so: undefined reference to `getspnam'
These two functions are part of the gnu libc, but they are not part of android libc.
So I decided to have a glibc library to get both functions working.
But then I had another issue:
login/getutline.c:25: error: storage class specified for parameter 'buffer'
I got some clue from this link.
http://lists.gnu.org/archive/html/bug-glibc/2003-07/msg00102.html
Then I includedlibc-symbols.h
in login/getutline.c. It seems to be ok now.
本文详细描述了在编译Linux-PAM时遇到的两个错误:未定义引用到glibc中的getutline和getspnam函数,以及在login/getutline.c文件中关于参数buffer的存储类指定错误。通过引入libc-symbols.h文件,成功解决了这些问题。
3300

被折叠的 条评论
为什么被折叠?



