Author |
Message |
nester Newbie
Age:45 Gender: Joined: Jan 28 2004 Posts: 4 Location: Louisville, KY Offline
|
Posted: Wed Jan 28, 2004 6:30 pm Post subject: ASSS compiling issues |
 |
|
|
|
Hello,
I tried to use the binaries, but found that I was using an older version of glibc (2.2)... So I thought I would compile it up..
After installing all of the dev packages for python 2.2 and mysql, I edited up the Makefile (disabled bdb, don't have that installed currently)
but I can't get the thing to compile.
Here's the best I get.
subspace@blackbox:~/asss-1.1.7/src$ make all
Makefile:238: Makefile.deps: No such file or directory
../scripts/gensparse.py sparse.inc ../scripts/sparse_params.py
../scripts/processfont.py ../scripts/banner.font > letters.inc
cat *.c *.def | ../scripts/extract-cfg-docs.py -c > cfghelp.inc
cat *.h */*.h | ../scripts/pymod-process.py
gcc -pipe -I. -D_REENTRANT -D_GNU_SOURCE -fPIC -I/usr/include/mysql -I/usr/include/python2.2 -MM *.c */*.c > Makefile.deps
dbtool.c:20: db.h: No such file or directory
dbtool.c:31: #error "This version of bdb is too old."
persist.c:18: db.h: No such file or directory
persist.c:27: #error "This version of bdb is too old."
make: [Makefile.deps] Error 1 (ignored)
gcc -pipe -I. -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -fpedantic -c -o main.o main.c
In file included from defs.h:27,
from asss.h:5,
from main.c:20:
util.h:76: warning: `malloc' attribute directive ignored
In file included from asss.h:13,
from main.c:20:
logman.h:47: argument format specified for non-function `Log'
logman.h:52: argument format specified for non-function `LogA'
logman.h:55: argument format specified for non-function `LogP'
In file included from asss.h:15,
from main.c:20:
chat.h:56: argument format specified for non-function `SendMessage'
chat.h:60: argument format specified for non-function `SendCmdMessage'
chat.h:64: argument format specified for non-function `SendSetMessage'
chat.h:67: argument format specified for non-function `SendSoundMessage'
chat.h:71: argument format specified for non-function `SendSetSoundMessage'
chat.h:75: argument format specified for non-function `SendAnyMessage'
chat.h:78: argument format specified for non-function `SendArenaMessage'
chat.h:82: argument format specified for non-function `SendArenaSoundMessage'
chat.h:87: argument format specified for non-function `SendModMessage'
In file included from asss.h:25,
from main.c:20:
chatnet.h:32: argument format specified for non-function `SendToOne'
chatnet.h:34: argument format specified for non-function `SendToArena'
chatnet.h:36: argument format specified for non-function `SendToSet'
make: *** [main.o] Error 1 |
Any clues? Debian 3.0 stable, i386 box (smp) |
|
Back to top |
|
 |
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: Wed Jan 28, 2004 9:01 pm Post subject: |
 |
|
|
|
Probably an old version of gcc. Go into defs.h and change "#ifdef __GNUC__" to "#if 0". |
|
Back to top |
|
 |
nester Newbie
Age:45 Gender: Joined: Jan 28 2004 Posts: 4 Location: Louisville, KY Offline
|
|
Back to top |
|
 |
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: Fri Jan 30, 2004 12:27 am Post subject: |
 |
|
|
|
Oops. That little bit of code has a few problems... First, move the declaration of pkt to up where reason is declared. That'll make it compile. Then to make it actually work, change the strcat lines to:
strcat(pkt+5, reason);
strcat(pkt+5, ")."); |
|
Back to top |
|
 |
nester Newbie
Age:45 Gender: Joined: Jan 28 2004 Posts: 4 Location: Louisville, KY Offline
|
|
Back to top |
|
 |
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: Sat Jan 31, 2004 6:14 pm Post subject: |
 |
|
|
|
Same error, except this time it wasn't me who wrote it Just swap the declaration line and the one advancing next. Or just disable the turf stuff (by renaming src/contrib/turf.mk to turf.mk.disabled). |
|
Back to top |
|
 |
nester Newbie
Age:45 Gender: Joined: Jan 28 2004 Posts: 4 Location: Louisville, KY Offline
|
Posted: Mon Feb 02, 2004 5:31 pm Post subject: |
 |
|
|
|
Yay, looks like it works! (disabled the turf stuff for now)
Thanks for your help. |
|
Back to top |
|
 |
GiGaMoN Guest
Offline
|
Posted: Mon Feb 02, 2004 7:40 pm Post subject: |
 |
|
|
|
ut oh...my code sux =b |
|
Back to top |
|
 |
Warhaven Newbie

Gender: Joined: Oct 02 2003 Posts: 9 Location: Sacramento, CA Offline
|
Posted: Wed Mar 10, 2004 7:04 pm Post subject: |
 |
|
|
|
I'm having a similar problem, though just the beginning part:
Quote: | Makefile:236: Makefile.deps: No such file or directory
~/asss/scripts/gensparse.py sparse.inc ~/asss/scripts/sparse_params.py
make: ~/asss/scripts/gensparse.py: Command not found
make: *** [sparse.inc] Error 127 |
I have little to no experience with preprocessing and makefiles. I'm spoiled by Codewarrior... (also have gcc 2.3) |
|
Back to top |
|
 |
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: Wed Mar 10, 2004 9:08 pm Post subject: |
 |
|
|
|
I hope you mean gcc 3.3, because 2.3 is really really old.
Your problem is probably that you don't have python installed. The build process requires python to generate some C code that is then compiled. In the past I've been including pre-generated copies of those files in the packages I've made, but I screwed up and left them out of the 1.1.7 package. You can download them at http://sscx.net/asss/incs.tar.gz , if you need them. I'm pretty sure those versions should work with 1.1.7. |
|
Back to top |
|
 |
Warhaven Newbie

Gender: Joined: Oct 02 2003 Posts: 9 Location: Sacramento, CA Offline
|
Posted: Thu Mar 11, 2004 8:38 pm Post subject: |
 |
|
|
|
Yeah, 3.3. The one from IBM with all the 64-bit goodies added. And I have Python installed. I have 2.2....2.3? I don't recall. I probably have a typo in the Python location line. I'll double check that when i get back. |
|
Back to top |
|
 |
MetalBlade Guest
Offline
|
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Wed May 19, 2004 6:12 pm Post subject: |
 |
|
|
|
Edit your makefile so that it looks for DB4 in the proper place. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
MetalBlade Guest
Offline
|
Posted: Thu May 20, 2004 9:10 am Post subject: |
 |
|
|
|
Thanks, that part works now. Now I only get errors that I can solve myself (I think)  |
|
Back to top |
|
 |
|