Jump to content
  • 0

Compilation


realRO

Question


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  84
  • Reputation:   0
  • Joined:  12/24/13
  • Last Seen:  

I'm using centos. I have this, is this compilation okay or this is worst? 

 

Kindly help me thanks. 

 

 

This is the logs:

make[1]: Entering directory `/root/Desktop/trunk/3rdparty/mt19937ar'
	CC	mt19937ar.c
make[1]: Leaving directory `/root/Desktop/trunk/3rdparty/mt19937ar'
make[1]: Entering directory `/root/Desktop/trunk/3rdparty/libconfig'
	CC	libconfig.c
	CC	grammar.c
	CC	scanctx.c
	CC	scanner.c
	CC	strbuf.c
make[1]: Leaving directory `/root/Desktop/trunk/3rdparty/libconfig'
make[1]: Entering directory `/root/Desktop/trunk/src/common'
	MKDIR	obj_all
	CC	core.c
	CC	socket.c
	CC	timer.c
	CC	db.c
	CC	nullpo.c
	CC	malloc.c
	CC	showmsg.c
	CC	strlib.c
	CC	utils.c
	CC	grfio.c
	CC	mapindex.c
	CC	ers.c
	CC	md5calc.c
	CC	core.c
	CC	socket.c
	CC	malloc.c
	CC	random.c
	CC	des.c
	CC	conf.c
	CC	thread.c
	CC	mutex.c
	CC	raconf.c
	CC	mempool.c
	CC	msg_conf.c
	CC	cli.c
	AR	obj_all/common.a
	MKDIR	obj_sql
	CC	sql.c
	AR	obj_sql/common_sql.a
make[1]: Leaving directory `/root/Desktop/trunk/src/common'
make[1]: Entering directory `/root/Desktop/trunk/src/login'
	MKDIR	obj_sql
	CC	login.c
	CC	account_sql.c
	CC	ipban_sql.c
	CC	loginlog_sql.c
	LD	login-server_sql
make[1]: Leaving directory `/root/Desktop/trunk/src/login'
make[1]: Entering directory `/root/Desktop/trunk/src/char'
	MKDIR	obj_sql
	CC	char.c
char.c:5356:2: warning: no newline at end of file
	CC	inter.c
	CC	int_party.c
	CC	int_guild.c
	CC	int_storage.c
	CC	int_pet.c
	CC	int_homun.c
	CC	int_mail.c
	CC	int_auction.c
	CC	int_quest.c
	CC	int_mercenary.c
	CC	int_elemental.c
	LD	char-server_sql
make[1]: Leaving directory `/root/Desktop/trunk/src/char'
make[1]: Entering directory `/root/Desktop/trunk/src/map'
	MKDIR	obj_sql
	CC	map.c
In file included from pc.h:12,
                 from map.c:25:
itemdb.h:240:24: warning: no newline at end of file
	CC	chrif.c
In file included from pc.h:12,
                 from chrif.c:18:
itemdb.h:240:24: warning: no newline at end of file
	CC	clif.c
In file included from pc.h:12,
                 from clif.c:19:
itemdb.h:240:24: warning: no newline at end of file
	CC	pc.c
In file included from pc.h:12,
                 from channel.h:7,
                 from pc.c:19:
itemdb.h:240:24: warning: no newline at end of file
pc.c: In function ‘pc_getitem_map’:
pc.c:4135: warning: suggest parentheses around assignment used as truth value
	CC	status.c
In file included from pc.h:12,
                 from status.c:16:
itemdb.h:240:24: warning: no newline at end of file
	CC	npc.c
In file included from pc.h:12,
                 from npc.c:18:
itemdb.h:240:24: warning: no newline at end of file
	CC	npc_chat.c
In file included from pc.h:12,
                 from npc_chat.c:14:
itemdb.h:240:24: warning: no newline at end of file
	CC	chat.c
In file included from pc.h:12,
                 from chat.c:15:
itemdb.h:240:24: warning: no newline at end of file
	CC	path.c
	CC	itemdb.c
In file included from itemdb.c:10:
itemdb.h:240:24: warning: no newline at end of file
	CC	mob.c
In file included from pc.h:12,
                 from mob.c:20:
itemdb.h:240:24: warning: no newline at end of file
mob.c:4632:2: warning: no newline at end of file
	CC	script.c
In file included from script.c:25:
itemdb.h:240:24: warning: no newline at end of file
script.c: In function ‘buildin_getitem_map_sub’:
script.c:6476: warning: unused variable ‘p’
script.c:6475: warning: unused variable ‘g’
	CC	storage.c
In file included from storage.c:13:
itemdb.h:240:24: warning: no newline at end of file
	CC	skill.c
In file included from pc.h:12,
                 from skill.c:17:
itemdb.h:240:24: warning: no newline at end of file
	CC	atcommand.c
In file included from pc.h:12,
                 from channel.h:7,
                 from atcommand.c:20:
itemdb.h:240:24: warning: no newline at end of file
	CC	battle.c
In file included from pc.h:12,
                 from battle.c:17:
itemdb.h:240:24: warning: no newline at end of file
	CC	battleground.c
In file included from pc.h:12,
                 from battleground.c:17:
itemdb.h:240:24: warning: no newline at end of file
	CC	intif.c
In file included from pc.h:12,
                 from intif.c:14:
itemdb.h:240:24: warning: no newline at end of file
	CC	trade.c
In file included from trade.c:7:
itemdb.h:240:24: warning: no newline at end of file
	CC	party.c
In file included from pc.h:12,
                 from party.c:16:
itemdb.h:240:24: warning: no newline at end of file
	CC	vending.c
In file included from vending.c:8:
itemdb.h:240:24: warning: no newline at end of file
	CC	guild.c
In file included from pc.h:12,
                 from guild.c:19:
itemdb.h:240:24: warning: no newline at end of file
	CC	pet.c
In file included from pc.h:12,
                 from pet.c:14:
itemdb.h:240:24: warning: no newline at end of file
	CC	log.c
In file included from log.c:10:
itemdb.h:240:24: warning: no newline at end of file
	CC	mail.c
In file included from mail.c:9:
itemdb.h:240:24: warning: no newline at end of file
	CC	date.c
	CC	unit.c
In file included from pc.h:12,
                 from unit.c:14:
itemdb.h:240:24: warning: no newline at end of file
	CC	homunculus.c
In file included from homunculus.c:19:
itemdb.h:240:24: warning: no newline at end of file
	CC	mercenary.c
In file included from mercenary.c:19:
itemdb.h:240:24: warning: no newline at end of file
	CC	quest.c
In file included from pc.h:12,
                 from quest.c:14:
itemdb.h:240:24: warning: no newline at end of file
	CC	instance.c
In file included from pc.h:12,
                 from instance.c:19:
itemdb.h:240:24: warning: no newline at end of file
	CC	buyingstore.c
In file included from pc.h:12,
                 from buyingstore.c:14:
itemdb.h:240:24: warning: no newline at end of file
	CC	searchstore.c
In file included from pc.h:12,
                 from searchstore.c:10:
itemdb.h:240:24: warning: no newline at end of file
	CC	duel.c
In file included from pc.h:12,
                 from duel.c:10:
itemdb.h:240:24: warning: no newline at end of file
	CC	pc_groups.c
In file included from pc.h:12,
                 from pc_groups.c:14:
itemdb.h:240:24: warning: no newline at end of file
	CC	elemental.c
In file included from elemental.c:19:
itemdb.h:240:24: warning: no newline at end of file
	CC	cashshop.c
In file included from pc.h:12,
                 from cashshop.h:8,
                 from cashshop.c:9:
itemdb.h:240:24: warning: no newline at end of file
	CC	channel.c
In file included from pc.h:12,
                 from channel.h:7,
                 from channel.c:14:
itemdb.h:240:24: warning: no newline at end of file
	CC	mapreg_sql.c
	LD	map-server_sql
make[1]: Leaving directory `/root/Desktop/trunk/src/map'
building conf/import and conf/msg_conf/import folder...


