dreamnb 发表于 2010-7-16 08:10:38

我理解这个adm/simul_efun/object.c line 60: Undefined function getuid
是不是就是因为#undef PACKAGE_UIDS????

dreamnb 发表于 2010-7-16 08:20:28

我理解PACKAGE_UIDS一定要define,否则就回提示adm/simul_efun/object.c line 60: Undefined function getuid
和adm/simul_efun/object.c line 79: Undefined function geteuid。

如果PACKAGE_UIDS是define后,可以出现
Connected to address server on localhost port 5555
include/globals.h line 103: Warning: redefinition of #define ROOM

]simul_efun loaded successfully.
include/globals.h line 103: Warning: redefinition of #define ROOM


Loading preloaded files ...
Initializations complete.

Accepting connections on port 8888.

说明已经启动了一部分,并且在8888端口监听了。但是连接8888的时候还是出现错误。
执行时段错误:*Object cannot be loaded during compilation.

程式:adm/single/simul_efun.c 第 12 行
物件: adm/single/simul_efun
呼叫来自:adm/single/master.c 的 connect() 第 17 行,物件: adm/single/master
呼叫来自:adm/single/master.c 的 CATCH() 第 17 行,物件: adm/single/master
呼叫来自:adm/single/master.c 的 log_error() 第 124 行,物件: adm/single/master
呼叫来自:adm/single/simul_efun.c 的 wizardp() 第 12 行,物件: adm/single/simul_efun
include/globals.h line 103: Warning: redefinition of #define ROOM

dreamnb 发表于 2010-7-16 08:21:49

icer老大,我把simul_efun.c和master.c也放上来,您给看看什么问题。
这两个文件在windows下面的mudos.exe是可以跑起来的

jason 发表于 2010-7-16 10:29:35

err = catch(login_ob = new(LOGIN_OB));
这句话引发的错误

dreamnb 发表于 2010-7-16 11:01:46

err = catch(login_ob = new(LOGIN_OB));
这句话引发的错误,请问如何修改呢?
我看ES2的代码是err = catch(ob = new(LOGIN_OB));
但是好像只是变量名不同,应该不是这个问题呀。。。。难道是catch函数问题?

[ 本帖最后由 dreamnb 于 2010-7-16 11:04 AM 编辑 ]

jason 发表于 2010-7-16 11:20:47

应该是和lib无关,还是mudos option的问题。

jason 发表于 2010-7-16 14:25:34

把你的options.h贴出来吧

dreamnb 发表于 2010-7-16 20:49:21

恩。确实是options.h。今天请教了下 黄小邪(北美xkx开发的wiz)。
告诉我是#define CAST_CALL_OTHERS选项,我原来设置成了undef了。
不过还是没有顺利运行起来,又提示新的错误了。

include/globals.h line 103: Warning: redefinition of #define ROOM

adm/simul_efun/chinese.c line 5: Type of returned value doesn't match function return type ( unknown vs string )
adm/simul_efun/chinese.c line 10: Type of returned value doesn't match function return type ( unknown vs string )
adm/simul_efun/wizard.c line 6: Type of returned value doesn't match function return type ( unknown vs string )
adm/simul_efun/wizard.c line 12: Bad left argument to '>' : "unknown "
adm/simul_efun/wizard.c line 17: Type of returned value doesn't match function return type ( unknown vs int )
adm/simul_efun/message.c line 11: Bad assignment ( string vs unknown ).
No error handler for error: *Error in loading object '/adm/single/simul_efun'
program: (none), object: (none), file: (none)
The simul_efun (/adm/single/simul_efun) and master (/adm/single/master) objects must be loadable.
~

目前登陆都剩下这些错误了,估计还是和options.h有关系。。。。不过我还在找,希望这里的高手也指点指点

dreamnb 发表于 2010-7-16 20:50:25

options.h我也发上来吧

jason 发表于 2010-7-17 11:59:38

你直接用一份标准的xkx的mudlib用的 options吧
页: 1 [2] 3
查看完整版本: MudOSv22pre11_For_Linux.zip 架设xkx2001求助!