2005年12月31日

一直用源码安装samba总是出现不少问题,今天在faroda 4下使用光盘自带的rpm文件安装,超级顺利,然后编辑/usr/local/samba下的smb.conf示例文件就搞定了。

2005年12月28日

连续几次在redhat fedara4上安装socks5都出现如下错误,不知道是不是redaro的版本问题.版本信息

uname -a
Linux localhost.localdomain 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:55:56 EDT 2005 i686 i686 i386 GNU/Linux

—-

使用的源码文件是socks5-v1.0r11.tar.gz,解压缩后,首先./configure –with-threads正常,然后make的时候最后出现如下错误:

[root@localhost socks5-v1.0r11]# make
make[1]: Entering directory `/root/socks5-v1.0r11/server’
make[1]: Leaving directory `/root/socks5-v1.0r11/server’
make[1]: Entering directory `/root/socks5-v1.0r11/lib’
make[1]: Nothing to be done for `all’.
make[1]: Leaving directory `/root/socks5-v1.0r11/lib’
make[1]: Entering directory `/root/socks5-v1.0r11/lib’
make[1]: Nothing to be done for `all’.
make[1]: Leaving directory `/root/socks5-v1.0r11/lib’
make[1]: Entering directory `/root/socks5-v1.0r11/clients’
make[2]: Entering directory `/root/socks5-v1.0r11/clients/pt’
make[2]: Nothing to be done for `all’.
make[2]: Leaving directory `/root/socks5-v1.0r11/clients/pt’
make[2]: Entering directory `/root/socks5-v1.0r11/clients/ftp’
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/i386-redhat-linux/4.0.0/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/i386-redhat-linux/4.0.0/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
./ftp.c:244: error: syntax error before 鈥榲a_dcl鈥
./ftp.c:244: error: syntax error before 鈥榹鈥?token
./ftp.c:250: error: redefinition of 鈥榓brtflag鈥
./ftp.c:79: error: previous definition of 鈥榓brtflag鈥?was here
./ftp.c:250: warning: data definition has no type or storage class
./ftp.c:251: error: syntax error before 鈥榠f鈥
./ftp.c:254: warning: parameter names (without types) in function declaration
./ftp.c:254: warning: data definition has no type or storage class
./ftp.c:255: error: conflicting types for 鈥榝mt鈥
./ftp.c:246: error: previous declaration of 鈥榝mt鈥?was here
./ftp.c:255: error: 鈥榓p鈥?undeclared here (not in a function)
./ftp.c:255: error: syntax error before 鈥榗har鈥
./ftp.c:260: warning: parameter names (without types) in function declaration
./ftp.c:260: warning: data definition has no type or storage class
./ftp.c:262: error: syntax error before string constant
./ftp.c:262: error: conflicting types for 鈥榩rintf鈥
./ftp.c:262: note: a parameter list with an ellipsis can鈥檛 match an empty parameter name list declaration
./ftp.c:262: warning: data definition has no type or storage class
./ftp.c:263: warning: parameter names (without types) in function declaration
./ftp.c:263: warning: data definition has no type or storage class
./ftp.c:264: error: syntax error before 鈥榼鈥?token
./ftp.c:268: warning: data definition has no type or storage class
./ftp.c:269: error: syntax error before 鈥榬eturn鈥
./ftp.c:272: error: conflicting types for 鈥榦ldintr鈥
./ftp.c:248: error: previous declaration of 鈥榦ldintr鈥?was here
./ftp.c:272: warning: initialization makes integer from pointer without a cast
./ftp.c:272: error: initializer element is not constant
./ftp.c:272: warning: data definition has no type or storage class
./ftp.c:274: warning: parameter names (without types) in function declaration
./ftp.c:274: warning: data definition has no type or storage class
./ftp.c:275: error: conflicting types for 鈥榝mt鈥
./ftp.c:246: error: previous declaration of 鈥榝mt鈥?was here
./ftp.c:275: error: syntax error before 鈥榗har鈥
./ftp.c:276: warning: parameter names (without types) in function declaration
./ftp.c:276: error: conflicting types for 鈥楽OCKSvfprintf鈥
./ftp.c:276: note: a parameter list with an ellipsis can鈥檛 match an empty parameter name list declaration
../../include/socks.h:38: error: previous declaration of 鈥楽OCKSvfprintf鈥?was here
./ftp.c:276: warning: data definition has no type or storage class
./ftp.c:277: warning: parameter names (without types) in function declaration
./ftp.c:277: warning: data definition has no type or storage class
./ftp.c:279: warning: parameter names (without types) in function declaration
./ftp.c:279: warning: data definition has no type or storage class
./ftp.c:281: warning: data definition has no type or storage class
./ftp.c:282: warning: passing argument 1 of 鈥榮trcmp鈥?makes pointer from integer without a cast
./ftp.c:282: error: initializer element is not constant
./ftp.c:282: warning: data definition has no type or storage class
./ftp.c:284: error: syntax error before numeric constant
./ftp.c:284: error: conflicting types for 鈥楽ignal鈥
../../include/sigfix.h:20: error: previous definition of 鈥楽ignal鈥?was here
./ftp.c:284: warning: data definition has no type or storage class
./ftp.c: In function 鈥榞etreply鈥?
./ftp.c:372: warning: assignment makes pointer from integer without a cast
./ftp.c: In function 鈥榩roxtrans鈥?
./ftp.c:577: warning: assignment makes pointer from integer without a cast
./ftp.c: In function 鈥榮endrequest鈥?
./ftp.c:757: warning: assignment makes pointer from integer without a cast
./ftp.c:761: warning: assignment makes pointer from integer without a cast
./ftp.c:845: warning: assignment makes pointer from integer without a cast
./ftp.c: In function 鈥榬ecvrequest鈥?
./ftp.c:1015: warning: assignment makes pointer from integer without a cast
./ftp.c:1093: warning: assignment makes pointer from integer without a cast
./ftp.c: In function 鈥榩switch鈥?
./ftp.c:1365: warning: assignment makes pointer from integer without a cast
make[2]: *** [ftp.o] Error 1
make[2]: Target `all’ not remade because of errors.
make[2]: Leaving directory `/root/socks5-v1.0r11/clients/ftp’
make[2]: Entering directory `/root/socks5-v1.0r11/clients/finger’
make[2]: Nothing to be done for `all’.
make[2]: Leaving directory `/root/socks5-v1.0r11/clients/finger’
make[2]: Entering directory `/root/socks5-v1.0r11/clients/archie’
make[2]: Nothing to be done for `all’.
make[2]: Leaving directory `/root/socks5-v1.0r11/clients/archie’
make[2]: Entering directory `/root/socks5-v1.0r11/clients/telnet’
make[3]: Entering directory `/root/socks5-v1.0r11/clients/telnet/libtelnet’
make[3]: Nothing to be done for `all’.
make[3]: Leaving directory `/root/socks5-v1.0r11/clients/telnet/libtelnet’
gcc -I. -I../../include -I./../../include  -D__USE_FIXED_PROTOTYPES__ -D_THREAD_SAFE  -DHAVE_SETUPTERM  -DSOCKS -DINCLUDE_PROTOTYPES -DKLUDGELINEMODE  -c ./commands.c
In file included from ./commands.c:86:
/usr/lib/gcc/i386-redhat-linux/4.0.0/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/i386-redhat-linux/4.0.0/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
./commands.c:2096: error: syntax error before 鈥榲a_dcl鈥
./commands.c:2097: error: syntax error before 鈥榹鈥?token
./commands.c:2104: warning: parameter names (without types) in function declaration
./commands.c:2104: warning: data definition has no type or storage class
./commands.c:2105: error: conflicting types for 鈥榬outine鈥
./commands.c:2100: error: previous declaration of 鈥榬outine鈥?was here
./commands.c:2105: error: 鈥榓p鈥?undeclared here (not in a function)
./commands.c:2105: error: syntax error before 鈥榠ntrtn_t鈥
./commands.c:2109: warning: parameter names (without types) in function declaration
./commands.c:2109: warning: data definition has no type or storage class
./commands.c:2110: error: syntax error before 鈥榬eturn鈥
make[2]: *** [commands.o] Error 1
make[2]: Target `all’ not remade because of errors.
make[2]: Leaving directory `/root/socks5-v1.0r11/clients/telnet’
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/socks5-v1.0r11/clients’
make: *** [clients] Error 2

2005年12月27日

2005年12月21日

1.  下载socks5-v1.0r11.tar.gz/tmp目录

2.  tar -zxvf socks5-v1.0r11.tar.gz

3.  mv socks5-v1.0r11 socks5

4.  #./configure –with-threads
#make

这时出现如下错误:

make[2]: Target `all’ not remade because of errors.
make[2]: Leaving directory `/usr/src/redhat/SOURCES/socks5-v1.0r11/clients/telnet’
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/redhat/SOURCES/socks5-v1.0r11/clients’
make: *** [clients] Error 2

 

1.  http://www.squid-cache.org下载squid-2.2.STABLE4-src.tar.gz

2.将该文件拷贝到/tmp目录。

3.方便起见,mv squid-2.5.STABLE12 squid

执行./configure,可以用./configure -prefix=/usr/local/squid指定安装目录。系统默认安装目录为/usr/local/squid

2.  6.执行make all

3.  7.执行make install

4.  8.安装结束后,Squid的可执行文件在安装目录的bin子目录下,配置文件在etc子目录下。

2005年12月06日

有时候必须决定是要成为一个政客还是一位工程师,不可能两者都是。要成为政客就要使感觉超过事实,要成为工程师要使感觉服从于事实。它们是相反的,不能同时完成这两件事。

                                                                                        ---H.W.KENTON

2005年11月25日

昨天晚上,一哥们可能是出于个人兴趣,把DC上的组策略改掉了,导致今天上午有一片的员工登陆的时候出现桌面等同步出错。最后经过分析,是组策略自动将本地帐户administrator组中的所有帐户都删除了。临时解决办法:在桌面端,用域管理员帐户登陆,然后将客户帐户添加到本地administrator组,然后登陆,问题解决。治标不治本。还需要等改组策略的哥们来了以后弄清楚他到底改了组策略的什么东西

昨天晚上,一哥们可能是出于个人兴趣,把DC上的组策略改掉了,导致今天上午有一片的员工登陆的时候出现桌面等同步出错。最后经过分析,是组策略自动将本地帐户administrator组中的所有帐户都删除了。临时解决办法:在桌面端,用域管理员帐户登陆,然后将客户帐户添加到本地administrator组,然后登陆,问题解决。治标不治本。还需要等改组策略的哥们来了以后弄清楚他到底改了组策略的什么东西

2005年11月13日

I always has such a thounght that may be i should make myself to write sth in english everyday.

Today,when i called to mama,we talked about some inconsiderable things.I only want to know that my parents have the good mood and good conditions. I’m worried my familiy,i want to do sth for it,but i haven’t.

In the talk,mama  care my dining and quilt and others.

I will do my best for my mama and baba,I can do it,must!