bump

Link to comment
Share on other sites

17 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

well a way to know if it let's you run the server with 

./athena-start start

o:

 

any errors there?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  84
  • Reputation:   0
  • Joined:  12/24/13
  • Last Seen:  

well a way to know if it let's you run the server with 

./athena-start start

o:

 

any errors there?

Actually sir, when I'm starting the server, it runs, the only error is this:

http://rathena.org/board/topic/91248-npc-event-error/

 

I followed AnnieRuru's reply, error still shows up.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  212
  • Reputation:   5
  • Joined:  01/24/12
  • Last Seen:  

Centos 32bit

 

make clean

./configure 

make sql

./athena-start start or restart

 

Centos 64bit

make clean

./configure --enable-64bit

make sql

./athena-start start or restart

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

then if it runs it should be ok

 

the error you say is to the queue, like Annie said, it should end the error by increasing it

 

may i ask for a screen shot? maybe there is something missing

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:  

Centos 32bit

 

make clean

./configure 

make sql

./athena-start start or restart

 

Centos 64bit

make clean

./configure --enable-64bit

make sql

./athena-start start or restart

Wrong since uh lot of revision: 1-jun-2012 => d81154b

should be :

32bit : ./configure --disable-64bit && make clean sql

64bit : ./configure make clean sql

