1刊苍、解壓文件
2既们、拷貝本機(jī)編譯過的driver、addr_driver正什、portbind到bin目錄下啥纸。
3、修改lima.config配置文件:
lib目錄
bin目錄
4婴氮、運(yùn)行./addr_port 端口號(hào)
5斯棒、運(yùn)行./driver lima.config
報(bào)錯(cuò):
**********************************************************
* You have incorrectly compiled the MudOS driver. This *
* driver is not compatible with the LIMA mudlib. Please *
* make the following changes to 'options.h' (or *
* 'local_options' if it exists) in the driver source, *
* and recompile. *
**********************************************************
#define NO_ADD_ACTION is required for LIMA libs.
#undef OLD_ED is required for LIMA libs.
#define PACKAGE_PARSER is required for LIMA libs.
**********************************************************
按照上面說的修改mudos源碼目錄下的options.h文件。
重新編譯mudos:
gmake clean all
6主经、復(fù)制新生成的文件到bin下荣暮,重新運(yùn)行報(bào)錯(cuò):
/secure/simul_efun/misc.c line 734: Undefined function base_name before
用ctags -R *
生成tag list,然后vi -t tag
搜索base_name罩驻,在某個(gè)文件下找到base_name函數(shù)的定義穗酥,拷貝到misc.c文件即可解決。
7惠遏、運(yùn)行成功砾跃,使用telnet連接,創(chuàng)建新用戶報(bào)錯(cuò):
******** FATAL ERROR: Segmentation fault
MudOS driver attempting to exit gracefully.
(current object was /secure/user#4)
--- trace ---
Object: /secure/user#4, Program: <function>
in <function>() at
Object: /secure/user#4, Program: /secure/user/inputsys.c
in dispatch_modal_input() at /secure/user/inputsys.c:311
arguments were ("12345")
locals were: CLASS( 6 elements
(: login_handle_logon, 3, 0 :),
"Please enter your password: ",
1,
0,
0,
0
)
Object: /secure/user#4, Program: <function>
in <function>() at
'login_handle_logon' in '/ secure/user/login.c' ('/ secure/user#4') /secure/user/login.c:386
arguments were (3,0,"12345")
locals were: 0
--- end trace ---
crash() in master called successfully. Aborting.
已放棄 (core dumped)
直接定位到源碼中节吮,通過修改源碼解決抽高。