Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
ASSS compiling issues

 
Post new topic   Reply to topic Printable version
 View previous topic  Asss Post :: Post logging in  View next topic  
Author Message
nester
Newbie


Age:45
Gender:Gender:Male
Joined: Jan 28 2004
Posts: 4
Location: Louisville, KY
Offline

PostPosted: Wed Jan 28, 2004 6:30 pm    Post subject: ASSS compiling issues Reply to topic Reply with quote

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)
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Grelminar
Creator of Asss


Joined: Feb 26 2003
Posts: 378
Offline

PostPosted: Wed Jan 28, 2004 9:01 pm    Post subject: Reply to topic Reply with quote

Probably an old version of gcc. Go into defs.h and change "#ifdef __GNUC__" to "#if 0".
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
nester
Newbie


Age:45
Gender:Gender:Male
Joined: Jan 28 2004
Posts: 4
Location: Louisville, KY
Offline

PostPosted: Thu Jan 29, 2004 12:40 pm    Post subject: Reply to topic Reply with quote

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.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Grelminar
Creator of Asss


Joined: Feb 26 2003
Posts: 378
Offline

PostPosted: Fri Jan 30, 2004 12:27 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email Visit posters website
nester
Newbie


Age:45
Gender:Gender:Male
Joined: Jan 28 2004
Posts: 4
Location: Louisville, KY
Offline

PostPosted: Fri Jan 30, 2004 1:40 pm    Post subject: Reply to topic Reply with quote

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
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Grelminar
Creator of Asss


Joined: Feb 26 2003
Posts: 378
Offline

PostPosted: Sat Jan 31, 2004 6:14 pm    Post subject: Reply to topic Reply with quote

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).
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
nester
Newbie


Age:45
Gender:Gender:Male
Joined: Jan 28 2004
Posts: 4
Location: Louisville, KY
Offline

PostPosted: Mon Feb 02, 2004 5:31 pm    Post subject: Reply to topic Reply with quote

Yay, looks like it works! (disabled the turf stuff for now)

Thanks for your help.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
GiGaMoN
Guest


Offline

PostPosted: Mon Feb 02, 2004 7:40 pm    Post subject: Reply to topic Reply with quote

ut oh...my code sux =b
Back to top
Warhaven
Newbie


Gender:Gender:Male
Joined: Oct 02 2003
Posts: 9
Location: Sacramento, CA
Offline

PostPosted: Wed Mar 10, 2004 7:04 pm    Post subject: Reply to topic Reply with quote

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)
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Grelminar
Creator of Asss


Joined: Feb 26 2003
Posts: 378
Offline

PostPosted: Wed Mar 10, 2004 9:08 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email Visit posters website
Warhaven
Newbie


Gender:Gender:Male
Joined: Oct 02 2003
Posts: 9
Location: Sacramento, CA
Offline

PostPosted: Thu Mar 11, 2004 8:38 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website
MetalBlade
Guest


Offline

PostPosted: Wed May 19, 2004 6:04 pm    Post subject: Reply to topic Reply with quote

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
Back to top
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Wed May 19, 2004 6:12 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
MetalBlade
Guest


Offline

PostPosted: Thu May 20, 2004 9:10 am    Post subject: Reply to topic Reply with quote

Thanks, that part works now. Now I only get errors that I can solve myself (I think) icon_smile.gif
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can 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
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 29 page(s) served in previous 5 minutes.

phpBB Created this page in 0.499585 seconds : 39 queries executed (93.2%): GZIP compression disabled