- 主题:安装ytht时make的问题
从ytht上下载的ythtbbs-0.1.tar.bz2
tar xjvf ythtbbs-0.1.tar.bz2后
cd ythtbbs-0.1
./configure #这里应该加什么参数吧
make 出现的错误,
--------------------------------------------------------
./bbstelnet.h:133: 错误:数组元素的类型不完全
./bbstelnet.h:141: 错误:数组元素的类型不完全
./bbstelnet.h:142: 错误:数组元素的类型不完全
./bbstelnet.h:143: 错误:数组元素的类型不完全
./bbstelnet.h:144: 错误:数组元素的类型不完全
./bbstelnet.h:145: 错误:数组元素的类型不完全
bbs.c: 在函数 ‘do_quote’ 中:
bbs.c:1513: 警告:传递参数 1 (属于 ‘void1’) 给指针时目标与指针有/无符号不一致
make[1]: *** [bbs-bbs.o] 错误 1
make[1]: Leaving directory `/root/ythtbbs-0.1/src'
make: *** [all] 错误 2
--------------------------------------------------------
其中类型不完全 在bbstelnet.h里是这有的
133 行extern struct bm currBM[]; /* BM of currently selected board */
141-145行
extern struct commands xyzlist[]; /* These are command lists for all the */
extern struct commands talklist[]; /* sub-menus */
extern struct commands maillist[];
extern struct commands dellist[];
extern struct commands maintlist[];
不知该如何改
--
FROM 218.104.71.*
【 在 pipiluxi (皮皮鲁西|2006->想去德国看世界杯) 的大作中提到: 】
: uid,gid的问题?
~~~~~~~~~~~~~~~~~~有什么要求吗?我都设的是501。 500也试过,还是出错
--
FROM 218.104.71.*
当然是501了,我在建用户的时候就设成501的。
现在的问题是那段错误提示是不是就是uid,gid的原因?
【 在 roctall (蛇王阿奔) 的大作中提到: 】
: 设置成什么,要看你系统内/etc/passwd文件里面bbs那一行写的什么
: 执行 grep "^bbs:" /etc/passwd 看看
--
修改:yutianl FROM 218.104.71.*
FROM 218.104.71.*
安装文档中的内容:
一: 建立bbs用户
使用下面的命令建立用户
$ su -
[root]# useradd -u9999 -g99 -d /home/bbs bbs
[root]# passwd bbs
添加bbs帐户,用户id是9999,组id是99,初始目录是/home/bbs ,目录可以按照需要改动。
……
三:配置编译参数
现在不需要用root权限,换成bbs用户吧。
[bbs]$ cd /home/src
[bbs]$ ./makedist.sh
[bbs]$ ./configure
Home directory of BBS --> [/home/bbs]
UID of BBS --> [9999]
GID of BBS --> [99]
USER of BBS --> [bbs]
The ID of your site --> [YTHT]
The name of your site --> [一塌糊涂 BBS]
The domain name of your site --> [ytht.net]
The ip address of your site --> [162.105.31.222]
The location of your site --> [北京大学]
Email of your bbs administrator --> [sysop@ytht.org]
Maximum number of users --> [250000]
Maximum number of boards --> [1000]
Maximum number of on-line users --> [30000]
Runtime Maximum number of on-line users --> [30000]
BBS listen port --> [23]
BBS listen port(BIG5) --> [2300]
MySQL DATABASE NAME --> [test]
MySQL USER NAME --> [test]
MySQL USER PASSWORD --> [test]
cgi install directory --> [/home/httpd/cgi-bin]
html install directory --> [/home/httpd/html/2001]
the initial mark string for webpage --> [Ytht.Net]
上面的信息,按照实际情况填写,如果不满意,可以重新运行 ./configure ,再次填写。
四:编译源代码并安装telnet服务
[bbs]$ make
这一步会自动编译安装 /home/src/ythtlib 和 /home/src/libythtbbs 下的内容,并编译
/home/src/src 和 /home/src/local_utl 下的内容。
到这就会出错了,错误信息:
--------------------------------------------------------
./bbstelnet.h:133: 错误:数组元素的类型不完全
./bbstelnet.h:141: 错误:数组元素的类型不完全
./bbstelnet.h:142: 错误:数组元素的类型不完全
./bbstelnet.h:143: 错误:数组元素的类型不完全
./bbstelnet.h:144: 错误:数组元素的类型不完全
./bbstelnet.h:145: 错误:数组元素的类型不完全
bbs.c: 在函数 ‘do_quote’ 中:
bbs.c:1513: 警告:传递参数 1 (属于 ‘void1’) 给指针时目标与指针有/无符号不一致
make[1]: *** [bbs-bbs.o] 错误 1
make[1]: Leaving directory `/root/ythtbbs-0.1/src'
make: *** [all] 错误 2
--------------------------------------------------------
其中类型不完全 在bbstelnet.h里是这有的
133 行extern struct bm currBM[]; /* BM of currently selected board */
141-145行
extern struct commands xyzlist[]; /* These are command lists for all the */
extern struct commands talklist[]; /* sub-menus */
extern struct commands maillist[];
extern struct commands dellist[];
extern struct commands maintlist[];
【 在 yuhuan (多拍拍自己,少拍拍别人) 的大作中提到: 】
: 把所有输入输出都贴出来
--
修改:yutianl FROM 218.104.71.*
FROM 218.104.71.*
果然是gcc4的问题,卸掉后顺利安装上,谢谢!
可惜www服务用不了,连上后只显示“It’s Works!”的页面,
还在寻找原因ing……
【 在 atppp (Big Mouse) 的大作中提到: 】
: 把出错的六句话注释掉。估计你的编译器是gcc4
--
FROM 218.104.71.*