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

Archive::Linux Servers Archive area for Linux Servers's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-04-2003, 03:35 PM
cipherious
Fire Beetle
 
Join Date: Jun 2003
Posts: 5
Default Debian Linux, gcc 3.2 and EQEmu CVS compile error..

Well, I was experiencing some of the other problems I saw posted about, so I went ahead and updated my system to gcc3.2 et all.

Now I'm getting this when I try to make the world binary:

Code:
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -I/usr/include/mysql -I/usr/mysql/include ../common/crc32.cpp -o ../common/crc32.o
cc1plus: warning: "-Wbad-function-cast" is valid for C/ObjC but not for C++
cc1plus: warning: "-Wnested-externs" is valid for C/ObjC but not for C++
../common/crc32.cpp:78:2: warning: #warning "Comment out i386 define if your arch isn't x86"
../common/crc32.cpp: In static member function `static uint32
   CRC32::Update(const int8*, unsigned int, unsigned int)':
../common/crc32.cpp:140: error: asm-specifier for variable `_crc32' conflicts
   with asm clobber list
make[1]: *** [../common/crc32.o] Error 1
make[1]: Leaving directory `/home/rsdn/eqemu/NightDumps/Source/world'
make: *** [world/world] Error 2
Any ideas?
Reply With Quote
  #2  
Old 06-04-2003, 11:57 PM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Thats funky....

I'd suggest following the warning and commenting out the define so the assembly isnt compiled...

Those assembly routines were written for gcc3.2, no idea why they would fail, unless gas syntax has changed..
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #3  
Old 06-05-2003, 12:11 AM
fnemo's Avatar
fnemo
Discordant
 
Join Date: Dec 2002
Posts: 354
Default

are you sure you are using gcc 3.2 ?
"gcc -v"
__________________
Nemo
Administrator and coder for the World Alkora Server
Reply With Quote
  #4  
Old 06-05-2003, 02:53 AM
cipherious
Fire Beetle
 
Join Date: Jun 2003
Posts: 5
Default

Sorry, I'm not using 3.2. It's actually 3.3. x;

I caught the error, but it's definately a 386 (P2400) so I just left it alone. I'll go look into that. Thanks.
Reply With Quote
  #5  
Old 06-05-2003, 03:03 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

3.3 ?

Im only up to 3.2.3 right now, not moving up to 3.3 until it's had some time to burn in.

I'm looking through their change log, don't see anything relative to modifying those warning flags for c++, or making any asm changes...

Methinks 3.3 might have some undocumented changes (or bugs).
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #6  
Old 06-05-2003, 04:43 AM
cipherious
Fire Beetle
 
Join Date: Jun 2003
Posts: 5
Default

Alright, after going through literal hell removing and installing Debian packages (and accidently removing/reinstalling apache and mysql and other misc things) I've finally gotten it to compile past crc32.cpp, the problem was gcc3.3 as far as I can tell.

So now:


Code:
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -I/usr/include/mysql -I/usr/mysql/include  ../common/EQNetwork.o ../common/timer.o ../common/database.o ../common/packet_dump.o ../common/races.o ../common/unix.o ../common/Mutex.o ../common/MiscFunctions.o ../common/serverinfo.o ../common/packet_functions.o ../common/classes.o ../common/TCPConnection.o ../common/eqtime.o ../common/crc32.o client.o net.o console.o zoneserver.o LoginServer.o ../common/md5.o ../common/dbcore.o ../common/dbasync.o ../common/EMuShareMem.o .obj/debug.o -rdynamic -L. -lstdc++ -lm -lz -L/usr/lib/mysql -L/usr/mysql/lib -lmysqlclient -ldl -o world
../common/database.o(.text+0xc07): In function `Database::HandleMysqlError(unsigned)':
../common/database.cpp:199: undefined reference to `AddEQEMuError(eEQEMuError, bool)'
net.o(.text+0xf23): In function `main':
/home/rsdn/eqemu/NightDumps/Source/world/net.cpp:379: undefined reference to `CheckEQEMuErrorAndPause()'
collect2: ld returned 1 exit status
make[1]: *** [world] Error 1
make[1]: Leaving directory `/home/rsdn/eqemu/NightDumps/Source/world'
make: *** [world/world] Error 2
Any ideas? I *just* grabbed the CVS fresh, so am I wrong in assuming thre's a missing function (or prototype) somewhere?

Thanks again.
Reply With Quote
  #7  
Old 06-05-2003, 05:07 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Add

../common/EQEMuError.o to the list of compile objects. You'll need to add doors.o also in the zone makefile.

CVS makefiles havent been updated yet for some new files.
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #8  
Old 06-05-2003, 05:12 AM
cipherious
Fire Beetle
 
Join Date: Jun 2003
Posts: 5
Default

Very nice. Thanks a bunch for everything!
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 02:32 PM.


 

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