Jump to content
  • 0

error while compile the server


cgunawan

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  1
  • Reputation:   0
  • Joined:  01/06/13
  • Last Seen:  

hello

i'm trying to compile the rathena using guide from

http://rathena.org/wiki/Installation_%28Debian%29

but when run

make sql plugins

there are some errors

clif.c: In function âclif_set_unit_idleâ:

clif.c:1076: error: âoffsetâ undeclared (first use in this function)

clif.c:1076: error: (Each undeclared identifier is reported only once

clif.c:1076: error: for each function it appears in.)

clif.c: In function âclif_tradestartâ:

clif.c:3778: error: âYYYYMMDDâ undeclared (first use in this function)

make[1]: *** [obj_sql/clif.o] Error 1

make[1]: Leaving directory `/root/rathena/src/map'

make: *** [map_sql] Error 2

what happen?

pls advice

thanks

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  134
  • Reputation:   35
  • Joined:  02/27/12
  • Last Seen:  

clif.c: In function âclif_set_unit_idleâ:

clif.c:1076: error: âoffsetâ undeclared (first use in this function)

clif.c:1076: error: (Each undeclared identifier is reported only once

clif.c:1076: error: for each function it appears in.)

r17082

I didn't get the other error although, it doesn't make much sense as this variable doesn't exist in clif_tradestart and anywhere till now.

Maybe the compiler became crazy because of the first error, try to compile with r17082.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   0
  • Joined:  06/16/12
  • Last Seen:  

clif.c:3778: error: âYYYYMMDDâ undeclared (first use in this function)

You need to declare a date corresponding to your client date. If your client dates from 2012-04-10, then you need to change YYYYMMDD to 20120410.

Here is an example step-by-step guide.

Run "chmod a+x ./configure"

Run "./configure --enable-packetver=20120410"

Run "make sql plugins"

NOTE: if you client does not date from 2012-04-10, make sure you change it in mmo.h too, before running the commands.

Because

Instead of editing mmo.h directly, PACKETVER can be set to desired date with configure switch --enable-packetver=YYYYMMDD.

is not always true in every case. Rather, in most cases, --enable-packetver=YYYYMMDD does NOT override mmo.h file, which causes the system compile in a different packet version than it supposed to.

NOTE2: make sure you are running Debian if you use that guide.

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...