|
我在Red Hat linux ES4.0下配置好Vsftp,想让用户能够以Web方式修改密码, 下载chpasswd-2.1.tar包后进行如下操作后出错:
#tar xzvf chpasswd-2.1.tar
#[root@ftp chpasswd-2.1]# ./build.sh
create-html.sh for chpasswd 2.0, make by ml0dy
*** I founded the variable LANG set to zh_CN.UTF-8
*** I don't have this language version, so MAKE it (see README file)
conwerting... 'error1' file
conwerting... 'error2' file
conwerting... 'error3' file
conwerting... 'error4' file
conwerting... 'error5' file
conwerting... 'error6' file
conwerting... 'error7' file
conwerting... 'error8' file
conwerting... 'index' file
conwerting... 'ok' file
done.
Configure script for chpasswd 2.0, make by ml0dy <[email protected]>
...finded HTTP daemon (/usr/sbin/httpd)
...COOL, Apache HTTP daemon (ver.2.0.52)
...configure file: /etc/httpd/conf/httpd.conf
...Group = apache
CGI-BIN directory: /var/www/cgi-bin
...correcting Makefile
gcc -DHAVE_CONFIG_H -I. -O2 -Wall -c libs/commonio.c -o libs/commonio.o
gcc -DHAVE_CONFIG_H -I. -O2 -Wall -c libs/pwio.c -o libs/pwio.o
gcc -DHAVE_CONFIG_H -I. -O2 -Wall -c libs/shadowio.c -o libs/shadowio.o
gcc -DHAVE_CONFIG_H -I. -O2 -Wall -c libs/sgetpwent.c -o libs/sgetpwent.o
gcc -Wall -O2 -c salt.c
salt.c: In function `salt':
salt.c:23: warning: implicit declaration of function `clock'
gcc -Wall -O2 -c pw_encrypt.c
gcc -Wall -O2 -c md5_crypt.c
gcc -Wall -O2 -c des_crypt.c
gcc -Wall -O2 -c cgilib.c
gcc -Wall -O2 -c mgets.c
gcc -Wall -O2 -DHAVE_SHADOW -o chpasswd chpasswd.c salt.o pw_encrypt.o md5_crypt.o des_crypt.o cgilib.o mgets.o libs/pwio.o libs/shadowio.o libs/commonio.o libs/sgetpwent.o
In file included from chpasswd.c:32:
html.h:3: error: syntax error before '<' token
html.h:7: error: stray '\' in program
html.h:7: error: missing terminating " character
In file included from chpasswd.c:32:
html.h:12:9: warning: character constant too long for its type
html.h:15: error: stray '\' in program
html.h:15: error: missing terminating " character
html.h:18: error: missing terminating " character
html.h:25: error: stray '\' in program
html.h:25: error: missing terminating " character
html.h:30: error: missing terminating ' character
html.h:33: error: stray '\' in program
html.h:33: error: missing terminating " character
html.h:36: error: missing terminating " character
html.h:43: error: stray '\' in program
html.h:43: error: missing terminating " character
html.h:51: error: stray '\' in program
html.h:51: error: missing terminating " character
html.h:54: error: missing terminating " character
html.h:61: error: stray '\' in program
html.h:61: error: missing terminating " character
html.h:66: error: missing terminating ' character
html.h:69: error: stray '\' in program
html.h:69: error: missing terminating " character
html.h:72: error: missing terminating " character
html.h:79: error: stray '\' in program
html.h:79: error: missing terminating " character
html.h:87: error: stray '\' in program
html.h:87: error: missing terminating " character
html.h:90: error: missing terminating " character
html.h:97: error: stray '\' in program
html.h:97: error: missing terminating " character
html.h:102: error: missing terminating ' character
html.h:105: error: stray '\' in program
html.h:105: error: missing terminating " character
html.h:108: error: missing terminating " character
html.h:115: error: stray '\' in program
html.h:115: error: missing terminating " character
html.h:123: error: stray '\' in program
html.h:123: error: missing terminating " character
html.h:126: error: missing terminating " character
html.h:133: error: stray '\' in program
html.h:133: error: missing terminating " character
html.h:138: error: missing terminating ' character
html.h:141: error: stray '\' in program
html.h:141: error: missing terminating " character
html.h:144: error: missing terminating " character
html.h:151: error: stray '\' in program
html.h:151: error: missing terminating " character
html.h:154: error: stray '\' in program
html.h:154: error: missing terminating " character
html.h:155: error: stray '\' in program
html.h:155: error: missing terminating " character
html.h:157: error: stray '\' in program
html.h:157: error: missing terminating " character
html.h:158: error: stray '\' in program
html.h:158: error: missing terminating " character
html.h:159: error: stray '\' in program
html.h:159: error: missing terminating " character
html.h:162: error: stray '\' in program
html.h:162: error: missing terminating " character
html.h:163: error: stray '\' in program
html.h:163: error: missing terminating " character
html.h:164: error: stray '\' in program
html.h:164: error: missing terminating " character
html.h:167: error: stray '\' in program
html.h:167: error: missing terminating " character
html.h:168: error: stray '\' in program
html.h:168: error: missing terminating " character
html.h:169: error: stray '\' in program
html.h:169: error: missing terminating " character
html.h:172: error: stray '\' in program
html.h:172: error: missing terminating " character
html.h:173: error: stray '\' in program
html.h:173: error: missing terminating " character
html.h:174: error: stray '\' in program
html.h:174: error: missing terminating " character
html.h:177: error: stray '\' in program
html.h:177: error: missing terminating " character
html.h:178: error: stray '\' in program
html.h:178: error: missing terminating " character
html.h:179: error: stray '\' in program
html.h:179: error: missing terminating " character
html.h:180: error: stray '\' in program
html.h:180: error: missing terminating " character
html.h:185: error: stray '\' in program
html.h:185: error: missing terminating " character
html.h:188: error: missing terminating " character
html.h:195: error: stray '\' in program
html.h:195: error: missing terminating " character
html.h:202: error: stray '\' in program
html.h:202: error: missing terminating " character
html.h:205: error: missing terminating " character
chpasswd.c: In function `main':
chpasswd.c:79: error: missing terminating " character
chpasswd.c:79: error: too few arguments to function `printf'
chpasswd.c:89: error: missing terminating " character
chpasswd.c:89: error: too few arguments to function `printf'
chpasswd.c:93: error: missing terminating " character
chpasswd.c:93: error: too few arguments to function `printf'
chpasswd.c:98: error: missing terminating " character
chpasswd.c:98: error: too few arguments to function `printf'
chpasswd.c:103: error: missing terminating " character
chpasswd.c:103: error: too few arguments to function `printf'
chpasswd.c:105: error: missing terminating " character
chpasswd.c:105: error: too few arguments to function `printf'
chpasswd.c:114: error: missing terminating " character
chpasswd.c:114: error: too few arguments to function `printf'
chpasswd.c:121: error: missing terminating " character
chpasswd.c:121: error: too few arguments to function `printf'
chpasswd.c:125: error: missing terminating " character
chpasswd.c:125: error: too few arguments to function `printf'
chpasswd.c:127: error: missing terminating " character
chpasswd.c:127: error: too few arguments to function `printf'
make: *** [all] 閿欒? 1
cp chpasswd /var/www/cgi-bin/chpasswd.cgi
chown root /var/www/cgi-bin/chpasswd.cgi
chgrp apache /var/www/cgi-bin/chpasswd.cgi
chmod u+s /var/www/cgi-bin/chpasswd.cgi
chmod a-rx /var/www/cgi-bin/chpasswd.cgi
chmod g+rx /var/www/cgi-bin/chpasswd.cgi
[root@ftp chpasswd-2.1]#
出错了,这是怎么回事,请各位高手赐教一二! |
|