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 Compile errors on Centos 6

 
Post new topic   Reply to topic Printable version
 View previous topic  ASSS Zone crashed after 120 days of be... Post :: Post ASSS 1.5.0rc1  View next topic  
Author Message
candybars
Guest


Offline

PostPosted: Tue Nov 05, 2013 5:23 pm    Post subject: ASSS Compile errors on Centos 6 Reply to topic Reply with quote

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!
Back to top
Grelminar
Creator of Asss


Joined: Feb 26 2003
Posts: 378
Offline

PostPosted: Wed Nov 06, 2013 7:53 pm    Post subject: Reply to topic Reply with quote

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


Offline

PostPosted: Thu Nov 07, 2013 1:40 pm    Post subject: Reply to topic Reply with quote

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.
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: 45 page(s) served in previous 5 minutes.

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