netbeta 发表于 2005-11-08 17:14

vsftpd编译错误

偶在编译vsftpd2。0。3时出现编译错误

make
gcc -c main.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c utility.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c prelogin.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c ftpcmdio.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c postlogin.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c privsock.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c tunables.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c ftpdataio.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c secbuf.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c ls.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c postprivparent.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c logging.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c str.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c netstr.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c sysstr.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c strlist.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c banner.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c filestr.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c parseconf.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c secutil.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c ascii.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c oneprocess.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c twoprocess.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c privops.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c standalone.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c hash.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c tcpwrap.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c ipaddrparse.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c access.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c features.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c readwrite.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c ssl.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c sysutil.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c sysdeputil.c -O2 -Wall -W -Wshadow-idirafter dummyinc
sysdeputil.c: In function `do_sendfile':
sysdeputil.c:641: warning: null argument where non-null required (arg 3)
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 ssl.o sysutil.o sysdeputil.o -Wl,-s `./vsf_findlibs.sh`
/lib/libpam.so.0: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** Error 1

wolfg 发表于 2005-11-09 09:36

请说明什么系统?

netbeta 发表于 2005-11-09 11:41

redhat AS4 X86_64

请指点迷津,谢谢!

我查了/lib/libpam.so.0是链接了libpam.so.0.77

ls -l /lib/libpam.so.0
lrwxrwxrwx1 root root 14 Nov3 09:52 /lib/libpam.so.0 -> libpam.so.0.77

[ 本帖最后由 netbeta 于 2005-11-9 11:45 编辑 ]

lingy 发表于 2005-11-09 14:55

我和一样的情况,centos x86_64

# make
gcc -c main.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c utility.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c prelogin.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c ftpcmdio.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c postlogin.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c privsock.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c tunables.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c ftpdataio.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c secbuf.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c ls.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c postprivparent.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c logging.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c str.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c netstr.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c sysstr.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c strlist.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c banner.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c filestr.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c parseconf.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c secutil.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c ascii.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c oneprocess.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c twoprocess.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c privops.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c standalone.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c hash.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c tcpwrap.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c ipaddrparse.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c access.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c features.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c readwrite.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c ssl.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c sysutil.c -O2 -Wall -W -Wshadow-idirafter dummyinc
gcc -c sysdeputil.c -O2 -Wall -W -Wshadow-idirafter dummyinc
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 ssl.o sysutil.o sysdeputil.o -Wl,-s `./vsf_findlibs.sh`
/lib/libpam.so.0: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** Error 1

wolfg 发表于 2005-11-09 15:01

试试用rpm包安装

peteryc 发表于 2013-04-13 17:59

直接使用make -j 50 2>/tmp/log 把log 信息粘贴出来看看
页: [1]
查看完整版本: vsftpd编译错误