Jump to content
  • 0

Can't compile map-server_sql


ccjosh

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  66
  • Reputation:   6
  • Joined:  11/13/12
  • Last Seen:  

Hi Guys, 

 

Anyone knows how to solve this problem?

 

       CC      pc_groups.c
        CC      elemental.c
        CC      cashshop.c
In file included from cashshop.c:9:
cashshop.h:58:26: warning: no newline at end of file
cashshop.c:301:2: warning: no newline at end of file
        CC      mapreg_sql.c
        LD      map-server_sql
obj_sql/map.o: In function `do_final':
/opt/trunk/src/map/map.c:3570: undefined reference to `channel_delete'
/opt/trunk/src/map/map.c:3601: undefined reference to `do_final_channel'
obj_sql/map.o: In function `do_init':
/opt/trunk/src/map/map.c:3886: undefined reference to `do_init_channel'
obj_sql/clif.o: In function `clif_parse_WisMessage':
/opt/trunk/src/map/clif.c:10012: undefined reference to `channel_name2channel'
/opt/trunk/src/map/clif.c:10014: undefined reference to `channel_pc_haschan'
/opt/trunk/src/map/clif.c:10018: undefined reference to `channel_send'
/opt/trunk/src/map/clif.c:10018: undefined reference to `channel_join'
obj_sql/clif.o: In function `clif_parse_GlobalMessage':
/opt/trunk/src/map/clif.c:9631: undefined reference to `channel_send'
obj_sql/clif.o: In function `clif_parse_LoadEndAck':
/opt/trunk/src/map/clif.c:9327: undefined reference to `channel_mjoin'
obj_sql/pc.o: In function `pc_setpos':
/opt/trunk/src/map/pc.c:4785: undefined reference to `channel_pcquit'
obj_sql/atcommand.o: In function `atcommand_join':
/opt/trunk/src/map/atcommand.c:8776: undefined reference to `channel_pcjoin'
obj_sql/atcommand.o: In function `atcommand_channel':
/opt/trunk/src/map/atcommand.c:8890: undefined reference to `channel_pccolor'
/opt/trunk/src/map/atcommand.c:8884: undefined reference to `channel_pccreate'
/opt/trunk/src/map/atcommand.c:8888: undefined reference to `channel_display_list'
/opt/trunk/src/map/atcommand.c:8886: undefined reference to `channel_pcdelete'
/opt/trunk/src/map/atcommand.c:8892: undefined reference to `channel_pcjoin'
/opt/trunk/src/map/atcommand.c:8894: undefined reference to `channel_pcleave'
/opt/trunk/src/map/atcommand.c:8896: undefined reference to `channel_pcbind'
/opt/trunk/src/map/atcommand.c:8898: undefined reference to `channel_pcunbind'
/opt/trunk/src/map/atcommand.c:8904: undefined reference to `channel_pcban'
/opt/trunk/src/map/atcommand.c:8906: undefined reference to `channel_pcban'
/opt/trunk/src/map/atcommand.c:8908: undefined reference to `channel_pcsetopt'
obj_sql/atcommand.o: In function `atcommand_autotrade':
/opt/trunk/src/map/atcommand.c:5628: undefined reference to `channel_pcquit'
obj_sql/guild.o: In function `do_final_guild':
/opt/trunk/src/map/guild.c:2168: undefined reference to `channel_delete'
obj_sql/guild.o: In function `guild_broken':
/opt/trunk/src/map/guild.c:1719: undefined reference to `channel_delete'
obj_sql/guild.o: In function `guild_allianceack':
/opt/trunk/src/map/guild.c:1614: undefined reference to `channel_pcquit'
/opt/trunk/src/map/guild.c:1639: undefined reference to `channel_gjoin'
obj_sql/guild.o: In function `guild_recv_info':
/opt/trunk/src/map/guild.c:561: undefined reference to `channel_gjoin'
/opt/trunk/src/map/guild.c:550: undefined reference to `channel_create'
/opt/trunk/src/map/guild.c:552: undefined reference to `channel_ajoin'
obj_sql/guild.o: In function `guild_member_joined':
/opt/trunk/src/map/guild.c:733: undefined reference to `channel_gjoin'
obj_sql/guild.o: In function `guild_member_withdraw':
/opt/trunk/src/map/guild.c:879: undefined reference to `channel_pcquit'
obj_sql/unit.o: In function `unit_free':
/opt/trunk/src/map/unit.c:2306: undefined reference to `channel_pcquit'
collect2: ld returned 1 exit status
make[1]: *** [map-server_sql] Error 1
make[1]: Leaving directory `/opt/trunk/src/map'
make: *** [map_sql] Error 2

 

Thanks!

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

svn up  && ./configure && make clean sql

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

svn up  && ./configure && make clean sql

i was follow ur command

 

but stil get erro like this

