存档

文章标签 ‘Bad value’

could not read symbols: Bad value

2010年9月16日 6 条评论

今天某童鞋在64位下编译pam的时候ld出错了,错误内容如下,最后在makefile里加了-fPIC解决问题

/usr/bin/ld: dynamic/pam_unix_auth.o: relocation R_X86_64_32 against `.rodata’ can not be used when making a shared object; recompile with -fPIC
dynamic/pam_unix_auth.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [pam_unix.so] Error 1