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
error compiling asss on CentOS

 
Post new topic   Reply to topic Printable version
 View previous topic  Error loading pymod Post :: Post persist  View next topic  
Author Message
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Fri Sep 07, 2007 10:51 pm    Post subject: error compiling asss on CentOS Reply to topic Reply with quote

Can anyone help me out with this python build problem? It doesn't seem to like the -I parameter (it doesn't exist in the man file; python 2.4.3-19.el5).

Code: Show/Hide
bash-3.1# make -f Makefile clean
Makefile:110: /home/sass/asss144/build/deps.mk: No such file or directory
install -d /home/sass/asss144/build/
install Makefile /home/sass/asss144/build/.stamp
python /home/sass/asss144/scripts/makedeps.py -I. -Iinclude -I/home/sass/asss144/build  -D_REENTRANT -D_GNU_SOURCE -fPIC -I/usr/include/db4 -I/usr/include/mysql -I/usr/include/python2.4 \
                */*.c -P '$(BUILDDIR)/' -o /home/sass/asss144/build/deps.mk
makedeps: ignoring option: -I/home/sass/asss144/build
makedeps: ignoring option: -D_REENTRANT
makedeps: ignoring option: -D_GNU_SOURCE
makedeps: ignoring option: -fPIC
makedeps: ignoring option: -I/usr/include/db4
makedeps: ignoring option: -I/usr/include/mysql
makedeps: ignoring option: -I/usr/include/python2.4
makedeps: warning: "pthread.h" not found
makedeps: warning: "zlib.h" not found
makedeps: warning: "mysql.h" not found
makedeps: warning: "db.h" not found
makedeps: warning: "errno.h" not found
makedeps: warning: "Python.h" not found
makedeps: warning: "structmember.h" not found
rm -f /home/sass/asss144/build/*

_________________
Performance is often the art of cheating carefully. - James Gosling
Back to top
View users profile Send private message Add User to Ignore List
Grelminar
Creator of Asss


Joined: Feb 26 2003
Posts: 378
Offline

PostPosted: Sat Sep 08, 2007 12:59 am    Post subject: Reply to topic Reply with quote

makedeps always gives those warnings. They're not really errors, just ignore them. Is there a problem when you actually make (not make clean)?

And why are you compiling as root, or working as root at all?
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Sat Sep 08, 2007 11:46 am    Post subject: Reply to topic Reply with quote

The root login was leftover from when I was installing the different devel libraries for db4, mysql, and python. I'll edit this post when I try the build.

Code: Show/Hide

gcc -std=gnu99 -pipe -I. -Iinclude -I/home/sass/asss144/build  -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall   -I/usr/include/db4  -fPIC  \
                -DNODQ -DNOTREAP -DNOSTRINGCHUNK -DNOMPQUEUE -DNOMMAP \
                -o /home/sass/asss144/build/dbtool /home/sass/asss144/build/statcodes.o main/util.c main/dbtool.c -L/usr/lib/ -Wl,-rpath,/usr/lib/ -ldb-4
main/dbtool.c: In function 'print_quoted':
main/dbtool.c:177: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness
main/dbtool.c:178: warning: pointer targets in passing argument 1 of 'fputs' differ in signedness
main/dbtool.c: In function 'stats_print_stats':
main/dbtool.c:445: warning: pointer targets in passing argument 1 of 'print_quoted' differ in signedness
/usr/bin/ld: cannot find -ldb-4
collect2: ld returned 1 exit status
make: *** [/home/sass/asss144/build/dbtool] Error 1



edit:
Nor does changing "-ldb-4" to "-ldb4" work.

edit2:
I think I got it, my library was looking for a specific version. There is no file with just the major version to it's name.
Code: Show/Hide

DB_LDFLAGS = -L$(DB_LIB) -Wl,-rpath,$(DB_LIB) -ldb-4.3
Back to top
View users profile Send private message Add User to Ignore List
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Sat Sep 08, 2007 12:00 pm    Post subject: Reply to topic Reply with quote

Now it's compiled, asss won't start up?

Code: Show/Hide

db_env_create: DB_VERSION_MISMATCH: Database environment version mismatch
E <cmod> error loading module 'persist'
Unrecoverable error (5): Error in loading module 'scoring:persist'


edit:
Smong suggested deleting the files in the /data/ folder. This fixed the issue.
Back to top
View users profile Send private message Add User to Ignore List
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: 18 page(s) served in previous 5 minutes.

phpBB Created this page in 0.490626 seconds : 28 queries executed (94.5%): GZIP compression disabled