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 请说明什么系统? 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 编辑 ] 我和一样的情况,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 试试用rpm包安装 直接使用make -j 50 2>/tmp/log 把log 信息粘贴出来看看
页:
[1]