- 主题:cygwin下安装KBSBBS时出现的问题
在这一步时
2.5 安装 kbsbbs
同样切换到 $(SRCDIR) 目录,进入 kbsbbs 的源代码目录。编辑 site/devel.h
文件,加入下面这一行:
#define BUILD_PHP_EXTENSION 1 /*将php lib编成php extension */
然后执行下面的一系列命令:
./configure --prefix=/usr/local/bbs --enable-site=devel \
--with-www=/usr/local/www --with-php=/usr/local/include/php \
--without-mysql --enable-ssh
make
出现如下错误
In file included from ../src/bbs.h:168,
from site.c:1:
../src/site.h:51:1: warning: "BUILD_PHP_EXTENSION" redefined
../src/site.h:19:1: warning: this is the location of the previous definition
site.c: In function `auto_register':
site.c:91: error: too few arguments to function `post_file'
make[2]: *** [site.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
请问如何解决呀?多谢多谢
--
FROM 211.151.89.*
warning: "BUILD_PHP_EXTENSION" redefined
原文件中是否已经有了BUILD_PHP_EXTENSION的定义?
【 在 shenghongzhi (basia) 的大作中提到: 】
: 在这一步时
: 2.5 安装 kbsbbs
: 同样切换到 $(SRCDIR) 目录,进入 kbsbbs 的源代码目录。编辑 site/devel.h
: ...................
--
FROM 218.11.217.*
去掉加那一行也不行,还有没有可能的解决办法呀?多谢
【 在 roctall (蛇王阿奔) 的大作中提到: 】
: warning: "BUILD_PHP_EXTENSION" redefined
: 原文件中是否已经有了BUILD_PHP_EXTENSION的定义?
--
FROM 211.151.89.*
我觉得最关键可能是这句
site.c:91: error: too few arguments to function `post_file'
不过不知道怎么解决
【 在 shenghongzhi (basia) 的大作中提到: 】
: 去掉加那一行也不行,还有没有可能的解决办法呀?多谢
--
FROM 211.151.89.*
site.c:91行附近
看看是啥
【 在 shenghongzhi (basia) 的大作中提到: 】
: 我觉得最关键可能是这句
: site.c:91: error: too few arguments to function `post_file'
: 不过不知道怎么解决
: ...................
--
FROM 218.11.217.*
第91行就是
post_file(&deliveruser, "", fname, "Registry", genbuf, 0, 1);
我正在找少哪个参数。。找不到。。
【 在 roctall (蛇王阿奔) 的大作中提到: 】
: site.c:91行附近
: 看看是啥
--
修改:shenghongzhi FROM 211.151.89.*
FROM 211.151.89.*
附近的代码
fclose(fout);
//post_file(currentuser, "", fname, "Registry", str, 0, 2);
sprintf(genbuf, "%s 自动通过注册", ud.userid);
post_file(&deliveruser, "", fname, "Registry", genbuf, 0, 1);
/*
* if (( fout = fopen(logfile,"a")) != NULL)
* {
* fclose(fout);
* }
*/
【 在 shenghongzhi (basia) 的大作中提到: 】
: 第91行就是
: post_file(&deliveruser, "", fname, "Registry", genbuf, 0, 1);
: 我正在找少哪个参数。。找不到。。
: ...................
--
FROM 211.151.89.*
我grep了一下,使用到这个函数的地方,最后有一个getSession()参数,譬如
post_file(getCurrentUser(), "", fname, "syssecurity", str, 0, 2, getSession());
【 在 shenghongzhi (basia) 的大作中提到: 】
: 第91行就是
: post_file(&deliveruser, "", fname, "Registry", genbuf, 0, 1);
: 我正在找少哪个参数。。找不到。。
: ...................
--
FROM 218.11.217.*
多谢先
嗯,这行代码我也找到了,我在那行后面也加了一个,, getSession(),在洗澡的功夫make了一下,结果后面还有错误,唉。
fault.o calltime.o super_filter.o libtmpl.o msg_manager.o addr_manage.o libpc.o
personal_corp.o newread.o newhelp.o -Wl,--export-dynamic ../libsystem/.libs/li
system.a ../rzsz/.libs/libzmodem.a -lcygipc -L/usr/lib -lz -lpthread -L/usr/loc
l/lib -lesmtp /usr/lib/libltdl.dll.a
maintain.o(.text+0x11c0):maintain.c: undefined reference to `_groups'
maintain.o(.text+0x2c8e):maintain.c: undefined reference to `_groups'
maintain.o(.text+0x2caa):maintain.c: undefined reference to `_groups'
maintain.o(.text+0x2ccf):maintain.c: undefined reference to `_groups'
maintain.o(.text+0x2f9f):maintain.c: undefined reference to `_groups'
maintain.o(.text+0x2fb8):maintain.c: undefined reference to `_secname'
maintain.o(.text+0x3108):maintain.c: undefined reference to `_groups'
maintain.o(.text+0x311e):maintain.c: undefined reference to `_secname'
maintain.o(.text+0x6850):maintain.c: undefined reference to `_groups'
maintain.o(.text+0x8067):maintain.c: undefined reference to `_groups'
libann.o(.text+0x258a):libann.c: undefined reference to `_groups'
libann.o(.text+0x259c):libann.c: undefined reference to `_groups'
libann.o(.text+0x2611):libann.c: undefined reference to `_groups'
libann.o(.text+0x2629):libann.c: undefined reference to `_secname'
collect2: ld returned 1 exit status
make[2]: *** [bbsd.exe] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
【 在 roctall (蛇王阿奔) 的大作中提到: 】
: 我grep了一下,使用到这个函数的地方,最后有一个getSession()参数,譬如
: post_file(getCurrentUser(), "", fname, "syssecurity", str, 0, 2, getSession());
--
修改:shenghongzhi FROM 211.151.89.*
FROM 211.151.89.*