- 0
Sign in to follow this
Followers
0
Error in compiling using Centos OS but no error in compiling in Win OS
Asked by
chojuro
-
Recently Browsing 0 members
No registered users viewing this page.
/root/server$ make sql MAKE mt19937ar make[1]: Entering directory `/root/server/3rdparty/mt19937ar' CC mt19937ar.c make[1]: Leaving directory `/root/server/3rdparty/mt19937ar' MAKE libconfig make[1]: Entering directory `/root/server/3rdparty/libconfig' CC libconfig.c CC grammar.c CC scanctx.c CC scanner.c CC strbuf.c make[1]: Leaving directory `/root/server/3rdparty/libconfig' MAKE common_sql make[1]: Entering directory `/root/server/src/common' MKDIR obj_all CC conf.c CC db.c CC des.c CC ers.c CC grfio.c CC HPM.c CC mapindex.c CC md5calc.c CC mutex.c CC nullpo.c CC random.c CC showmsg.c CC strlib.c CC sysinfo.c CC thread.c CC timer.c CC utils.c CC console.c CC core.c CC memmgr.c CC socket.c AR obj_all/common.a MKDIR obj_sql CC sql.c sql.c: In function ‘sql_defaults’: sql.c:1059:21: warning: assignment from incompatible pointer type [enabled by default] SQL->StmtBindParam = SqlStmt_BindParam; ^ AR obj_sql/common_sql.a CC console.c CC core.c CC memmgr.c CC socket.c AR obj_all/common_mini.a make[1]: Leaving directory `/root/server/src/common' MAKE login_sql make[1]: Entering directory `/root/server/src/login' MKDIR obj_sql account_sql.c: In function ‘mmo_auth_tosql’: account_sql.c:791:65: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] || SQL_SUCCESS != SQL->StmtBindParam(stmt, 0, SQLDT_INT, (void*)&acc->account_id, sizeof(acc->account_id)) ^ account_sql.c:792:65: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] || SQL_SUCCESS != SQL->StmtBindParam(stmt, 1, SQLDT_STRING, (void*)acc->userid, strlen(acc->userid)) ^ account_sql.c:793:65: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] || SQL_SUCCESS != SQL->StmtBindParam(stmt, 2, SQLDT_STRING, (void*)acc->pass, strlen(acc->pass)) ^ account_sql.c:794:65: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] || SQL_SUCCESS != SQL->StmtBindParam(stmt, 3, SQLDT_ENUM, (void*)&acc->sex, sizeof(acc->sex)) ^ account_sql.c:796:65: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] || SQL_SUCCESS != SQL->StmtBindParam(stmt, 5, SQLDT_INT, (void*)&acc->group_id, sizeof(acc->group_id)) ^ account_sql.c:797:65: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] || SQL_SUCCESS != SQL->StmtBindParam(stmt, 6, SQLDT_UINT, (void*)&acc->state, sizeof(acc->state)) ^ account_sql.c:798:65: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] || SQL_SUCCESS != SQL->StmtBindParam(stmt, 7, SQLDT_LONG, (void*)&acc->unban_time, sizeof(acc->unban_time)) ^ account_sql.c:799:65: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] || SQL_SUCCESS != SQL->StmtBindParam(stmt, 8, SQLDT_INT, (void*)&acc->expiration_time, sizeof(acc->expiration_time)) ^ account_sql.c:800:65: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] || SQL_SUCCESS != SQL->StmtBindParam(stmt, 9, SQLDT_UINT, (void*)&acc->logincount, sizeof(acc->logincount)) ^ account_sql.c:810:65: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] || SQL_SUCCESS != SQL->StmtBindParam(stmt, 13, SQLDT_UCHAR, (void*)&acc->char_slots, sizeof(acc->char_slots)) ^ account_sql.c:812:65: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] || SQL_SUCCESS != SQL->StmtBindParam(stmt, 15, SQLDT_LONG, (void*)&acc->pincode_change, sizeof(acc->pincode_change)) ^ account_sql.c:820:65: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] || SQL_SUCCESS != SQL->StmtBindParam(stmt, 0, SQLDT_STRING, (void*)acc->userid, strlen(acc->userid)) ^ account_sql.c:821:65: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] || SQL_SUCCESS != SQL->StmtBindParam(stmt, 1, SQLDT_STRING, (void*)acc->pass, strlen(acc->pass)) ^ account_sql.c:822:65: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] || SQL_SUCCESS != SQL->StmtBindParam(stmt, 2, SQLDT_ENUM, (void*)&acc->sex, sizeof(acc->sex)) ^ CC account_sql.c account_sql.c:823:65: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] || SQL_SUCCESS != SQL->StmtBindParam(stmt, 3, SQLDT_STRING, (void*)acc->email, strlen(acc->email)) ^ account_sql.c:824:65: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] || SQL_SUCCESS != SQL->StmtBindParam(stmt, 4, SQLDT_INT, (void*)&acc->group_id, sizeof(acc->group_id)) ^ account_sql.c:825:65: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] || SQL_SUCCESS != SQL->StmtBindParam(stmt, 5, SQLDT_UINT, (void*)&acc->state, sizeof(acc->state)) ^ account_sql.c:826:65: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] || SQL_SUCCESS != SQL->StmtBindParam(stmt, 6, SQLDT_LONG, (void*)&acc->unban_time, sizeof(acc->unban_time)) ^ account_sql.c:827:65: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] || SQL_SUCCESS != SQL->StmtBindParam(stmt, 7, SQLDT_LONG, (void*)&acc->expiration_time, sizeof(acc->expiration_time)) ^ account_sql.c:828:65: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] || SQL_SUCCESS != SQL->StmtBindParam(stmt, 8, SQLDT_UINT, (void*)&acc->logincount, sizeof(acc->logincount)) ^ account_sql.c:838:65: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] || SQL_SUCCESS != SQL->StmtBindParam(stmt, 12, SQLDT_UCHAR, (void*)&acc->char_slots, sizeof(acc->char_slots)) ^ account_sql.c:840:65: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] || SQL_SUCCESS != SQL->StmtBindParam(stmt, 14, SQLDT_LONG, (void*)&acc->pincode_change, sizeof(acc->pincode_change)) ^ CC HPMlogin.c CC ipban_sql.c CC lclif.c CC login.c CC loginlog_sql.c loginlog_sql.c: In function ‘loginlog_gepard_init’: loginlog_sql.c:122:6: warning: old-style function definition [-Wold-style-definition] void loginlog_gepard_init() { ^ LD login-server make[1]: Leaving directory `/root/server/src/login' MAKE char_sql make[1]: Entering directory `/root/server/src/char' MKDIR obj_sql CC char.c CC HPMchar.c CC loginif.c CC mapif.c CC geoip.c CC inter.c CC int_auction.c CC int_elemental.c CC int_guild.c CC int_homun.c int_homun.c: In function ‘mapif_homunculus_save’: int_homun.c:174:48: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] SQL->StmtBindParam(stmt, 0, SQLDT_USHORT, (void*)&hd->hskill[i].id, 0); // FIXME: StmtBindParam should take const void ^ int_homun.c:175:48: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] SQL->StmtBindParam(stmt, 1, SQLDT_USHORT, (void*)&hd->hskill[i].lv, 0); // FIXME: StmtBindParam should take const void ^ CC int_mail.c CC int_mercenary.c CC int_party.c CC int_pet.c CC int_quest.c CC int_storage.c CC pincode.c LD char-server make[1]: Leaving directory `/root/server/src/char' MAKE map_sql make[1]: Entering directory `/root/server/src/map' MKDIR obj_sql CC adelays.c adelays.c: In function ‘adelays_init’: adelays.c:124:5: warning: old-style function definition [-Wold-style-definition] int adelays_init() { ^ adelays.c: In function ‘adelays_battle_config_read’: adelays.c:131:5: warning: old-style function definition [-Wold-style-definition] int adelays_battle_config_read() { ^ adelays.c: In function ‘adelays_set_defaults’: adelays.c:156:6: warning: old-style function definition [-Wold-style-definition] void adelays_set_defaults() { ^ adelays.c: In function ‘adelays_getVersion’: adelays.c:162:7: warning: old-style function definition [-Wold-style-definition] float adelays_getVersion() { ^ adelays.c: In function ‘adelays_read_db’: adelays.c:223:5: warning: old-style function definition [-Wold-style-definition] int adelays_read_db() { ^ adelays.c: In function ‘adelays_is_enabled’: adelays.c:1222:5: warning: old-style function definition [-Wold-style-definition] int adelays_is_enabled(){ ^ CC atcommand.c atcommand.c: In function ‘atcommand_doom’: atcommand.c:2997:4: warning: passing argument 2 of ‘status->percent_change’ discards ‘const’ qualifier from pointer target type [enabled by default] status_kill(&pl_sd->bl); ^ atcommand.c:2997:4: note: expected ‘struct block_list *’ but argument is of type ‘const struct block_list *’ atcommand.c:2998:4: warning: passing argument 1 of ‘clif->specialeffect’ discards ‘const’ qualifier from pointer target type [enabled by default] clif->specialeffect(&pl_sd->bl,450,AREA); ^ atcommand.c:2998:4: note: expected ‘struct block_list *’ but argument is of type ‘const struct block_list *’ atcommand.c: In function ‘atcommand_leader’: atcommand.c:9492:33: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] else if ((pl_sd = map->nick2sd((char *)message)) == NULL) ^ atcommand.c: In function ‘atcommand_reportafk’: atcommand.c:9522:33: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] else if ((pl_sd = map->nick2sd((char *)message)) == NULL) ^ atcommand.c: In function ‘atcommand_shove’: atcommand.c:10038:28: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] if ((pl_sd = map->nick2sd((char*)message)) == NULL && (pl_sd = map->charid2sd(atoi(message))) == NULL) { ^ CC battle.c battle.c: In function ‘battle_calc_skillratio’: battle.c:2747:10: warning: declaration of ‘i’ shadows a previous local [-Wshadow] int i; ^ battle.c:1529:6: warning: shadowed declaration is here [-Wshadow] int i; ^ battle.c: In function ‘battle_weapon_attack’: battle.c:6369:29: warning: unused variable ‘d_sd’ [-Wunused-variable] struct map_session_data *d_sd = BL_CAST(BL_PC, d_bl); ^ battle.c:6368:27: warning: unused variable ‘d_md’ [-Wunused-variable] struct mercenary_data *d_md = BL_CAST(BL_MER, d_bl); ^ CC battleground.c battleground.c: In function ‘bg_checkskill’: battleground.c:96:45: warning: declaration of ‘bg’ shadows a global declaration [-Wshadow] int bg_checkskill(struct battleground_data *bg, int id) { ^ battleground.c:55:32: warning: shadowed declaration is here [-Wshadow] struct battleground_interface *bg; ^ battleground.c: In function ‘bg_block_skill_end’: battleground.c:122:2: warning: passing argument 4 of ‘clif->bg_message’ makes pointer from integer without a cast [enabled by default] clif->bg_message(bgd, bgd->bg_id, bgd->g->name, strlen(output) + 1); ^ battleground.c:122:2: note: expected ‘const char *’ but argument is of type ‘size_t’ battleground.c: In function ‘bg_block_skill_status’: battleground.c:142:2: warning: passing argument 4 of ‘clif->bg_message’ makes pointer from integer without a cast [enabled by default] clif->bg_message(bgd, bgd->bg_id, bgd->g->name, strlen(output) + 1); ^ battleground.c:142:2: note: expected ‘const char *’ but argument is of type ‘size_t’ battleground.c: In function ‘bg_team_leave’: battleground.c:404:4: warning: passing argument 4 of ‘clif->bg_message’ makes pointer from integer without a cast [enabled by default] clif->bg_message(bgd, bgd->bg_id, bgd->g->name, strlen(output) + 1); ^ battleground.c:404:4: note: expected ‘const char *’ but argument is of type ‘size_t’ battleground.c: In function ‘bg_create2’: battleground.c:472:31: warning: declaration of ‘mapindex’ shadows a global declaration [-Wshadow] int bg_create2(unsigned short mapindex, short rx, short ry, int guild_index, const char *ev, const char *dev){ ^ In file included from ../map/map.h:28:0, from battleground.h:24, from battleground.c:23: ../common/mapindex.h:121:37: warning: shadowed declaration is here [-Wshadow] HPShared struct mapindex_interface *mapindex; ^ battleground.c: In function ‘bg_send_xy_timer_sub’: battleground.c:589:4: error: too many arguments to function ‘clif->bg_message’ clif->bg_message(bgd, bgd->bg_id, bgd->g->name, output, strlen(output) + 1); ^ battleground.c: In function ‘bg_guild_build_data’: battleground.c:601:15: warning: declaration of ‘skill’ shadows a global declaration [-Wshadow] int i, j, k, skill; ^ In file included from ../map/unit.h:26:0, from ../map/homunculus.h:25, from battleground.c:28: ../map/skill.h:2171:34: warning: shadowed declaration is here [-Wshadow] HPShared struct skill_interface *skill; ^ battleground.c:605:8: warning: declaration of ‘path’ shadows a global declaration [-Wshadow] char path[256]; ^ In file included from ../map/unit.h:25:0, from ../map/homunculus.h:25, from battleground.c:28: ../map/path.h:76:33: warning: shadowed declaration is here [-Wshadow] HPShared struct path_interface *path; ^ battleground.c: In function ‘bg_team_getitem’: battleground.c:685:28: warning: declaration of ‘bg’ shadows a global declaration [-Wshadow] struct battleground_data *bg; ^ battleground.c:55:32: warning: shadowed declaration is here [-Wshadow] struct battleground_interface *bg; ^ make[1]: *** [obj_sql/battleground.o] Error 1 make: *** [map_sql] Error 2
Share this post
Link to post
Share on other sites