编译器采用 SUN Forte C++。目前只初步测试了 telnet 部分。
如果只是测试的话,可以在编译代码之前调整下面的数值,避开 shm 大小限制问题。
如果要实际使用的话,则还是调整系统的 shm 大小限制为好。
--- smthbbs-1.1.orig/src/uhashgen.h Fri Nov 14 00:31:09 2003
+++ smthbbs-1.1/src/uhashgen.h Sun Nov 16 20:11:30 2003
@@ -2,7 +2,7 @@
don't modify it
---- by wwj*/
-#define UCACHE_HASHSIZE 330000
+#define UCACHE_HASHSIZE 3300
#define UCACHE_HASHKCHAR 3
#define UCACHE_HASHBSIZE 374
typedef struct {
--- smthbbs-1.1.orig/site/devel.h Fri Nov 14 00:31:09 2003
+++ smthbbs-1.1/site/devel.h Fri Nov 14 22:38:45 2003
@@ -30,7 +30,16 @@
#define USE_DEFAULT_READ_PERM
#define USE_DEFAULT_SEE_PERM
#define REGISTER_TSINGHUA_WAIT_TIME (240*60)
-#define WWW_MAX_LOGIN 128
+#define MAXUSERS 32
+#define MAXCLUB 128
+#define MAXBOARD 256
+#define MAXACTIVE 8
+/* remeber: if MAXACTIVE>46656 need change get_telnet_sessionid,
+ * make the number of session char from 3 to 4
+ * */
+#define MAX_GUEST_NUM 8
+
+#define WWW_MAX_LOGIN 1
#define HAVE_WFORUM 1
源代码配置参数:
./configure '--prefix=/usr/local/bbs' '--enable-site=devel' '--disable-www' \
'--without-mysql' 'CC=cc' 'CFLAGS=-xCC -g'
用 gcc 编译应该也可以,但还没有测试过。
--
FROM 61.149.139.72