输入make后,出现以下问题: ubuntu@dell001:~/下载/vsftpd-2.1.2$ makearm-arago-linux-gnueabi-gcc -o vsftpd main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o tunables.o ftpdataio.o secbuf.o ls.o postprivparent.o logging.o str.o netstr.o sysstr.o strlist.o banner.o filestr.o parseconf.o secutil.o ascii.o oneprocess.o twoprocess.o privops.o standalone.o hash.o tcpwrap.o ipaddrparse.o access.o features.o readwrite.o opts.o ssl.o sslslave.o ptracesandbox.o ftppolicy.o sysutil.o sysdeputil.o -Wl,-s `./vsf_findlibs.sh` sysdeputil.o: In function `vsf_sysdep_has_capabilities':sysdeputil.c:(.text+0x17c): undefined reference to `cap_get_proc'sysdeputil.c:(.text+0x184): undefined reference to `cap_free'sysdeputil.o: In function `vsf_sysdep_adopt_capabilities':sysdeputil.c:(.text+0x1b4): undefined reference to `cap_init'sysdeputil.c:(.text+0x1d0): undefined reference to `cap_set_proc'sysdeputil.c:(.text+0x1e4): undefined reference to `cap_free'sysdeputil.c:(.text+0x218): undefined reference to `cap_set_flag'sysdeputil.c:(.text+0x230): undefined reference to `cap_set_flag'sysdeputil.c:(.text+0x254): undefined reference to `cap_set_flag'sysdeputil.c:(.text+0x26c): undefined reference to `cap_set_flag'sysdeputil.o: In function `vsf_sysdep_check_auth':sysdeputil.c:(.text+0xb44): undefined reference to `pam_start'sysdeputil.c:(.text+0xb7c): undefined reference to `pam_set_item'sysdeputil.c:(.text+0xb94): undefined reference to `pam_set_item'sysdeputil.c:(.text+0xbb8): undefined reference to `pam_set_item'sysdeputil.c:(.text+0xbcc): undefined reference to `pam_authenticate'sysdeputil.c:(.text+0xbe0): undefined reference to `pam_acct_mgmt'sysdeputil.c:(.text+0xbf4): undefined reference to `pam_setcred'sysdeputil.c:(.text+0xc24): undefined reference to `pam_open_session'sysdeputil.c:(.text+0xc48): undefined reference to `pam_end'sysdeputil.c:(.text+0xc60): undefined reference to `pam_end'sysdeputil.c:(.text+0xc78): undefined reference to `pam_end'sysdeputil.c:(.text+0xc94): undefined reference to `pam_setcred'sysdeputil.c:(.text+0xca0): undefined reference to `pam_end'sysdeputil.o: In function `vsf_auth_shutdown':sysdeputil.c:(.text+0xce4): undefined reference to `pam_close_session'sysdeputil.c:(.text+0xcf0): undefined reference to `pam_setcred'sysdeputil.c:(.text+0xcfc): undefined reference to `pam_end'collect2: ld returned 1 exit statusmake: *** [vsftpd] 错误 1
请问这是什么原因?
最新回答
纠心地疼。
2024-10-22 06:13:34
你是学生吗? 我没有装个这个,一般装这个编译不成功都是缺少什么库,或者找不到库路径,我不知道你为什么要改Makefile(是哪个大神指导的吗。。。),一般这个不都是自动生成的吗,不建议去改这些东西。。。 一般源码安装都是这样的步骤: ./configure --prefix=<一个你有权限的安装路径> make make install 如果make不成功,就是你缺少库,或者找不到库的路径(把库路径加到PATH里就可以了),如果少库的话,再想办法装上少的库吧