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-24-2003, 10:18 AM
Trendkill
Fire Beetle
 
Join Date: Jun 2003
Posts: 7
Default Debian Problems

I can't get anything to compile. I jsut upgraded to GCC 3.2 and have been running MySQL 3.23 for a while now <run this same PHP based DB actually =)>

When trying to make EMu I get this:
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c MMFMutex.cpp -o MMFMutex.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c Doors.cpp -o Doors.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c Items.cpp -o Items.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c Spells.cpp -o Spells.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c NPCTypes.cpp -o NPCTypes.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c NPCFactionLists.cpp -o NPCFactionLists.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c MMF.cpp -o MMF.o
MMF.cpp: In method `bool MMF::Open(const char *, unsigned int)':
MMF.cpp:138: warning: unused variable `int max_share'
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c Loot.cpp -o Loot.o
Loot.cpp: In function `bool pDLLLoadLoot(bool (*)(), unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)':
Loot.cpp:192: warning: cast discards qualifiers from pointer target type
Loot.cpp:193: warning: cast discards qualifiers from pointer target type
Loot.cpp: In function `const struct LootTable_Struct * pGetLootTable(unsigned int)':
Loot.cpp:202: warning: cast discards qualifiers from pointer target type
Loot.cpp: In function `const struct LootDrop_Struct * pGetLootDrop(unsigned int)':
Loot.cpp:210: warning: cast discards qualifiers from pointer target type
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c ../common/timer.cpp -o ../common/timer.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c ../common/unix.cpp -o ../common/unix.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `mysql_config --cflags` -DEMUSHAREMEM -c ../common/EMuShareMem.cpp -o ../common/EMuShareMem.o
gcc -g -shared -Wl,-soname,libEMuShareMem.so -o libEMuShareMem.so MMFMutex.o Doors.o Items.o Spells.o NPCTypes.o NPCFactionLists.o MMF.o Loot.o ../common/timer.o ../common/unix.o ../common/EMuShareMem.o -L. -lstdc++ -lm -lz `mysql_config --libs`
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [libEMuShareMem.so] Error 1

Any ideas?
Reply With Quote
  #2  
Old 06-24-2003, 10:21 AM
Acolyte
Sarnak
 
Join Date: May 2002
Location: Oakland, CA
Posts: 83
Default

ld = linker... what version of GCC?
__________________
The Acolyte
Reply With Quote
  #3  
Old 06-24-2003, 10:24 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

zlib development headers.. make sure you have them installed...
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #4  
Old 06-24-2003, 10:24 AM
fnemo's Avatar
fnemo
Discordant
 
Join Date: Dec 2002
Posts: 354
Default

i'm pretty sure that you use gcc 2.9 and not 3.2 (even if its installed)

check your soft links.
__________________
Nemo
Administrator and coder for the World Alkora Server
Reply With Quote
  #5  
Old 06-24-2003, 10:25 AM
Acolyte
Sarnak
 
Join Date: May 2002
Location: Oakland, CA
Posts: 83
Default

Man I Must be tired.
__________________
The Acolyte
Reply With Quote
  #6  
Old 06-24-2003, 10:28 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

No, you'll want gcc > 3.

We dont support 2.9x builds anymore (none of us have any 2.9x machines to test builds on anymore)
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #7  
Old 06-24-2003, 10:47 AM
Trendkill
Fire Beetle
 
Join Date: Jun 2003
Posts: 7
Default Well..

Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/specs
Configured with: ./configure
Thread model: posix
gcc version 3.2.3

thats gcc -v

I might be missing the development header files.. will look into that now...
Reply With Quote
  #8  
Old 06-24-2003, 11:00 AM
Trendkill
Fire Beetle
 
Join Date: Jun 2003
Posts: 7
Default Doh!

Development headers are installed.
Any other ideas? =(
Reply With Quote
  #9  
Old 06-25-2003, 01:39 AM
kathgar
Discordant
 
Join Date: May 2002
Posts: 434
Default

find / -name libz.so
__________________
++[>++++++<-]>[<++++++>-]<.>++++[>+++++<-]>[<
+++++>-]<+.+++++++..+++.>>+++++[<++++++>-]<+
+.<<+++++++++++++++.>.+++.------.--------.>+.
Reply With Quote
  #10  
Old 06-25-2003, 02:38 AM
Trendkill
Fire Beetle
 
Join Date: Jun 2003
Posts: 7
Default Ok..

No results from that find.. I'm missing something? I used dselect to install mysql 3.23. I selected the development packages. Should I be grabbing something from MySQL directly?
Reply With Quote
  #11  
Old 06-25-2003, 02:47 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

libz has nothing to do with mysql...

I think you'll want to apt-get zlib1g-dev , zlibc, etc. Im not a debian expert, but I'm pretty sure these are the ones you want.
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #12  
Old 06-25-2003, 03:51 AM
Trendkill
Fire Beetle
 
Join Date: Jun 2003
Posts: 7
Default Thanks..

Ok Zlib got me past compiling /world/ and EMu../
Now I've moved on to compiling zone and I'm in a whole world of hurt.

gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wn
o-deprecated -Wnested-externs -Wcomment -Wcast-align -O -ggdb -march=i686 -pthread -pipe -D_GNU_SOUR
CE -DINVERSEXY -DFX -DZONE -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -I/usr/include/mysql -I/usr/mysql/incl
ude ../common/EMuShareMem.cpp -o ../common/EMuShareMem.o
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wn
o-deprecated -Wnested-externs -Wcomment -Wcast-align -O -ggdb -march=i686 -pthread -pipe -D_GNU_SOUR
CE -DINVERSEXY -DFX -DZONE -DDEBUG=1 -DSHAREMEM -DCATCH_CRASH -I/usr/include/mysql -I/usr/mysql/incl
ude doors.cpp -o doors.o
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-d
eprecated -Wnested-externs -Wcomment -Wcast-align -O -ggdb -march=i686 -pthread -pipe -D_GNU_SOURCE
-DINVERSEXY -DFX -DZONE -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/pac
ket_functions.o ../common/unix.o ../common/packet_dump_file.o ../common/Mutex.o ../common/MiscFuncti
ons.o zone.o entity.o mob.o client.o client_process.o npc.o net.o spawn2.o attack.o hate_list.o ../c
ommon/serverinfo.o ../common/moremath.o worldserver.o spells.o spawngroup.o loottables.o faction.o M
ap.o PlayerCorpse.o petitions.o WesQuests.o MobAI.o Object.o ../common/eqtime.o groups.o ../common/c
lasses.o ../common/races.o ../common/TCPConnection.o forage.o ../common/crc32.o ../common/guilds.o .
./common/EQEMuError.o ../common/md5.o ../common/dbcore.o ../common/dbasync.o zonedbasync.o parser.o
../common/EMuShareMem.o .obj/debug.o doors.o -rdynamic -L. -lstdc++ -lm -lz -L/usr/lib/mysql -L/usr/
mysql/lib -lmysqlclient -ldl -o zone
../common/EQNetwork.o: In function `EQNetworkConnection::QueuePacket(APPLAYER const*, bool)':
/home/mike/EQEmu/Source/zone/../common/EQNetwork.cpp:471: undefined reference to `EQEMuLog::write(EQ
EMuLog::LogIDs, char const*, ...)'
../common/EQNetwork.o: In function `EQNetworkConnection::FastQueuePacket(APPLAYER**, bool)':
/home/mike/EQEmu/Source/zone/../common/EQNetwork.cpp:485: undefined reference to `EQEMuLog::write(EQ
EMuLog::LogIDs, char const*, ...)'
../common/EQNetwork.o: In function `EQNetworkConnection::OpenSock(char*, unsigned short, char*)':
/home/mike/EQEmu/Source/zone/../common/EQNetwork.cpp:526: undefined reference to `EQEMuLog::write(EQ
EMuLog::LogIDs, char const*, ...)'
../common/EQNetwork.o: In function `EQNetworkConnection::OpenSock(unsigned, unsigned short)':
/home/mike/EQEmu/Source/zone/../common/EQNetwork.cpp:538: undefined reference to `EQEMuLog::write(EQ
EMuLog::LogIDs, char const*, ...)'
../common/EQNetwork.o: In function `EQNetworkConnection::CloseSock()':
/home/mike/EQEmu/Source/zone/../common/EQNetwork.cpp:595: undefined reference to `EQEMuLog::write(EQ
EMuLog::LogIDs, char const*, ...)'
../common/EQNetwork.o:/home/mike/EQEmu/Source/zone/../common/EQNetwork.cpp:626: more undefined refer
ences to `EQEMuLog::write(EQEMuLog::LogIDs, char const*, ...)' follow
.obj/debug.o: In function `EQEMuLog::EQEMuLog(void)':
/home/mike/EQEmu/Source/zone/../common/debug.cpp:47: undefined reference to `__builtin_new'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:47: undefined reference to `Mutex::Mutex(void)'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:47: undefined reference to `__throw'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:47: undefined reference to `__builtin_delete'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:48: undefined reference to `__builtin_vec_new'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:49: undefined reference to `__builtin_vec_new'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:50: undefined reference to `__builtin_vec_new'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:53: undefined reference to `__builtin_new'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:53: undefined reference to `Mutex::Mutex(void)'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:53: undefined reference to `__throw'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:53: undefined reference to `__builtin_delete'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:63: undefined reference to `__builtin_delete'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:63: undefined reference to `__builtin_delete'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:63: undefined reference to `terminate(void)'
.obj/debug.o: In function `EQEMuLog::~EQEMuLog(void)':
/home/mike/EQEmu/Source/zone/../common/debug.cpp:71: undefined reference to `Mutex::~Mutex(void)'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:73: undefined reference to `__builtin_delete'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:74: undefined reference to `__builtin_delete'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:75: undefined reference to `__builtin_delete'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:76: undefined reference to `Mutex::~Mutex(void)'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:76: undefined reference to `__builtin_delete'
.obj/debug.o: In function `EQEMuLog::open(EQEMuLog::LogIDs)':
/home/mike/EQEmu/Source/zone/../common/debug.cpp:83: undefined reference to `LockMutex::LockMutex(Mu
tex *, bool)'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:85: undefined reference to `LockMutex::~LockMutex(v
oid)'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:89: undefined reference to `LockMutex::~LockMutex(v
oid)'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:106: undefined reference to `cerr'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:106: undefined reference to `ostream::operator<<(ch
ar const *)'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:106: undefined reference to `ostream::operator<<(ch
ar const *)'
.obj/debug.o: In function `EQEMuLog::open(EQEMuLog::LogIDs)':
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/iostream.h:106: undefined reference to
`endl(ostream &amp'
.obj/debug.o: In function `EQEMuLog::open(EQEMuLog::LogIDs)':
/home/mike/EQEmu/Source/zone/../common/debug.cpp:108: undefined reference to `LockMutex::~LockMutex(
void)'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:112: undefined reference to `LockMutex::~LockMutex(
void)'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:112: undefined reference to `__throw'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:112: undefined reference to `LockMutex::~LockMutex(
void)'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:112: undefined reference to `terminate(void)'
.obj/debug.o: In function `EQEMuLog::write(EQEMuLog::LogIDs, char const *,...)':
/home/mike/EQEmu/Source/zone/../common/debug.cpp:128: undefined reference to `LockMutex::LockMutex(M
utex *, bool)'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:168: undefined reference to `LockMutex::~LockMutex(
void)'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:168: undefined reference to `__throw'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:168: undefined reference to `LockMutex::~LockMutex(
void)'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:168: undefined reference to `terminate(void)'
.obj/debug.o: In function `EQEMuLog:ump(EQEMuLog::LogIDs, unsigned char *, unsigned int, unsigned
int, unsigned int)':
/home/mike/EQEmu/Source/zone/../common/debug.cpp:205: undefined reference to `LockMutex::LockMutex(M
utex *, bool)'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:208: undefined reference to `__builtin_vec_new'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:237: undefined reference to `__builtin_delete'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:238: undefined reference to `LockMutex::~LockMutex(
void)'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:238: undefined reference to `__throw'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:238: undefined reference to `LockMutex::~LockMutex(
void)'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:238: undefined reference to `terminate(void)'
.obj/debug.o: In function `__static_initialization_and_destruction_0':
/home/mike/EQEmu/Source/zone/../common/debug.cpp:40: undefined reference to `__builtin_new'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:40: undefined reference to `__throw'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:40: undefined reference to `__builtin_delete'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:41: undefined reference to `__builtin_delete'
/home/mike/EQEmu/Source/zone/../common/debug.cpp:41: undefined reference to `terminate(void)'
.obj/debug.o(.debug_info+0x6b07): undefined reference to `endl(ostream &amp'
doors.o: In function `Doors:umpDoor()':
/home/mike/EQEmu/Source/zone/doors.cpp:103: undefined reference to `EQEMuLog::write(EQEMuLog::LogIDs
, char const*, ...)'
/home/mike/EQEmu/Source/zone/doors.cpp:106: undefined reference to `EQEMuLog::write(EQEMuLog::LogIDs
, char const*, ...)'
/home/mike/EQEmu/Source/zone/doors.cpp:109: undefined reference to `EQEMuLog::write(EQEMuLog::LogIDs
, char const*, ...)'
collect2: ld returned 1 exit status
make: *** [zone] Error 1
Reply With Quote
  #13  
Old 06-25-2003, 04:01 AM
Muuss
Dragon
 
Join Date: May 2003
Posts: 539
Default

have you made a "make clean" in your eqemu dirs after you installed zlib?
Reply With Quote
  #14  
Old 06-25-2003, 04:01 AM
Trendkill
Fire Beetle
 
Join Date: Jun 2003
Posts: 7
Default Make Clean?

Yes.
Reply With Quote
  #15  
Old 06-25-2003, 04:07 AM
Trendkill
Fire Beetle
 
Join Date: Jun 2003
Posts: 7
Default Figured it out..

Ok, NM, time to go give this a try =P
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 12:13 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3