- 主题:请问如何停止telnet下的新用户注册而保留web的
谢谢。
--
FROM 202.121.105.*
系统没有提供这个功能的么?好像有的bbs在某些时候会提示:本站暂不提供新用户注册,就是照您说的方法做的么?
【 在 jiangjun2000@newsmth.net-SPAM.no (%d) 的大作中提到: 】
: register.c
: 注册的时候不是输入new么?
: 把这段卡嚓掉
: ...................
--
FROM 202.121.105.*
修改后如何重新编译呢?谢谢
【 在 jiangjun2000@newsmth.net-SPAM.no (%d) 的大作中提到: 】
: 具体不清楚人家怎么做的
--
FROM 202.121.105.*
make之前要configure么?
我直接在源代码目录下make报错了。。。。
【 在 bsgirl@newsmth.net-SPAM.no (后街) 的大作中提到: 】
: 改代码
: make通过
: 发全站广播宣布要停站了
: ...................
--
FROM 202.121.105.*
当然configure过的。
我make的时候报错如下:
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
请帮忙看看,我就改了一下register.c,
【 在 fancyrabbit@newsmth.net-SPAM.no (兔兔猫★Initial F★那些故去的如果的事) 的大作中提到: 】
: 不用重新configure
: 难道你没configure过?那站怎么建起来的 ...
--
FROM 202.121.105.*
恢复之后make还是有错。。。。
如果原来代码就有问题的话那我怎么能装好bbs系统并用了这么久了呢
【 在 jiangjun2000@newsmth.net-SPAM.no (%d) 的大作中提到: 】
: 先恢复register.c, make一下试试
: 估计你代码本来就有问题
--
FROM 202.121.105.*
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该位置的代码:
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.*
赞,改成这样后不报这个错了。不过还报别的:
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.*