顯示廣告
隱藏 ✕
看板 mud_3y
作者 jakeuj (御星幻)
標題 Re: 關於源碼
時間 2012年04月16日 Mon. PM 10:14:49

jakeuj@jakeuj-virtual-machine:~/mud/src$ make clean; make
Cleaning all object files and merc
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe act_comm.c
act_comm.c: In function 「do_suicide」:
act_comm.c:2369:9: 警告: ignoring return value of 「system」, declared with attribute warn_unused_result [-Wunused-result]
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe act_info.c
act_info.c: In function 「do_time」:
act_info.c:1540:20: 警告: variable 「sTime」 set but not used [-Wunused-but-set-variable]
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe act_move.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe act_obj.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe act_wiz.c
act_wiz.c: In function 「do_rstat」:
act_wiz.c:717:21: 警告: variable 「owner」 set but not used [-Wunused-but-set-variable]
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe alias.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe angel.c
angel.c: In function 「angel_note」:
angel.c:1564:15: 警告: variable 「notes」 set but not used [-Wunused-but-set-variable]
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe ansi.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe arena.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe auction.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe automap.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe badfriend.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe bit.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe board.c
board.c: In function 「do_board」:
board.c:64:16: 警告: variable 「count」 set but not used [-Wunused-but-set-variable]
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe body.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe bounty.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe buffer.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe bus.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe chance.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe check.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe class.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe club.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe comm.c
comm.c: In function 「game_loop」:
comm.c:725:5: 警告: 「sigsetmask」 is deprecated (declared at /usr/include/signal.h:199) [-Wdeprecated-declarations]
comm.c:735:5: 警告: 「sigsetmask」 is deprecated (declared at /usr/include/signal.h:199) [-Wdeprecated-declarations]
comm.c:778:14: 警告: 「connect」 上的運算結果可能是未定義的 [-Wsequence-point]
comm.c:789:14: 警告: 「connect」 上的運算結果可能是未定義的 [-Wsequence-point]
comm.c:804:14: 警告: 「connect」 上的運算結果可能是未定義的 [-Wsequence-point]
comm.c: In function 「new_descriptor」:
comm.c:1125:34: 警告: 傳遞參數 3 (屬於 「getsockname」) 給指標時目的與指標有/無號不一致 [-Wpointer-sign]
/usr/include/x86_64-linux-gnu/sys/socket.h:119:12: 附註: expected 「socklen_t * __restrict__」 but argument is of type 「int *」
comm.c:1127:42: 警告: 傳遞參數 3 (屬於 「accept」) 給指標時目的與指標有/無號不一致 [-Wpointer-sign]
/usr/include/x86_64-linux-gnu/sys/socket.h:214:12: 附註: expected 「socklen_t * __restrict__」 but argument is of type 「int *」
comm.c:1184:36: 警告: 傳遞參數 3 (屬於 「getpeername」) 給指標時目的與指標有/無號不一致 [-Wpointer-sign]
/usr/include/x86_64-linux-gnu/sys/socket.h:133:12: 附註: expected 「socklen_t * __restrict__」 but argument is of type 「int *」
comm.c: In function 「process_output」:
comm.c:1812:12: 警告: format 「%d」 expects argument of type 「int」, but argument 3 has type 「long unsigned int」 [-Wformat]
comm.c: In function 「game_loop」:
comm.c:660:28: 警告: ignoring return value of 「fopen」, declared with attribute warn_unused_result [-Wunused-result]
comm.c: In function 「main」:
comm.c:458:9: 警告: ignoring return value of 「getcwd」, declared with attribute warn_unused_result [-Wunused-result]
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe database.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe db.c
db.c: In function 「reset_area」:
db.c:624:21: 警告: variable 「level」 set but not used [-Wunused-but-set-variable]
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe deposit.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe edit.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe enable.c
enable.c: In function 「do_enable」:
enable.c:148:32: 警告: 「pSkill」 上的運算結果可能是未定義的 [-Wsequence-point]
enable.c:154:32: 警告: 「pSkill」 上的運算結果可能是未定義的 [-Wsequence-point]
enable.c:160:31: 警告: 「pSkill」 上的運算結果可能是未定義的 [-Wsequence-point]
enable.c:166:30: 警告: 「pSkill」 上的運算結果可能是未定義的 [-Wsequence-point]
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe enemy.c
enemy.c: In function 「is_enemy」:
enemy.c:126:3: 警告: 隱含宣告函式 「strcmp」 [-Wimplicit-function-declaration]
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe enroll.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe event.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe ex_spell.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe fcntl.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe ff7.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe fight.c
fight.c: In function 「violence_update」:
fight.c:107:7: 警告: 隱含宣告函式 「abs」 [-Wimplicit-function-declaration]
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe file.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe free.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe friend.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe fs.c
fs.c: In function 「glob_file」:
fs.c:1964:8: 警告: ignoring return value of 「chdir」, declared with attribute warn_unused_result [-Wunused-result]
fs.c: In function 「scan_directory」:
fs.c:1870:10: 警告: ignoring return value of 「chdir」, declared with attribute warn_unused_result [-Wunused-result]
fs.c:1875:8: 警告: ignoring return value of 「chdir」, declared with attribute warn_unused_result [-Wunused-result]
fs.c: In function 「do_ls」:
fs.c:1311:10: 警告: ignoring return value of 「chdir」, declared with attribute warn_unused_result [-Wunused-result]
fs.c:1317:8: 警告: ignoring return value of 「chdir」, declared with attribute warn_unused_result [-Wunused-result]
fs.c: In function 「do_grep」:
fs.c:1080:10: 警告: ignoring return value of 「chdir」, declared with attribute warn_unused_result [-Wunused-result]
fs.c:1086:8: 警告: ignoring return value of 「chdir」, declared with attribute warn_unused_result [-Wunused-result]
fs.c: In function 「do_rm」:
fs.c:383:10: 警告: ignoring return value of 「chdir」, declared with attribute warn_unused_result [-Wunused-result]
fs.c:389:8: 警告: ignoring return value of 「chdir」, declared with attribute warn_unused_result [-Wunused-result]
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe function.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe gamble.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe gift.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe handler.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe hero.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe hire.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe ini.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe interp.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe ipc.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe job.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe limit.c
limit.c: In function 「check_hand」:
limit.c:33:16: 警告: variable 「kind」 set but not used [-Wunused-but-set-variable]
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe load.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe lotto.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe magic.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe make.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe mem.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe mob_comm.c
mob_comm.c: In function 「do_mpmload」:
mob_comm.c:525:20: 警告: variable 「victim」 set but not used [-Wunused-but-set-variable]
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe mob_prog.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe mount.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe net.c
net.c: In function 「launch_internal」:
net.c:459:35: 警告: 傳遞參數 3 (屬於 「getsockname」) 給指標時目的與指標有/無號不一致 [-Wpointer-sign]
/usr/include/x86_64-linux-gnu/sys/socket.h:119:12: 附註: expected 「socklen_t * __restrict__」 but argument is of type 「int *」
net.c:461:43: 警告: 傳遞參數 3 (屬於 「accept」) 給指標時目的與指標有/無號不一致 [-Wpointer-sign]
/usr/include/x86_64-linux-gnu/sys/socket.h:214:12: 附註: expected 「socklen_t * __restrict__」 but argument is of type 「int *」
net.c:476:35: 警告: 傳遞參數 3 (屬於 「getpeername」) 給指標時目的與指標有/無號不一致 [-Wpointer-sign]
/usr/include/x86_64-linux-gnu/sys/socket.h:133:12: 附註: expected 「socklen_t * __restrict__」 but argument is of type 「int *」
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe object.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe quest.c
quest.c: In function 「do_task」:
quest.c:505:7: 警告: 隱含宣告函式 「strcmp」 [-Wimplicit-function-declaration]
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe question.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe random.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe reload.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe routine.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe save.c
save.c: In function 「fwrite_char」:
save.c:381:5: 警告: 格式字串不是一個字面字串而且沒有待格式化的引數 [-Wformat-security]
save.c: In function 「fwrite_obj」:
save.c:606:3: 警告: 格式字串不是一個字面字串而且沒有待格式化的引數 [-Wformat-security]
save.c: In function 「fread_char」:
save.c:836:17: 警告: variable 「useless」 set but not used [-Wunused-but-set-variable]
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe ship.c
ship.c: In function 「do_ship」:
ship.c:57:22: 警告: 「pArea」 上的運算結果可能是未定義的 [-Wsequence-point]
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe signal.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe skill.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe scan.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe script.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe socket.c
socket.c: In function 「get_user_name」:
socket.c:57:35: 警告: 傳遞參數 3 (屬於 「getsockname」) 給指標時目的與指標有/無號不一致 [-Wpointer-sign]
/usr/include/x86_64-linux-gnu/sys/socket.h:119:12: 附註: expected 「socklen_t * __restrict__」 but argument is of type 「int *」
socket.c: In function 「do_tcp」:
socket.c:739:10: 警告: ignoring return value of 「fread」, declared with attribute warn_unused_result [-Wunused-result]
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe special.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe spell.c
spell.c: In function 「cast_locate_object」:
spell.c:797:14: 警告: variable 「buf」 set but not used [-Wunused-but-set-variable]
spell.c: In function 「cast_dispel_magic」:
spell.c:2057:17: 警告: variable 「lev」 set but not used [-Wunused-but-set-variable]
spell.c: In function 「cast_magic_power」:
spell.c:5258:15: 警告: variable 「chance」 set but not used [-Wunused-but-set-variable]
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe spirit.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe stock.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe string.c
string.c: In function 「do_test」:
string.c:94:22: 警告: variable 「temp」 set but not used [-Wunused-but-set-variable]
string.c:80:21: 警告: variable 「found」 set but not used [-Wunused-but-set-variable]
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe system.c
system.c: In function 「open_loading_file」:
system.c:1102:9: 警告: ignoring return value of 「fscanf」, declared with attribute warn_unused_result [-Wunused-result]
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe tick.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe top.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe update.c
update.c: In function 「advance_level」:
update.c:78:16: 警告: 「add_mana」 上的運算結果可能是未定義的 [-Wsequence-point]
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe wanted.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe wedding.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe wizard.c
wizard.c: In function 「do_nuke」:
wizard.c:2192:9: 警告: ignoring return value of 「system」, declared with attribute warn_unused_result [-Wunused-result]
wizard.c: In function 「system_cleanup」:
wizard.c:1724:21: 警告: ignoring return value of 「system」, declared with attribute warn_unused_result [-Wunused-result]
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe variable.c
gcc -c -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -Wall -pipe vote.c
Linkng Merc ...
gcc -O3 -fomit-frame-pointer -Wstrict-prototypes -lcrypt   -o merc act_comm.o act_info.o act_move.o act_obj.o act_wiz.o alias.o angel.o ansi.o arena.o auction.o automap.o badfriend.o bit.o board.o body.o bounty.o buffer.o bus.o chance.o check.o class.o club.o comm.o database.o db.o deposit.o edit.o enable.o enemy.o enroll.o event.o ex_spell.o fcntl.o ff7.o fight.o file.o free.o friend.o fs.o function.o gamble.o gift.o handler.o hero.o hire.o ini.o interp.o ipc.o job.o limit.o load.o lotto.o magic.o make.o mem.o mob_comm.o mob_prog.o mount.o net.o object.o quest.o question.o random.o reload.o routine.o save.o ship.o signal.o skill.o scan.o script.o socket.o special.o spell.o spirit.o stock.o string.o system.o tick.o top.o update.o wanted.o wedding.o wizard.o variable.o vote.o
comm.o: In function `nanny':
comm.c:(.text+0x73ba): undefined reference to `crypt'
comm.c:(.text+0x74ad): undefined reference to `crypt'
comm.c:(.text+0x7c9f): undefined reference to `crypt'
act_comm.o: In function `do_retire':
act_comm.c:(.text+0x4b03): undefined reference to `crypt'
act_comm.o: In function `do_suicide':
act_comm.c:(.text+0x562b): undefined reference to `crypt'
act_info.o:act_info.c:(.text+0x8627): more undefined references to `crypt' follow
collect2: ld 回傳 1
make: *** [merc] Error 1

一堆警告... -lcrypt 的位置錯了嗎? (跟gcc不太熟)

--
※ 作者: jakeuj 時間: 2012-04-16 22:14:49
※ 編輯: jakeuj 時間: 2012-04-16 22:39:25
※ 同主題文章:
  04-14 16:00 jakeuj □ 關於源碼
  04-16 11:27 kasase Re 關於源碼
● 04-16 22:14 jakeuj Re 關於源碼
※ 看板: mud_3y 文章推薦值: 0 目前人氣: 0 累積人氣: 467 
分享網址: 複製 已複製
1樓 時間: 2012-04-16 23:11:21 (台灣)
  04-16 23:11 TW
位置沒問題,你檢查有沒有crypt這lib,那邊你需要自己嘗試看看
沒有了話是要去找來裝嗎?
r)回覆 e)編輯 d)刪除 M)收藏 ^x)轉錄 同主題: =)首篇 [)上篇 ])下篇