clif.c: In function 'clif_parse_LoadEndAck':
clif.c:9368: error: 'struct map_flag' has no member named 'chmautojoin'
make[1]: *** [obj_sql/clif.o] Error 1
make[1]: Leaving directory `/root/trunk/src/map'
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

please check map.h you have a missing atribute in here. : map_data => struct map_flag.

probably due to some custom fail update/conflit or whatever.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

please check map.h you have a missing atribute in here. : map_data => struct map_flag.

probably due to some custom fail update/conflit or whatever.

oke thx lighta my mistake

 

but i got warning like this when finish compile

 

atcommand.c: In function 'autoatpots_timer':
atcommand.c:8513: warning: suggest parentheses around '&&' within '||'
atcommand.c: At top level:
atcommand.c:8904: warning: 'atcommand_afk' defined but not used
        CC      battle.c
battle.c: In function 'battle_calc_normal_damage':
battle.c:1397: warning: suggest parentheses around '&&' within '||'
battle.c:1398: warning: suggest parentheses around '&&' within '||'
battle.c:1400: warning: suggest parentheses around '&&' within '||'
battle.c:1377: warning: unused variable 'sd'
battle.c: In function 'battle_SAD':
battle.c:1705: warning: suggest parentheses around '&&' within '||'
battle.c:1706: warning: suggest parentheses around '&&' within '||'
battle.c:1707: warning: suggest parentheses around '&&' within '||'
battle.c:1708: warning: suggest parentheses around '&&' within '||'
battle.c: In function 'battle_calc_misc_attack':
battle.c:4662: warning: suggest parentheses around assignment used as truth valu
e

can u help what must i do to fix it?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

atcommand.c:8904: warning: 'atcommand_afk' defined but not used.

That mean like he's saying that you put that variable there but never using afterward so there was no point of having it, meaning you could remove it.

 

battle.c: In function 'battle_SAD':
battle.c:1705: warning: suggest parentheses around '&&' within '||'

That a custom dunno if I could really help be he face that dilemna :

if(a && b || c)
so should he do "(a and B) or c", or "a and (b or c)" he's quite lost about wich condition you want and ask for clarification, (with parenthesis like this explication)

 

atcommand.c: In function 'autoatpots_timer':
atcommand.c:8513: warning: suggest parentheses around '&&' within '||'

same as precedent issues.

 

battle.c: In function 'battle_calc_misc_attack':
battle.c:4662: warning: suggest parentheses around assignment used as truth value

idk at all this one, try google or show the line I might see what wrong

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

atcommand.c:8904: warning: 'atcommand_afk' defined but not used.

That mean like he's saying that you put that variable there but never using afterward so there was no point of having it, meaning you could remove it.

 

battle.c: In function 'battle_SAD':

battle.c:1705: warning: suggest parentheses around '&&' within '||'

That a custom dunno if I could really help be he face that dilemna :

if(a && b || c)

so should he do "(a and B) or c", or "a and (b or c)" he's quite lost about wich condition you want and ask for clarification, (with parenthesis like this explication)

 

atcommand.c: In function 'autoatpots_timer':

atcommand.c:8513: warning: suggest parentheses around '&&' within '||'

same as precedent issues.

 

battle.c: In function 'battle_calc_misc_attack':

battle.c:4662: warning: suggest parentheses around assignment used as truth value

idk at all this one, try google or show the line I might see what wrong

 

this is script

int battle_calc_normal_damage(struct block_list *src,struct block_list *bl,struct Damage *d,int damage,uint16 skill_id,uint16 skill_lv)
{	struct map_session_data *sd = NULL;
	int flag = d->flag;
	int atk_rate_map = map[src->m].flag.restricted?8*map[src->m].zone:0;
	int atk_short_damage_rate = (map[src->m].atk_short_damage_rate)?map[src->m].atk_short_damage_rate:battle_config.atk_short_damage_rate;
	int atk_long_damage_rate = (map[src->m].atk_long_damage_rate)?map[src->m].atk_long_damage_rate:battle_config.atk_long_damage_rate;
	int atk_weapon_damage_rate = (map[src->m].atk_weapon_damage_rate)?map[src->m].atk_weapon_damage_rate:battle_config.atk_weapon_damage_rate;
	int atk_magic_damage_rate = (map[src->m].atk_magic_damage_rate)?map[src->m].atk_magic_damage_rate:battle_config.atk_magic_damage_rate;
	int atk_misc_damage_rate = (map[src->m].atk_misc_damage_rate)?map[src->m].atk_misc_damage_rate:battle_config.atk_misc_damage_rate;





and this


	if (sd)
	{
		if(i = pc_skillatk_bonus(sd, skill_id))
			md.damage += (int64)md.damage*i/100;
 
		md.damage += (int64)md.damage * battle_SAD(sd, target, skill_id) / 100; // Manage Skill Damage [Lilith]
	}


Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

??? care to elaborate ?

the only one I wanted to see was line 4662 but it should be in'battle_calc_misc_attack': not battle_calc_normal_damage

And I don't see line number on this paste so it doesn't help =(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

??? care to elaborate ?

the only one I wanted to see was line 4662 but it should be in'battle_calc_misc_attack': not battle_calc_normal_damage

And I don't see line number on this paste so it doesn't help =(

 

this line 4662

{	struct map_session_data *sd = NULL;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

make no sens with your compiler warning, so idk

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...