Getting this mud running.
Goto page Previous  1, 2
 
Post new topic   Reply to topic    mudlab.org Forum Index -> Coding
View previous topic :: View next topic  
Author Message
Delerak



Joined: 17 May 2005
Posts: 49
Location: Tampa

PostPosted: Wed Mar 07, 2007 6:50 am    Post subject: Brief update. Reply with quote

Code:

It looks like your game was compiled against a liblua5.1.so that isn't visible to the system. Notice the "not found" below.

[darksun@omen bin]$ ldd server
        libz.so.1 => /usr/lib/libz.so.1 (0x4001f000)
        libmysqlclient.so.10 => /usr/lib/mysql/libmysqlclient.so.10 (0x4002d000)
        liblua5.1.so => not found <=== *HERE*
        libm.so.6 => /lib/libm.so.6 (0x40064000)
        libdl.so.2 => /lib/libdl.so.2 (0x40086000)
        libc.so.6 => /lib/libc.so.6 (0x40089000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x401c3000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x401f0000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

I make a copy of your source directory and rebuild it using a static library for LUA instead of the dynamic one. When I boot up the game like that, it crashes, but the backtrace is showing an issue with init_mysql, so perhaps there is a config error related to that:

[darksun@omen bin]$ pwd
/usr/users/mud/darksun/test-Argila2/Argila3.0/pp/bin

[darksun@omen bin]$ gdb server
This GDB was configured as "i386-redhat-linux-gnu"...
(gdb) set args 5400
(gdb) run
Starting program: /usr/users/mud/darksun/test-Argila2/Argila3.0/pp/bin/server 5400

Program received signal SIGABRT, Aborted.
0x400b15c1 in kill () from /lib/libc.so.6
(gdb) bt
#0  0x400b15c1 in kill () from /lib/libc.so.6
#1  0x400b1355 in raise () from /lib/libc.so.6
#2  0x400b289b in abort () from /lib/libc.so.6
#3  0x08113b25 in init_mysql () at mysql.c:35
#4  0x0804a9b7 in main (argc=2, argv=0xbffffae4) at comm.c:229
#5  0x4009e917 in __libc_start_main () from /lib/libc.so.6
(gdb) Quit

-Jim
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Author Message
Aioros



Joined: 16 Jun 2005
Posts: 14
Location: Lisboa, Portugal

PostPosted: Wed Mar 07, 2007 6:50 pm    Post subject: Reply with quote

The backtrack (the bt command) is showing you the path to the crash.

Kill, raise and abort are system calls, therefore the problem is probably not there. The 1st function in the stack that is your code is init_mysql(), and it says it's the line 35 of the mysql.c file that has a problem.

The problem is there, and if the code is the same from the Argila 1.0 I just downloaded, then ...



Code:

void init_mysql (void)
{
   database = mysql_init (database);

   if ( !(mysql_real_connect (database, MYSQL_HOST, MYSQL_USERNAME, MYSQL_PASS, PRIMARY_DATABASE, 0, MYSQL_SOCK, 0)) )       
      abort();

...


it's simply not reaching the mysql database it needs, so it just aborts and exits the server (no point in continuing the program if you have no database to work with).

If you don't have much knowledge of muds and development, i think you should start with something a bit more simple, like a merc or something (I learned from Envy 2.0, maybe you can check it out) as those don't interact with external systems, they use local files to store information, thus being simpler.

If you really want to use Argila, you'll have to install a mysql database, create a user with the required permissions, and configure the mud to work with it (don't think it's as easy as it sounds). Maybe you can check the files that come with Argila, maybe they walk you through the database instalation.
Back to top
View user's profile Send private message
Author Message
Delerak



Joined: 17 May 2005
Posts: 49
Location: Tampa

PostPosted: Wed Mar 07, 2007 11:14 pm    Post subject: Reply with quote

Yeah, I have mysql databases installed on the same server. And the mud compiles with it. I'll have to look into them now though. I am also running a phpbb off those mysql databases, so I know the forum table prefixes are working.

It's definitely my config somewhere that's being weird. Not being able to boot because of the mysql.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Author Message
Delerak



Joined: 17 May 2005
Posts: 49
Location: Tampa

PostPosted: Thu Mar 08, 2007 2:29 am    Post subject: Update. Reply with quote

I changed one of my sql configuration files and now I am getting this.


Code:

[darksun@omen pp]$ ./start-server 4500 &
[1] 26286
[darksun@omen pp]$ rm: cannot lstat `lib/booting': No such file or directory
sh: line 1: ulimit: core file size: cannot modify limit: Operation not permitted

[darksun@omen pp]$ jobs
[1]+  Running                 ./start-server 4500 &
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Author Message
Delerak



Joined: 17 May 2005
Posts: 49
Location: Tampa

PostPosted: Thu Mar 08, 2007 2:30 am    Post subject: Reply with quote

Also I cannot connect to that. It seems to be hanging.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Author Message
Delerak



Joined: 17 May 2005
Posts: 49
Location: Tampa

PostPosted: Fri Mar 09, 2007 10:32 pm    Post subject: Reply with quote

I don't know how I got this running. Somehow comm.c was screwing me up and I basically edited a few things in there, small things...anyway. Thanks to all you guys for your help.

-Del
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    mudlab.org Forum Index -> Coding All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group
BBTech Template by © 2003-04 MDesign