Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Linux Servers

Support::Linux Servers Support forum for Linux EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-05-2012, 09:50 AM
druid64
Fire Beetle
 
Join Date: Dec 2011
Posts: 20
Default 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)
MYSQL_LIB=$(shell mysql_config --libs)
DFLAGS=-DEQDEBUG=5 -DCATCH_CRASH -DNO_PIDLOG -DSHAREMEM -DFIELD_ITEMS -DCOMBINED -DAPP_OPCODE_SIZE=2 -Di386 -DBOTS
#try commenting out the following three lines to disable embedded perl
PERL_FLAGS=$(shell perl -MExtUtils::Embed -e ccopts)
PERL_LIB=$(shell perl -MExtUtils::Embed -e ldopts)
DFLAGS+=-DEMBPERL -DEMBPERL_PLUGIN -DHAS_UNION_SEMUN
zone/makefile.common
Code:
   zone_logsys.o ../common/BasePacket.o ../common/worldconn.o \
   ../common/EmuTCPConnection.o ../common/EmuTCPServer.o ../common/TCPServer.o \
   ../common/guild_base.o bot.o botspellsai.o \
   guild_mgr.o tasks.o raids.o perl_hateentry.o perl_object.o QGlobals.o QuestParserCollection.o


all: $(APP
)

world/makefile
Code:
LINKOUT=-o
NOLINK=-c
DFLAGS=-DDEBUG=5 -DEQDEBUG=5 -DSHAREMEM -DCATCH_CRASH -DNO_PIDLOG -DFIELD_ITEMS -DIRC -Di386 -DAPP_OPCODE_SIZE=2 -DBOTS
WFLAGS=-Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wcomment -Wcast-align -Wno-deprecated

PERL_FLAGS=$(shell perl -MExtUtils::Embed -e ccopts)
PERL_LIB=$(shell perl -MExtUtils::Embed -e ldopts)
DFLAGS+=-DEMBPERL -DEMBPERL_PLUGIN -DHAS_UNION_SEMUN
Error
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'
perlparser.cpp: In function 'void XS__createbotcount(PerlInterpreter*, CV*)':
perlparser.cpp:2082: warning: unused variable 'items'
perlparser.cpp: In function 'void XS__spawnbotcount(PerlInterpreter*, CV*)':
perlparser.cpp:2095: warning: unused variable 'items'
perlparser.cpp: In function 'void XS__botquest(PerlInterpreter*, CV*)':
perlparser.cpp:2108: warning: unused variable 'items'
perlparser.cpp: In function 'void XS__GetSpellResistType(PerlInterpreter*, CV*)':
perlparser.cpp:3051: warning: unused variable 'targ'
perlparser.cpp: In function 'void XS__GetSpellTargetType(PerlInterpreter*, CV*)':
perlparser.cpp:3066: warning: unused variable 'targ'
perlparser.cpp: In function 'void XS__GetTimeSeconds(PerlInterpreter*, CV*)':
perlparser.cpp:3237: warning: unused variable 'targ'
make[1]: *** [perlparser.o] Error 1
make[1]: Leaving directory `/home/eqemu/eqemulator/projecteqemu/zone'
make: *** [all] Error 2
Reply With Quote
  #2  
Old 01-05-2012, 11:43 AM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

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 ?
Reply With Quote
  #3  
Old 01-05-2012, 11:54 AM
druid64
Fire Beetle
 
Join Date: Dec 2011
Posts: 20
Default

Yes it is 64 bit.

Yes it compiles correctly without bots. I can connect, login, run around , etc.
Reply With Quote
  #4  
Old 01-05-2012, 12:04 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

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.
Reply With Quote
  #5  
Old 01-07-2012, 07:40 PM
druid64
Fire Beetle
 
Join Date: Dec 2011
Posts: 20
Default

Sorry its actually 32 bit
Reply With Quote
  #6  
Old 01-08-2012, 01:34 PM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

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.
Reply With Quote
  #7  
Old 01-08-2012, 01:46 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

I am thinking the same thing. I am running Debian x64, newly updated and no issues compiling.
Reply With Quote
  #8  
Old 01-08-2012, 03:36 PM
druid64
Fire Beetle
 
Join Date: Dec 2011
Posts: 20
Default

Sorry double post
Reply With Quote
  #9  
Old 01-08-2012, 03:42 PM
druid64
Fire Beetle
 
Join Date: Dec 2011
Posts: 20
Default

Quote:
Originally Posted by Andrew80k View Post
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 have gcc version 4.1.2 for centos 5 and thats the most up to date. So no clue where I would even start to debug that error.
Reply With Quote
  #10  
Old 01-08-2012, 03:56 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

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.
Reply With Quote
  #11  
Old 01-08-2012, 11:09 PM
druid64
Fire Beetle
 
Join Date: Dec 2011
Posts: 20
Default

It is a deal breaker. Centos 5 is an older linux so no going back hehe.
Reply With Quote
  #12  
Old 01-09-2012, 01:55 PM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

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.
Reply With Quote
  #13  
Old 01-09-2012, 06:06 PM
druid64
Fire Beetle
 
Join Date: Dec 2011
Posts: 20
Default

Thanks so much
Reply With Quote
  #14  
Old 01-09-2012, 08:09 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

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.
Reply With Quote
  #15  
Old 01-09-2012, 09:43 PM
druid64
Fire Beetle
 
Join Date: Dec 2011
Posts: 20
Default

Go figure 1 ver behind you lol. Centos 5.6 gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 05:53 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3