Edited by Lighta
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  84
  • Reputation:   0
  • Joined:  12/24/13
  • Last Seen:  

then if it runs it should be ok

 

the error you say is to the queue, like Annie said, it should end the error by increasing it

 

may i ask for a screen shot? maybe there is something missing

 

Screenshot from the NPC error? This one:

2rhp6e0.jpg

 

 

 

 

Centos 32bit

 

make clean

./configure 

make sql

./athena-start start or restart

 

Centos 64bit

make clean

./configure --enable-64bit

make sql

./athena-start start or restart

Wrong since uh lot of revision: 1-jun-2012 => d81154b

should be :

32bit : ./configure --disable-64bit && make clean sql

64bit : ./configure ** make clean sql

 

 

I'm sorry sir, but I'm still new at using Linux, what do you mean by "make clean". (very noob question. /sry)

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

hey don't worry about asking "noob questions" everyone starts from the start, with 0, so don't worry

 

those are merely commands that you have to type in your linux window and then hit enter

 

depending if you are using 32bit or 64bit, you have to run those commands in that order

 

to run them, simply enter to your linux window (where you run the server/you write ./athena-start start)

make sure to know if you use 32bit or 64bits

 

then just type the following commands, remember to wait until it ends its execution

 

Quote Lighta

32bit : ./configure --disable-64bit && make clean sql

64bit : ./configure ** make clean sql

 

If 32 bit:

./configure --disable-64bit && make clean sql

then hit enter and wait for it to end its executions

 

if 64 bit:

./configure ** make clean sql

then hit enter and wait for it to end its executions

 

about the NPC error

o:

sorry i don't know at all what could mean

at simply look, i would say that you have something wrong on the setup of the npc

 

so, Quoting Annie

"and, don't use addtimer command too much

its exactly like this to happen, better switch your script to use sleep2 command "

 

check your npc script, it would be helpful if you post it too so we can see what exactly may be the problem

also, remember to change the

#define MAX_EVENTTIMER 32

 

to

 

#define MAX_EVENTTIMER 100

 

or so, make sure that you compiled well/with no errors

 

i hope it helps (:

Edited by Kido
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:  

Well from the screen you server is "fine" you're just using a TONS of timer.

Why not using a timer with different label ?? or sleep2 ?

Well this is script support for that not compilation anymore =)

 

64bit is : ./configure && make clean sql

Sorry idk where thos "*" were coming from, maybe a typo..

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

yup o:

 

