Server Help

ASSS Questions - error compiling asss on CentOS

CypherJF - Fri Sep 07, 2007 10:51 pm
Post subject: error compiling asss on CentOS
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/*

Grelminar - Sat Sep 08, 2007 12:59 am
Post subject:
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?
CypherJF - Sat Sep 08, 2007 11:46 am
Post subject:
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

CypherJF - Sat Sep 08, 2007 12:00 pm
Post subject:
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.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group