免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2799 | 回复: 7

求哪位大侠帮帮忙,感激不尽! [复制链接]

论坛徽章:
0
发表于 2011-05-16 15:36 |显示全部楼层
我在centos5.5上安装socks5代理,在make命令时出现致命错误,如下:
make【2】:***【commands.so】 Error 1
make【2】:Target ‘all’ not  remade  because   of  errors。
make【2】:Leaving  directory  ‘/software/socks5-v1.0.r11/clients/telnet'
make【1】:***[all]  Error2
make【1】:Leaving   directory  '/software/socks5-v1.0r11/clients'
make :  ***[client]  Error 2



寻求解决方法!

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
发表于 2011-05-16 15:37 |显示全部楼层
前面几行也贴上来

论坛徽章:
0
发表于 2011-05-16 18:17 |显示全部楼层
[root@localhost socks5-v1.0r11]# make
make[1]: Entering directory `/software/socks5-v1.0r11/server'
make[1]: Leaving directory `/software/socks5-v1.0r11/server'
make[1]: Entering directory `/software/socks5-v1.0r11/lib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/software/socks5-v1.0r11/lib'
make[1]: Entering directory `/software/socks5-v1.0r11/lib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/software/socks5-v1.0r11/lib'
make[1]: Entering directory `/software/socks5-v1.0r11/clients'
make[2]: Entering directory `/software/socks5-v1.0r11/clients/pt'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/software/socks5-v1.0r11/clients/pt'
make[2]: Entering directory `/software/socks5-v1.0r11/clients/ftp'
gcc -I../../include -I./../../include  -D__USE_FIXED_PROTOTYPES__  -DSOCKS  -DINCLUDE_PROTOTYPES    -c ./ftp.c
In file included from ./ftp.c:51:
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
./ftp.c: In function 鈉ommand?
./ftp.c:244: error: expected declaration specifiers before 鈜a_dcl?
./ftp.c:291: error: expected ?? ?? ?? 鈇sm?or 鈅_attribute__?before 鈡?token
./ftp.c:362: error: expected ?? ?? ?? 鈇sm?or 鈅_attribute__?before 鈡?token
./ftp.c:461: error: expected ?? ?? ?? 鈇sm?or 鈅_attribute__?before 鈡?token
./ftp.c:471: error: expected ?? ?? ?? 鈇sm?or 鈅_attribute__?before 鈡?token
./ftp.c:482: error: expected ?? ?? ?? 鈇sm?or 鈅_attribute__?before 鈡?token
./ftp.c:489: error: expected ?? ?? ?? 鈇sm?or 鈅_attribute__?before 鈡?token
./ftp.c:503: error: expected ?? ?? ?? 鈇sm?or 鈅_attribute__?before 鈡?token
./ftp.c:541: error: expected ?? ?? ?? 鈇sm?or 鈅_attribute__?before 鈡?token
./ftp.c:648: error: expected ?? ?? ?? 鈇sm?or 鈅_attribute__?before 鈡?token
./ftp.c:715: error: expected ?? ?? ?? 鈇sm?or 鈅_attribute__?before 鈡?token
./ftp.c:963: error: expected ?? ?? ?? 鈇sm?or 鈅_attribute__?before 鈡?token
./ftp.c:972: error: expected ?? ?? ?? 鈇sm?or 鈅_attribute__?before 鈡?token
./ftp.c:1310: error: expected ?? ?? ?? 鈇sm?or 鈅_attribute__?before 鈉har?
./ftp.c:959: error: declaration for parameter 鈘ecvabort?but no such parameter
./ftp.c:469: error: declaration for parameter 鈙endabort?but no such parameter
./ftp.c:358: error: declaration for parameter 鈘eply_string?but no such parameter
./ftp.c:1318: warning: return makes integer from pointer without a cast
./ftp.c:1329: error: 鈒mode?undeclared (first use in this function)
./ftp.c:1329: error: (Each undeclared identifier is reported only once
./ftp.c:1329: error: for each function it appears in.)
./ftp.c:1329: warning: return makes integer from pointer without a cast
make[2]: *** [ftp.o] Error 1
make[2]: Target `all' not remade because of errors.
make[2]: Leaving directory `/software/socks5-v1.0r11/clients/ftp'
make[2]: Entering directory `/software/socks5-v1.0r11/clients/finger'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/software/socks5-v1.0r11/clients/finger'
make[2]: Entering directory `/software/socks5-v1.0r11/clients/archie'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/software/socks5-v1.0r11/clients/archie'
make[2]: Entering directory `/software/socks5-v1.0r11/clients/telnet'
make[3]: Entering directory `/software/socks5-v1.0r11/clients/telnet/libtelnet'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/software/socks5-v1.0r11/clients/telnet/libtelnet'
gcc -I. -I../../include -I./../../include  -D__USE_FIXED_PROTOTYPES__   -DSOCKS -DINCLUDE_PROTOTYPES -DKLUDGELINEMODE  -c ./commands.c
In file included from ./commands.c:86:
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
./commands.c: In function 鈉all?
./commands.c:2096: error: expected declaration specifiers before 鈜a_dcl?
./commands.c:2116: error: expected ?? ?? ?? 鈇sm?or 鈅_attribute__?before 鈉har?
./commands.c:2120: error: 鈔ame?undeclared (first use in this function)
./commands.c:2120: error: (Each undeclared identifier is reported only once
./commands.c:2120: error: for each function it appears in.)
./commands.c:2121: warning: return makes integer from pointer without a cast
./commands.c:2122: warning: return makes integer from pointer without a cast
./commands.c: In function 鈉ommand?
./commands.c:2172: warning: assignment makes pointer from integer without a cast
./commands.c: In function 鈎elp?
./commands.c:2225: warning: assignment makes pointer from integer without a cast
./commands.c: In function 鈉mdrc?
./commands.c:2299: warning: assignment makes pointer from integer without a cast
make[2]: *** [commands.o] Error 1
make[2]: Target `all' not remade because of errors.
make[2]: Leaving directory `/software/socks5-v1.0r11/clients/telnet'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/software/socks5-v1.0r11/clients'
make: *** [clients] Error 2

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
发表于 2011-05-16 20:19 |显示全部楼层
configure报错没?

论坛徽章:
34
亥猪
日期:2015-03-20 13:55:11戌狗
日期:2015-03-20 13:57:01酉鸡
日期:2015-03-20 14:03:56未羊
日期:2015-03-20 14:18:30子鼠
日期:2015-03-20 14:20:14丑牛
日期:2015-03-20 14:20:31辰龙
日期:2015-03-20 14:35:34巳蛇
日期:2015-03-20 14:35:56操作系统版块每日发帖之星
日期:2015-11-06 06:20:00操作系统版块每日发帖之星
日期:2015-11-08 06:20:00操作系统版块每日发帖之星
日期:2015-11-19 06:20:00黄金圣斗士
日期:2015-11-24 10:43:13
发表于 2011-05-16 21:19 |显示全部楼层
./configure 估计都没通过吧?

论坛徽章:
0
发表于 2011-05-17 09:12 |显示全部楼层
[root@localhost software]# ls
ipvsadm-1.24  ipvsadm-1.24.tar.gz  ipvsadm-1.26  ipvsadm-1.26-1.src.rpm  ipvsadm-1.26.tar.gz  socks5-v1.0r11  socks5-v1.0r11.tar.gz  squid-3.1.9  squid-3.1.9.tar.bz2
[root@localhost software]# cd socks5-v1.0r11
[root@localhost socks5-v1.0r11]# ls
acconfig.h  ChangeLog  config.cache  config.status  configure.in   Copyright  examples  INSTALL     lib       Makefile.in  patches  readme.txt  shlib       stamp-h     test
aclocal.m4  clients    config.log    configure      configure.txt  doc        include   install-sh  Makefile  man          README   server      source.txt  stamp-h.in
[root@localhost socks5-v1.0r11]# ./configure
loading cache ./config.cache
checking for gcc2... (cached) gcc
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking whether gcc needs -traditional... (cached) no
checking for working const... (cached) yes
checking for inline... (cached) inline

checking for ranlib... (cached) ranlib
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for makedepend... (cached) true
checking for autoconf... (cached) true
checking for autoheader... (cached) true

checking for fcntl.h... (cached) yes
checking for memory.h... (cached) yes
checking for unistd.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for bstring.h... (cached) no
checking for varargs.h... (cached) no
checking for stdarg.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for time.h... (cached) yes
checking for syslog.h... (cached) yes
checking for ifaddrs.h... (cached) yes
checking for crypt.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for sys/signal.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for sys/uio.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/wait.h... (cached) yes
checking for sys/ttychars.h... (cached) yes
checking for sys/ipc.h... (cached) yes
checking for sys/bitypes.h... (cached) yes
checking for sys/mbuf.h... (cached) no
checking for sys/sem.h... (cached) yes
checking for sys/select.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for sys/fcntl.h... (cached) yes
checking for sys/filio.h... (cached) no
checking for sys/sockio.h... (cached) no
checking for sys/termios.h... (cached) yes
checking for sys/termio.h... (cached) no
checking for termios.h... (cached) yes
checking for termio.h... (cached) yes
checking for sys/un.h... (cached) yes
checking for netinet/in_systm.h... (cached) yes
checking for net/route.h... (cached) yes
checking for machine/endian.h... (cached) no
checking for paths.h... (cached) yes
checking for nl_types.h... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no

checking for main in -lsocket... (cached) no
checking for main in -ldl... (cached) yes
checking for main in -ldld... (cached) no
checking for main in -lsvld... (cached) no
checking for setupterm in -ltermcap... (cached) no
checking for setupterm in -lcurses... (cached) no
checking for setupterm in -lncurses... (cached) no
checking for tgetent in -ltermcap... (cached) no
checking for tgetent in -lcurses... (cached) no
checking for tgetent in -lncurses... (cached) no
checking for gethostbyname in -lc... (cached) yes
checking if we can use -lnsl... (cached) no
checking for shared libc... (cached) libc.so.6
checking for shared libnsl... (cached) libnsl.so.1
checking for shared libsocket... no
checking for shared libresolv... (cached) libresolv.so.2
checking for shared libdgc... no

checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking return type of signal handlers... (cached) void
checking whether sockaddr_un has sun_len... (cached) no
checking for sig_atomic_t... (cached) yes
checking for cc_t... (cached) yes
checking for sig_t... (cached) yes
checking for getpassphrase... (cached) no

checking for sys_errlist... (cached) yes
checking for dlopen... (cached) yes
checking for shl_load... (cached) no
checking for setupterm... (cached) no
checking for tgetent... (cached) no
checking for gethostbyname2... (cached) yes
checking for gethostbyname_r... (cached) yes
checking for gethostbyaddr_r... (cached) yes
checking for getpwuid_r... (cached) yes
checking for getservbyname_r... (cached) yes
checking for memset... (cached) yes
checking for memcmp... (cached) yes
checking for memmove... (cached) yes
checking for strchr... (cached) yes
checking for strrchr... (cached) yes
checking for strdup... (cached) yes
checking for strerror... (cached) yes
checking for bcopy... (cached) yes
checking for bcmp... (cached) yes
checking for bzero... (cached) yes
checking for index... (cached) yes
checking for rindex... (cached) yes
checking for setenv... (cached) yes
checking for putenv... (cached) yes
checking for unsetenv... (cached) yes
checking for getenv... (cached) yes
checking for getdomainname... (cached) yes
checking for rresvport... (cached) yes
checking for sendmsg... (cached) yes
checking for setsid... (cached) yes
checking for setpgid... (cached) yes
checking for setpgrp... (cached) yes
checking for getifaddrs... (cached) yes
checking for waitpid... (cached) yes
checking for flock... (cached) yes
checking for dgettext... (cached) yes
checking for sigaction... (cached) yes
checking for sigprocmask... (cached) yes
checking for re_comp... (cached) yes
checking for strspn... (cached) yes
checking for getcwd... (cached) yes
checking for vfork... (cached) yes
checking for herror... (cached) yes
checking for genget... (cached) no
checking for getopt... (cached) yes
checking for vprintf... (cached) yes
checking whether setpgrp takes no argument... (cached) yes

checking for finger... (cached) /usr/bin/finger
checking for traceroute... (cached) /bin/traceroute
checking for ping... (cached) /bin/ping

checking shared library support... lflags: -shared cflags: -fpic
creating ./config.status
creating Makefile
creating lib/Makefile
creating test/Makefile
creating shlib/Makefile
creating shlib/runsocks
creating server/Makefile
creating server/stopsocks
creating include/Makefile
creating clients/Makefile
creating clients/pt/Makefile
creating clients/ftp/Makefile
creating clients/finger/Makefile
creating clients/archie/Makefile
creating clients/telnet/Makefile
creating clients/telnet/libtelnet/Makefile
creating stamp-h
creating include/config.h
include/config.h is unchanged



应该没错吧?

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
发表于 2011-05-17 09:19 |显示全部楼层
configure没错.
楼主看下readme和install那两个,看看是不是需要打patch.

论坛徽章:
0
发表于 2014-06-07 01:58 |显示全部楼层
感谢啊,好几年过去了这个问题忘记是否解决了,照现在的经验来看应该是缺少什么软件包了哈哈回复 7# chenyx


   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP