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-14-2003, 05:11 PM
morpheus014
Hill Giant
 
Join Date: Feb 2002
Location: the little voice in the back of your head
Posts: 239
Default Problems with EmuShareMem

Okay the world and zone built fine, and as I have in the past I am stuck with EMuShareMem. I think whatever the problem is is staring me in the face but I cant see it, I have been experimenting with the makefile since the 'stock' mysql path's didnt work, and neither did acolytes modified makefile. So here is what I have, if anyone can see what is probably obviously wrong with this please tell me!!
Code:
make
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 -L/usr/lib/mysql -L/usr/local/mysql/lib -lmysqlclient -ldl
This is all that I get now, nothing past the first GCC, here is my makefile:
Makefile:
Code:
# Generated automatically from Makefile.in by configure.
APP=libEMuShareMem.so
SF=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

CC=gcc
LD=ld

DFLAGS=-DDEBUG=1 -DSHAREMEM -DCATCH_CRASH
WFLAGS=-Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wstrict-prototypes -Wno-deprecated -Wnested-externs -Wcomment -Wcast-align

COPTS=$(WFLAGS) $(DFLAGS) -g -fPIC -O2 -D_GNU_SOURCE -DINVERSEXY -DFX `/usr/bin/mysql_config --cflags` -DEMUSHAREMEM
LINKOPTS=-L. -lstdc++ -lm -lz -L/usr/lib/mysql -L/usr/local/mysql/lib -lmysqlclient -ldl



all: $(APP)


	

$(APP): $(SF)

	$(CC) -g -shared -Wl,-soname,$(APP) -o $(APP) $(SF) $(LINKOPTS)


clean:

	rm -f $(SF) $(APP)


%.o: %.cpp

	$(CC) $(COPTS) -c $< -o $@


.obj/debug.o: ../common/debug.h ../common/debug.cpp
	mkdir -p .obj
	$(CC) $(COPTS) -c ../common/debug.cpp -o .obj/debug.o
=/
__________________
Please remain seated while the room is in motion
Reply With Quote
  #2  
Old 06-14-2003, 07:05 PM
Bigpull
Discordant
 
Join Date: Feb 2003
Posts: 305
Default

It's doing the final linking nothing abnormal about that, you really should run "make clean" when you switch from world to zone and zone to EMuShareMem however.
Reply With Quote
  #3  
Old 06-15-2003, 03:45 AM
morpheus014
Hill Giant
 
Join Date: Feb 2002
Location: the little voice in the back of your head
Posts: 239
Default

Thanks a lot Bigpull! Compiled perfectly
__________________
Please remain seated while the room is in motion
Reply With Quote
  #4  
Old 06-17-2003, 03:39 AM
naik
Fire Beetle
 
Join Date: Jun 2003
Posts: 10
Default This didn't work for me

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 -lmysqlclient
collect2: ld returned 1 exit status
make: *** [libEMuShareMem.so] Error 1


Anyone have any ideas? I tried make clean a few times. too.
Reply With Quote
  #5  
Old 06-17-2003, 06:28 AM
Acolyte
Sarnak
 
Join Date: May 2002
Location: Oakland, CA
Posts: 83
Default

God it's amazing DID YOU MISS THE MYSQLCLIENT STICKY IN THIS FORUM?

http://forums.eqemu.net/viewtopic.php?t=8348

heh.
__________________
The Acolyte
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 01:07 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