The Mud Connector

Author Topic: Any help for a (mostly) clueless owner? (compile issues)  (Read 5860 times)

ohmbience

  • Posts: 0
    • View Profile
First, a little backstory. I was running a Saga clone with a
friend of mine. Anyone who is familiar with this branch of
SMAUG will probably remember him as Mazoku. Last September,
he passed away, leaving me with no information to continue
paying on our host at the time. As such, I saved all of the
mud files to my hard drive and am just now getting around to
trying to get it back up and running. The problem is, I know
very little about these things. To make matters worse, the
version we were working with was very modified and in the
middle of a conversion from C to C++. I'm not sure if that
has anything to do with it or if that would make matters
more difficult. Also, the engine has been modified to be
heavily SQL-driven.

Fast forward to a few days ago. I finally got around to
getting hosting, and I managed to find a basic guide to
getting the code compiled and whatnot. Here is where I run
into problems. I can get DBSC2.5.2 compiled and playable,
but the newer, modified version has some changes to the
makefile and a lot of calls to sqlite3 that I have no idea
how to handle. I've tried using Google to get answers, but
(as previously stated) I know nothing about this sort of
thing for all intents and purposes.

When I make clean, I get this message:

rm -f o/*.o dbsaga *~

I'm assuming that's normal, but I'm not entirely sure.

When I try to make, I get this:

make[1]: Entering directory `/home/dbnod/mud/edge/src'
ccache g++44 -c -DMCCP -O -g3 -Wall -Wno-write-strings -
Wuninitialized -Wno-long-long    -DSMAUG  -DTIMEFORMAT  
act_comm.c -o o/act_comm.o
make[1]: ccache: Command not found
make[1]: *** [o/act_comm.o] Error 127
make[1]: Leaving directory `/home/dbnod/mud/edge/src'
make: *** [all] Error 2

After some looking around, it appears that my host does not
have ccache installed for me to use. Would I need to install
that myself? If so, is there anywhere particular it should
go? I've tried editing ccache out of the makefile, but that
gets me nowhere and gets me a string of errors related to
sqlite3.

Is there anyone who would mind helping me out with this?
Even if you can just point me in the right direction to find
the information I need, it would be greatly appreciated.

Thanks.

plamzi

  • Sr. Member
  • ****
  • Posts: 324
    • View Profile
    • The MUD Portal
RE: Any help for a (mostly) clueless owner? (compile issues)
« Reply #1 on: July 02, 2013, 1:34 PM »
Did you try removing 'ccache' from your Makefile?

It seems to be an optional optimization proggie. So, edit your Makefile and try to end up with the following command:

g++44 -c -DMCCP -O -g3 -Wall -Wno-write-strings -
Wuninitialized -Wno-long-long -DSMAUG -DTIMEFORMAT
act_comm.c -o o/act_comm.o

ohmbience

  • Posts: 0
    • View Profile
RE: Any help for a (mostly) clueless owner? (compile issues)
« Reply #2 on: July 02, 2013, 2:02 PM »
I had edited the ccache out of the makefile before, and it
returned a bunch of errors:

g++44 -c -DMCCP -O -g3 -Wall -Wno-write-strings -
Wuninitialized -Wno-long-long    -DSMAUG  -DTIMEFORMAT  
act_comm.c -o o/act_comm.o
In file included from act_comm.c:32:
mud.h:56:21: error: sqlite3.h: No such file or directory
act_comm.c: In function âvoid do_say(CHAR_DATA*, char*)â:
act_comm.c:1824: warning: unused variable âsqlqueryâ
act_comm.c:1825: warning: unused variable âresultâ
act_comm.c: In function âvoid do_whisper(CHAR_DATA*,
char*)â:
act_comm.c:2180: warning: unused variable âsqlqueryâ
act_comm.c:2181: warning: unused variable âresultâ
act_comm.c: In function âvoid do_tell(CHAR_DATA*, char*)â:
act_comm.c:2415: warning: unused variable âsqlqueryâ
act_comm.c:2416: warning: unused variable âresultâ
act_comm.c: In function âvoid do_save(CHAR_DATA*, char*)â:
act_comm.c:3537: warning: unused variable âbufâ
act_comm.c: In function âvoid do_order(CHAR_DATA*, char*)â:
act_comm.c:3872: warning: unused variable âsnâ
act_comm.c:3873: warning: unused variable âskillâ
act_comm.c: In function âvoid add_profane_word(char*)â:
act_comm.c:4735: warning: comparison between signed and
unsigned integer expressions
make[1]: *** [o/act_comm.o] Error 1
make[1]: Leaving directory `/home/dbnod/mud/edge/src'
make: *** [all] Error 2

This is the part where the SQL aspect of the codebase
becomes a bit of a problem, I think. I could be completely
wrong.

Tyche

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • TheSourcery
RE: Any help for a (mostly) clueless owner? (compile issues)
« Reply #3 on: July 03, 2013, 5:50 AM »
The problems you list aren't necessarily problems with the code, but your environment on your host.  You need to install ccache and sqlite3 on your host. If this is a virtual host where you are administrator look into how to install them yourself.  If not ask them to do it.  If they won't, you probably can install and configure these locally in your home directory.  
Jesus said to him, "I am the way, and the truth, and the life. No one comes to the Father except through me."

ohmbience

  • Posts: 0
    • View Profile
RE: Any help for a (mostly) clueless owner? (compile issues)
« Reply #4 on: July 03, 2013, 2:44 PM »
I've edited out the ccache call from my makefile. When I try
to compile after that, it gives me the readout from the post
directly above yours. Could not using ccache be causing
these problems?

I've checked on sqlite being installed
on my host, and it's there:

dbnod@dbnod.mudhosting.net [~/mud/edge]# sqlite3
SQLite version 3.3.6
Enter ".help" for instructions
sqlite>


I've got hosting through thirdhosting.com, and I've
contacted them about getting ccache installed as I do not
have access to the home directory, only my dbnod sub. I have
tried using Google for error messages that come up, but I
lack the technical knowledge to understand a lot of the
results that come up. I'm apparently more clueless than I
thought I was.

I have gotten AFKMud2.1.4 and DBSC2.5.2 to compile and run
with no problem, but when it comes to this modified DBSC
base...there's just no information for it. The original
coder didn't leave much in the way of documentation, as he
wasn't exactly planning to die when he did. I'm at the point
of frustration where I'm about ready to give up.

plamzi

  • Sr. Member
  • ****
  • Posts: 324
    • View Profile
    • The MUD Portal
RE: Any help for a (mostly) clueless owner? (compile issues)
« Reply #5 on: July 03, 2013, 3:20 PM »
The errors you got next don't seem to be related to not having ccache.

It's looking for sqlite3.h and it needs to see it in its PATH. Just because it is installed, doesn't mean the compiler can see it.

In general, you can get answers about such errors much faster when you google them, since they are not MUD development-specific.

ohmbience

  • Posts: 0
    • View Profile
RE: Any help for a (mostly) clueless owner? (compile issues)
« Reply #6 on: July 07, 2013, 5:30 AM »
Thanks for the pointers, guys. Definitely got me pointed in
the right direction. All it took was a little help from a
friend with a bit more experience than me and I got it up!