Server Help

ASSS Questions - ASSS Compile errors on Centos 6

Anonymous - Tue Nov 05, 2013 5:23 pm
Post subject: ASSS Compile errors on Centos 6
Hi there,

I currently have a stable ass144 dev zone not on any billing server and have been playing around. The time has come for me to script some cool events etc

Im getting both compile errors on asss 144 and 150 icon_sad.gif
I can however run the precompiled bin/asss on both distros.
OS: Centos 6

Because of this I have the following problem:

144 - python module error to do with cPickle, python b0rked
- unable to build C .so files due to compile errors
150 - python module cPickle still b0rked
- unable to build C .so files because of compile errors

NO MODULES!! thats right I cant compile anything.. only use precompiled stuff icon_sad.gif

Both the errors below are after running make deps and also not using only the base distro file.


144 compile error
Code: Show/Hide

sh-4.1$ make
gcc -std=gnu99 -pipe -I. -Iinclude -I../build  -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall   -c -o ../build/core.o core/core.c
core/core.c:17:18: error: zlib.h: No such file or directory
core/core.c: In function ?get_checksum?:
core/core.c:98: error: ?uLong? undeclared (first use in this function)
core/core.c:98: error: (Each undeclared identifier is reported only once
core/core.c:98: error: for each function it appears in.)
core/core.c:98: error: expected ?;? before ?crc?
core/core.c:104: error: ?crc? undeclared (first use in this function)
core/core.c:104: warning: implicit declaration of function ?crc32?
core/core.c: In function ?PLogin?:
core/core.c:527: warning: pointer targets in initialization differ in signedness
core/core.c:527: warning: pointer targets in initialization differ in signedness
core/core.c: In function ?SendLoginResponse?:
core/core.c:810: warning: pointer targets in passing argument 1 of ?astrncpy? differ in signedness
include/util.h:68: note: expected ?char *? but argument is of type ?byte *?
core/core.c:811: warning: pointer targets in passing argument 1 of ?strlen? differ in signedness
/usr/include/string.h:399: note: expected ?const char *? but argument is of type ?byte *?
core/core.c:817: warning: pointer targets in passing argument 2 of ?net->SendToOne? differ in signedness
core/core.c:817: note: expected ?byte *? but argument is of type ?char *?
make: *** [../build/core.o] Error 1


150 compile error
Code: Show/Hide

sh-4.1$ make
install -d ../bin/
install Makefile ../bin/.stamp
gcc -std=gnu99 -pipe -I. -Iinclude -I../build  -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall   -c -o ../build/main.o main/main.c
gcc -std=gnu99 -pipe -I. -Iinclude -I../build  -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall   -c -o ../build/module.o main/module.c
gcc -std=gnu99 -pipe -I. -Iinclude -I../build  -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall   -c -o ../build/cmod.o main/cmod.c
gcc -std=gnu99 -pipe -I. -Iinclude -I../build  -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall   -c -o ../build/util.o main/util.c
gcc -std=gnu99 -pipe -I. -Iinclude -I../build  -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall   -c -o ../build/pathutil.o main/pathutil.c
gcc -std=gnu99 -pipe -I. -Iinclude -I../build  -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall   -c -o ../build/protutil.o main/protutil.c
gcc -std=gnu99 -pipe -I. -Iinclude -I../build  -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall   -c -o ../build/rwlock.o main/rwlock.c
gcc -std=gnu99 -pipe -I. -Iinclude -I../build  -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall   -c -o ../build/app.o main/app.c
gcc -std=gnu99 -pipe -I. -Iinclude -I../build  -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall   -c -o ../build/md5.o main/md5.c
gcc -std=gnu99 -pipe -I. -Iinclude -I../build  -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall   -c -o ../build/config.o core/config.c
gcc -std=gnu99 -pipe -I. -Iinclude -I../build  -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall   -c -o ../build/prng.o core/prng.c
gcc -std=gnu99 -pipe -I. -Iinclude -I../build  -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall   -c -o ../build/player.o core/player.c
gcc -std=gnu99 -pipe -I. -Iinclude -I../build  -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall   -c -o ../build/core.o core/core.c
core/core.c:17:18: error: zlib.h: No such file or directory
core/core.c: In function ?get_checksum?:
core/core.c:98: error: ?uLong? undeclared (first use in this function)
core/core.c:98: error: (Each undeclared identifier is reported only once
core/core.c:98: error: for each function it appears in.)
core/core.c:98: error: expected ?;? before ?crc?
core/core.c:104: error: ?crc? undeclared (first use in this function)
core/core.c:104: warning: implicit declaration of function ?crc32?
make: *** [../build/core.o] Error 1



So can someone save me please?!

Also is there a way of compiling only the mod.c file and not the whole server?

Many thanks!
Grelminar - Wed Nov 06, 2013 7:53 pm
Post subject:
You need to install the zlib development headers. "sudo yum install zlib-devel".

You're probably missing mysql-devel, python-devel, etc. Just figure it out based on the name of the missing .h file.
Anonymous - Thu Nov 07, 2013 1:40 pm
Post subject:
Hi Gremlinar,

Many thanks for the speedy response, I wasnt sure how well used these forums were anymore.

I was worried that the core.o file had been corrupted in the distro or something.

What you say would make sense, I have recently reformatted my server from 64bit Centos 6 to 34bit to try and claw back some ram from all my running processes. With 64bit I had devtools package installed which has all those packages, so thats why I only get errors after the reinstall.

When it came to compiling I forgot to reinstall the devtools and just installed make and gcc.. FAIL!

Ill give it another try and get back to you.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group