Server Help

ASSS Questions - ASSS compiling issues

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

Code: Show/Hide
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)
Grelminar - 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".
nester - Thu Jan 29, 2004 12:40 pm
Post subject:
icon_smile.gif Did get farther though. Different Error now. icon_mad.gif



Code: Show/Hide
subspace@blackbox:~/asss-1.1.7/src$ make
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
gcc -pipe -I. -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -fpedantic     -c -o module.o module.c
gcc -pipe -I. -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -fpedantic     -c -o cmod.o cmod.c
gcc -pipe -I. -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -fpedantic     -c -o util.o util.c
gcc -pipe -I. -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -fpedantic     -c -o pathutil.o pathutil.c
gcc -pipe -I. -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -fpedantic     -c -o protutil.o protutil.c
gcc -pipe -I. -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -fpedantic     -c -o region.o region.c
gcc -pipe -I. -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -fpedantic     -c -o rwlock.o rwlock.c
gcc -pipe -I. -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -fpedantic     -c -o app.o app.c
gcc -pipe -I. -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -fpedantic     -c -o md5.o md5.c
gcc -pipe -I. -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -fpedantic     -c -o config.o config.c
gcc -pipe -I. -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -fpedantic     -c -o prng.o prng.c
gcc -pipe -I. -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -fpedantic     -c -o player.o player.c
gcc -pipe -I. -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -fpedantic     -c -o core.o core.c
gcc -pipe -I. -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -fpedantic     -c -o logman.o logman.c
gcc -pipe -I. -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -fpedantic     -c -o mainloop.o mainloop.c
gcc -pipe -I. -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -fpedantic     -c -o net.o net.c
net.c: In function `process_lagouts':
net.c:1596: parse error before `pkt'
net.c:1597: `pkt' undeclared (first use in this function)
net.c:1597: (Each undeclared identifier is reported only once
net.c:1597: for each function it appears in.)
make: *** [net.o] Error 1


I'm running gcc 2.95.4, if that tells you anything.
Grelminar - 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, ").");
nester - Fri Jan 30, 2004 1:40 pm
Post subject:
That works.. got a lot further. however, moving on.. hehehe. icon_redface.gif

Code: Show/Hide
gcc -pipe -I. -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -fpedantic     -c -o contrib/turf_reward.o contrib/turf_reward.c
contrib/turf_reward.c: In function `postRewardCleanup':
contrib/turf_reward.c:2081: parse error before `*'
contrib/turf_reward.c:2083: `pPlayer' undeclared (first use in this function)
contrib/turf_reward.c:2083: (Each undeclared identifier is reported only once
contrib/turf_reward.c:2083: for each function it appears in.)
make: *** [contrib/turf_reward.o] Error 1

Grelminar - Sat Jan 31, 2004 6:14 pm
Post subject:
Same error, except this time it wasn't me who wrote it icon_smile.gif 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).
nester - Mon Feb 02, 2004 5:31 pm
Post subject:
Yay, looks like it works! (disabled the turf stuff for now)

Thanks for your help.
Anonymous - Mon Feb 02, 2004 7:40 pm
Post subject:
ut oh...my code sux =b
Warhaven - 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... tongue.gif (also have gcc 2.3)
Grelminar - 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.
Warhaven - 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.
Anonymous - Wed May 19, 2004 6:04 pm
Post subject:
I get another error when I try to compile it.
(I am using RedHat 8.0, ASSS 1.1.7 and GCC 3.2)

Code: Show/Hide

gcc -pipe  -fPIC  -DNOMPQUEUE -o dbtool dbtool.o statcodes.o util.c -L/opt/db-4.0.14/lib -Wl,-rpath,/opt/db-4.0.14/lib -ldb4
/usr/bin/ld: cannot find -ldb4
collect2: ld returned 1 exit status
make: *** [dbtool] Error 1

Dr Brain - Wed May 19, 2004 6:12 pm
Post subject:
Edit your makefile so that it looks for DB4 in the proper place.
Anonymous - 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) icon_smile.gif
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group