well Lighta already answered you, the compilation is good (:

 

topic solved (?) about the npc, let's go to the other topic D:!

 

but i'm pretty sure that annie and lighta already answered, don't use many timers

 

may i insis in suggesting you to post your script so we can see it and have a better clue of the error (:

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  84
  • Reputation:   0
  • Joined:  12/24/13
  • Last Seen:  

I think the compilation does not compiling my 'map.h' lol (not quite sure)
Because my trunk is Windows, i just transferred to a linux VPS. Is that okay?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

@Lighta

i believe he thinks that its map.h is not getting compiled for this

itemdb.h:240:24: warning: no newline at end of file
    CC    mapreg_sql.c
    LD    map-server_sql
make[1]: Leaving directory `/root/Desktop/trunk/src/map'

building conf/import and conf/msg_conf/import folder...

 

if your server is running after that we can say the compilation is good, let's wait for lighta o: 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  84
  • Reputation:   0
  • Joined:  12/24/13
  • Last Seen:  

@Lighta

i believe he thinks that its map.h is not getting compiled for this

itemdb.h:240:24: warning: no newline at end of file

    CC    mapreg_sql.c

    LD    map-server_sql

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

building conf/import and conf/msg_conf/import folder...

 

if your server is running after that we can say the compilation is good, let's wait for lighta o: 

Yes you are correct, because it is stated "leaving directory" blah blah. XDD That's why I feel that map.h is not compiling.

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:  

If he building the conf the compilation went fine.

Not about the newline error you can open the specified file and add a line at the end of it if you feel more secure about this.

He need to leave each subdirectory of src to build them all.

Say our serv is in /home/rathena

When you do 'make sql' in that directory we start here :

/home/rathena/Makefile

Then see target sql: => sql: $(SQL_DEPENDS)

SQL_DEPENDS=common_sql login char map import

So he will do target common_sql login char map import.

common_sql: $(COMMON_SQL_DEPENDS)

@$(MAKE) -C src/common sql

@$(MAKE) -C src/common sql => this mean go in src/common directory and execute 'make sql'

login: $(LOGIN_SQL_DEPENDS)

@$(MAKE) -C src/login sql

@$(MAKE) -C src/common sql => this mean go in src/login directory and execute 'make sql'

etc...

So yeah he leaving and entering lot of directory to build the whole binary.

"Because my trunk is Windows, i just transferred to a linux VPS. Is that okay?" ??

As long as you didn't transfered Windows binary and expect them to run into your linux vps it's fine. But I don't see why you didn't fetch the content into your linux host directly..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  84
  • Reputation:   0
  • Joined:  12/24/13
  • Last Seen:  

If he building the conf the compilation went fine.

Not about the newline error you can open the specified file and add a line at the end of it if you feel more secure about this.

He need to leave each subdirectory of src to build them all.

Say our serv is in /home/rathena

When you do 'make sql' in that directory we start here :

/home/rathena/Makefile

Then see target sql: => sql: $(SQL_DEPENDS)

SQL_DEPENDS=common_sql login char map import

So he will do target common_sql login char map import.

common_sql: $(COMMON_SQL_DEPENDS)

@$(MAKE) -C src/common sql

@$(MAKE) -C src/common sql => this mean go in src/common directory and execute 'make sql'

login: $(LOGIN_SQL_DEPENDS)

@$(MAKE) -C src/login sql

@$(MAKE) -C src/common sql => this mean go in src/login directory and execute 'make sql'

etc...

So yeah he leaving and entering lot of directory to build the whole binary.

"Because my trunk is Windows, i just transferred to a linux VPS. Is that okay?" ??

As long as you didn't transfered Windows binary and expect them to run into your linux vps it's fine. But I don't see why you didn't fetch the content into your linux host directly..

 

 

My hosting said that: "Unfortunately, we are not experienced with fixing source code issues; I can only recommend that you look for a developer to help you with that instead."

 

So does this mean that it is not compiling my map.h properly? 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

huh ? nope, they are saying that they can't help you to fix issues with the source because they are no experienced with that, and that they recommend you to contact your developer to help you to fix that instead

 

you remeberd my friend, that i too thinked once that the compilation isn't done at all for the same thing, look at my post here

http://rathena.org/board/topic/86446-putty-problem-and-athena-start/

and check the 3rd post (just after the member with a dog avatar) then asura answer me

 

the compilation is good you can check there too

it's not an issue what you have there, it just end as it (:

 

however if you don't want to the compilation end like that, Lighta already gave an answer above

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  84
  • Reputation:   0
  • Joined:  12/24/13
  • Last Seen:  

huh ? nope, they are saying that they can't help you to fix issues with the source because they are no experienced with that, and that they recommend you to contact your developer to help you to fix that instead

 

Haha sorry, I forgot to put it on the other bar, I'm referring to Light post because I can't understand what he said, and I'm asking if map.h compiles properly or not even it shows at the end of the compile logs.

 

Thank you for that link, about this, Running the command ./configure && make clean && make sql. << I'll run this through putty right? 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

hehe don't worry

and correct, you run that on your putty exactly where you run ./athena-start start

(:

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