cgunawan Posted January 7, 2013 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 1 Reputation: 0 Joined: 01/06/13 Last Seen: January 12, 2013 Share Posted January 7, 2013 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 Quote Link to comment Share on other sites More sharing options...
MarkZD Posted January 7, 2013 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 134 Reputation: 35 Joined: 02/27/12 Last Seen: April 5, 2022 Share Posted January 7, 2013 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. Quote Link to comment Share on other sites More sharing options...
Xephyras Posted January 8, 2013 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 51 Reputation: 0 Joined: 06/16/12 Last Seen: May 6, 2014 Share Posted January 8, 2013 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. Quote Link to comment Share on other sites More sharing options...
Question
cgunawan
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.