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 04-28-2003, 10:09 AM
Sandabus
Fire Beetle
 
Join Date: Apr 2003
Posts: 10
Default Problem with Linux Compile. Help please.

Ok. I've got a problem compiling EQEMU on Linux.
I'm running Redhat 9.0 and have the following
MySQL RPM's installed.

MySQL-client-4.0.12-0
MySQL-shared-4.0.12-0
perl-DBD-MySQL-2.1021-3
MySQL-embedded-4.0.12-0
MySQL-devel-4.0.12-0
MySQL-server-4.0.12-0

I'm running gcc-3.2.2-5
and I'm getting the following error(s)

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 ../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 -lmysqlclient -ldl -o world
/usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0xaa): In function `my_uncompress':
: undefined reference to `uncompress'
/usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x13c): In function `my_compress_alloc':
: undefined reference to `compress'
collect2: ld returned 1 exit status
make: *** [world] Error 1


(I'm getting for both of the world and zone compiles but I'm only putting one up since they
look basically the same).

This is my makefile (Below)
APP=world
SF=../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

CC=gcc
LINKER=gcc
DFLAGS=-DDEBUG=1 -DSHAREMEM -DCATCH_CRASH
WFLAGS=-Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Wcomment -Wcast-align -Winline -Wno-deprecated
COPTS=$(WFLAGS) -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY
-DWORLD $(DFLAGS) -I/usr/include/mysql
LINKOPTS=-rdynamic -L. -lstdc++ -lm -lz -L/usr/lib/mysql -lmysqlclient -ldl
all: $(APP)

$(APP): $(SF)
$(LINKER) $(COPTS) $(OBJS) $^ $(LINKOPTS) -o $@

clean:
rm -f $(SF) $(APP)

%.o: %.cpp
$(CC) -c $(COPTS) $< -o $@


.obj/debug.o: ../common/debug.cpp ../common/debug.h
mkdir -p .obj
$(CC) $(COPTS) -c ../common/debug.cpp -o .obj/debug.o




So basically, can anyone tell me what I need to
do to fix this?

Thanks, Sandabus
Reply With Quote
  #2  
Old 04-28-2003, 11:46 AM
Sandabus
Fire Beetle
 
Join Date: Apr 2003
Posts: 10
Default

Nevermind.
Fixed the problem now onward and hopefully
the rest will work w/o any issues

Sandabus
Reply With Quote
  #3  
Old 04-29-2003, 01:13 AM
kathgar
Discordant
 
Join Date: May 2002
Posts: 434
Default

I would just like to point out that libz was not getting linked right, and one simple fix is to had -lz to the end of the
-rdynamic -L. -lstdc++ -lm -lz -L/usr/lib/mysql -lmysqlclient -ldl *here lz* -o world
__________________
++[>++++++<-]>[<++++++>-]<.>++++[>+++++<-]>[<
+++++>-]<+.+++++++..+++.>>+++++[<++++++>-]<+
+.<<+++++++++++++++.>.+++.------.--------.>+.
Reply With Quote
  #4  
Old 05-09-2003, 05:24 AM
Djinii
Fire Beetle
 
Join Date: May 2003
Posts: 3
Default

I'm having the same problem with redhat 8.0

what line did you add that '-lz' to? 'LINKOPTS' from the makefile?

i tried this and i still get a whorl of errors when compiling...

any suggestions on things to try?

Djinii
Reply With Quote
  #5  
Old 05-09-2003, 04:13 PM
Bigpull
Discordant
 
Join Date: Feb 2003
Posts: 305
Default

LINKOPTS=-rdynamic -L. -lstdc++ -lm -lz -L/usr/lib/mysql -lmysqlclient -lz -ldl

make sure you have the zlib*-dev installed.

Oh makefiles were purchased from crack heads on the corner, if anyone wants to tackle and donate automake goodies feel free =)
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:13 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