- 主题:请问如何停止telnet下的新用户注册而保留web的
恢复之后make还是有错。。。。
如果原来代码就有问题的话那我怎么能装好bbs系统并用了这么久了呢
【 在 jiangjun2000@newsmth.net-SPAM.no (%d) 的大作中提到: 】
: 先恢复register.c, make一下试试
: 估计你代码本来就有问题
--
FROM 202.121.105.*
还是报那个错误?
【 在 xqh@bbs.tongji.edu.cn-SPAM.no (xqh) 的大作中提到: 】
: 恢复之后make还是有错。。。。
: 如果原来代码就有问题的话那我怎么能装好bbs系统并用了这么久了呢
--
FROM 221.192.237.*
这个问题你问我我问谁呢, 呵呵
提醒你检查一下错误代码吧, 看看是否有人动过, 如果不是你一个人维护的话
【 在 xqh@bbs.tongji.edu.cn-SPAM.no (xqh) 的大作中提到: 】
: 恢复之后make还是有错。。。。
: 如果原来代码就有问题的话那我怎么能装好bbs系统并用了这么久了呢
--
FROM 159.226.37.*
make -s all-recursive
Making all in libsystem
[Compiling f_cat.c]
In file included from ../src/bbs.h:485,
from ../src/system.h:3,
from f_cat.c:2:
../src/vars.h:43: error: array type has incomplete element type
../src/vars.h:47: error: array type has incomplete element type
../src/vars.h:48: error: array type has incomplete element type
../src/vars.h:49: error: array type has incomplete element type
../src/vars.h:50: error: array type has incomplete element type
../src/vars.h:51: error: array type has incomplete element type
make[2]: *** [f_cat.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
【 在 foxban@newsmth.net-SPAM.no (长白发了....) 的大作中提到: 】
: 还是报那个错误?
--
FROM 202.121.105.*
没人动过啊,,,,,哭啊。
【 在 jiangjun2000@newsmth.net-SPAM.no (%d) 的大作中提到: 】
: 这个问题你问我我问谁呢, 呵呵
: 提醒你检查一下错误代码吧, 看看是否有人动过, 如果不是你一个人维护的话
--
FROM 202.121.105.*
你就看看src/vars.h的50行附近呗
【 在 xqh@bbs.tongji.edu.cn-SPAM.no (xqh) 的大作中提到: 】
: make -s all-recursive
: Making all in libsystem
: [Compiling f_cat.c]
: ...................
--
FROM 159.226.37.*
这是src/vars.h该位置的代码:
extern struct commands cmdlist[]; /* main menu command list */
extern jmp_buf byebye; /* Used for exception condition like I/O error */
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[];
报错的行是几个数组的位置。我的代码是smth 1.2的,不知道有何问题。之前没研究过源代码,惭愧。。。
【 在 jiangjun2000@newsmth.net-SPAM.no (%d) 的大作中提到: 】
: 你就看看src/vars.h的50行附近呗
--
FROM 202.121.105.*
应该是gcc版本太新了, 不认这个
你改成如下
extern struct commands *cmdlist;
【 在 xqh@bbs.tongji.edu.cn-SPAM.no (xqh) 的大作中提到: 】
: 这是src/vars.h该位置的代码:
: extern struct commands cmdlist[]; /* main menu command list */
: extern jmp_buf byebye; /* Used for exception condition like I/O error */
: ...................
--
FROM 159.226.37.*
赞,改成这样后不报这个错了。不过还报别的:
Making all in rzsz
[Compiling lsz.c]
lsz.c:57: error: static declaration of 'errors' follows non-static declaration
zglobal.h:171: error: previous declaration of 'errors' was here
lsz.c:58: error: static declaration of 'protocol' follows non-static declaration
zglobal.h:168: error: previous declaration of 'protocol' was here
make[2]: *** [lsz.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
是不是可以装个较低版本的gcc呢
【 在 jiangjun2000@newsmth.net-SPAM.no (%d) 的大作中提到: 】
: 应该是gcc版本太新了, 不认这个
: 你改成如下
: extern struct commands *cmdlist;
: ...................
--
FROM 202.121.105.*
这六句话tooold,通通注释掉
【 在 xqh@bbs.tongji.edu.cn-SPAM.no (xqh) 的大作中提到: 】
: 这是src/vars.h该位置的代码:
: extern struct commands cmdlist[]; /* main menu command list */
: extern jmp_buf byebye; /* Used for exception condition like I/O error */
: 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[];
: 报错的行是几个数组的位置。我的代码是smth 1.2的,不知道有何问题。之前没研究过源代码,惭愧。。。
--
FROM 128.12.150.*