Error trying to compile bots
Hi. I am trying to compile the latest SVN with bots but keep getting the error below. When I make without the bots it compiles and runs fine. Any help here would be greatly appreciated. I posted snapshots of the changes I made, text in yellow, as per the wiki to the various files.
Linux Centos 5 From the wiki to compile bots in linux Edit your "makefile" in .\zone and add "-DBOTS" to DFLAGS. Edit your "makefile.common" file in .\zone and add both "bot.o" and "botspellsai.o" Edit your "makefile" in .\world and add "-DBOTS" to DFLAGS. Compile it. zone/makefile Code:
MYSQL_FLAGS=$(shell mysql_config --cflags) Code:
zone_logsys.o ../common/BasePacket.o ../common/worldconn.o \ world/makefile Code:
LINKOUT=-o Code:
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/i386-redhat-linux/bits/messages_members.h:88: error: expected initializer before 'const' |
Is this 64 bit ?
Not sure if that even matters because from looking over your files you have everything in the right place. It definitely compiles correctly with bots off ? |
Yes it is 64 bit.
Yes it compiles correctly without bots. I can connect, login, run around , etc. |
A lot of people have been having PERL issues since some changes in source, I do see the warnings are PERL related. I am not sure on the error though. You are probably going to have to let someone more into the programming aspects answer this post.
|
Sorry its actually 32 bit
|
Hmm. I'm running Fedora Core 15 32-bit and it's compiling fine with bots for me. The error almost looks like your compiler is having an issue.
|
I am thinking the same thing. I am running Debian x64, newly updated and no issues compiling.
|
Sorry double post
|
Quote:
|
Is it a deal breaker for you to go with another Linux OS ? You may have to go back a version of your Linux OS or use a different distribution. I normally stay a little behind on mine, I have had compile problems going with the newest Debian so I normally stay a level behind.
|
It is a deal breaker. Centos 5 is an older linux so no going back hehe.
|
I haven't tried CentOS 5. I could put a VM on my Windows box to try to help you with it. Let me see what I can do this evening.
|
Thanks so much
|
I've got a CentOS 5.6 running with non-bots. Will compile a bots version to test real quick.
EDIT: Correction. I didn't realize we updated to 5.7 already. Anyways, bots compiles fine. Using gcc version 4.1.2 20080704 (Red Hat 4.1.2-51) on a 64-bit machine running 32-bit OS. |
Go figure 1 ver behind you lol. Centos 5.6 gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)
|
I was compiling fine with 5.6 as well. Obviously didn't try bots back then. There shouldn't be any difference. I'm thinking something got changed accidentally (gotta love vi ...).
EDIT: Did you recently try to upgrade perl or compile your own? |
I just yum update to make sure it was current
|
I don't have CentOS, but I did test updating to the latest source code (2097) and compiling on my openSUSE server.
It's a 64-bit OS, so my makefiles force 32-bit compile mode for gcc, g++, etc. with the -m32 option. gcc is version 4.6.2 Bots is compiling fine against perl 5.10. I have modified the makefiles to use a path containing perl 5.10 32-bit. (Native perl in my OS is 5.14) The only thing in your makefile.common that differs from mine is that I added the bot.o and botspellsai.o to the last line after QuestParserCollection.o. I really don't think that should matter, but I mention it just in case. |
I fixed mine eventually. It was just the zones file that weren't compiling. The world files were fine. I had to install a separate higher version of my gcc compiler. I had to google a repo and add it to the yum repo file as well.
Code:
yum gcc44 gcc44-c++ I then had change the /zone/makefile to recognize the gcc44 version Code:
HCC=$(shell ccache -V 2>/dev/null) |
Actually this now seems to be the issue of my LD and zone disconnects so not really a fix.
|
All times are GMT -4. The time now is 07:35 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.