当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 4 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : ubuntu下SOCKS5服务器可用哪一种?
帖子发表于 : 2008-05-05 15:32 

注册: 2008-05-05 15:20
帖子: 2
送出感谢: 0 次
接收感谢: 0 次
现在配了SQUID做HTTP代理,用户上网环境需要SOCKS5代理,尝试了两个SOCKS软件在ubuntu下都安装编译出错,信息如下,请问是否有适合ubuntu的SOCKS5服务器开源软件?

socks5-v1.0r11
代码:
gcc -I../../include -I./../../include  -D__USE_FIXED_PROTOTYPES__ -D_THREAD_SAFE  -DSOCKS  -DINCLUDE_PROTOTYPES    -c ./ftp.c
In file included from ./ftp.c:51:
/usr/lib/gcc/i486-linux-gnu/4.2.3/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/i486-linux-gnu/4.2.3/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
./ftp.c: In function 'command':
./ftp.c:244: error: expected declaration specifiers before 'va_dcl'
./ftp.c:291: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
./ftp.c:362: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
./ftp.c:461: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
./ftp.c:471: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
./ftp.c:482: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
./ftp.c:489: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
./ftp.c:503: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
./ftp.c:541: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
./ftp.c:648: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
./ftp.c:715: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
./ftp.c:963: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
./ftp.c:972: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
./ftp.c:1310: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'char'
./ftp.c:959: error: declaration for parameter 'recvabort' but no such parameter
./ftp.c:469: error: declaration for parameter 'sendabort' but no such parameter
./ftp.c:358: error: declaration for parameter 'reply_string' but no such parameter
./ftp.c:1318: warning: return makes integer from pointer without a cast
./ftp.c:1329: error: 'lmode' 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 `/soft/install/socks5-v1.0r11/clients/ftp'
make[2]: Entering directory `/soft/install/socks5-v1.0r11/clients/finger'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/soft/install/socks5-v1.0r11/clients/finger'
make[2]: Entering directory `/soft/install/socks5-v1.0r11/clients/archie'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/soft/install/socks5-v1.0r11/clients/archie'
make[2]: Entering directory `/soft/install/socks5-v1.0r11/clients/telnet'
make[3]: Entering directory `/soft/install/socks5-v1.0r11/clients/telnet/libtelnet'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/soft/install/socks5-v1.0r11/clients/telnet/libtelnet'
gcc -I. -I../../include -I./../../include  -D__USE_FIXED_PROTOTYPES__ -D_THREAD_SAFE   -DSOCKS -DINCLUDE_PROTOTYPES -DKLUDGELINEMODE  -c ./commands.c
In file included from ./commands.c:86:
/usr/lib/gcc/i486-linux-gnu/4.2.3/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/i486-linux-gnu/4.2.3/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
./commands.c: In function 'call':
./commands.c:2096: error: expected declaration specifiers before 'va_dcl'
./commands.c:2116: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'char'
./commands.c:2120: error: 'name' 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 'command':
./commands.c:2172: warning: assignment makes pointer from integer without a cast
./commands.c: In function 'help':
./commands.c:2225: warning: assignment makes pointer from integer without a cast
./commands.c: In function 'cmdrc':
./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 `/soft/install/socks5-v1.0r11/clients/telnet'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/soft/install/socks5-v1.0r11/clients'
make: *** [clients] Error 2




ss5

代码:
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for main in -ldl... yes
checking for main in -lldap... no
checking for main in -lpam... no
checking for main in -lpam_misc... no
checking for main in -lpthread... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking security/pam_misc.h usability... no
checking security/pam_misc.h presence... no
checking for security/pam_misc.h... no
configure: error: *** Some of the headers weren't found ***



页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2008-05-05 16:18 

注册: 2008-05-05 15:20
帖子: 2
送出感谢: 0 次
接收感谢: 0 次
刚刚我导入REDHAD的include文件,再更新一下libmcrypt错误会少一点,但还有错误,不能编译成功,不过UBUNTU怎么少这么多库文件,有没有快速更新的办法?

代码:
......
gcc  -o balamgr.cgi balamgr.o -lpthread -rdynamic -ldl -lldap -lpam -lpam_misc
/usr/bin/ld: cannot find -lldap
collect2: ld returned 1 exit status
make[2]: *** [balamgr.cgi] Error 1
make[2]: Leaving directory `/soft/install/ss5-3.6.4/modules/mod_balance'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/soft/install/ss5-3.6.4/modules'
make: *** [modules] Error 2



页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2008-05-05 18:46 

注册: 2008-04-04 22:38
帖子: 13
送出感谢: 0 次
接收感谢: 0 次
试试ANTINAT吧,我也是在坛了里看到的,好像不能配EBORDER


页首
 用户资料  
 
4 楼 
 文章标题 :
帖子发表于 : 2008-06-25 22:52 

注册: 2007-07-16 14:27
帖子: 1
送出感谢: 0 次
接收感谢: 0 次
缺少pam的devel估计是

建议楼主apt-get install pam*

我在centos下是yum -y install pam*
就可以解决问题


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 4 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 4 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译