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

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 09-19-2005, 04:41 AM
Darkmeerkat
Fire Beetle
 
Join Date: Sep 2005
Posts: 4
Default

Thanks, that got me past that part. Now it just throws this error:
Quote:
(Sat 17 Sep 2005 10:56:02 PM MST)-(root@meerkat)-(/usr/local/bin/EQEmu/source/9-17-05/zone)
# make
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wno-deprecated -Wcomment -Wcast-align -O2 -ggdb -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -DZONE -DEQDEBUG=5 -DNO_PIDLOG -DSHAREMEM -DSPELL_EFFECT_SPAM -DFIELD_ITEMS `mysql_config --cflags` .obj/EQNetwork.o ../common/timer.o ../common/packet_dump.o ../common/packet_functions.o ../common/unix.o ../common/packet_dump_file.o ../common/Mutex.o ../common/MiscFunctions.o zone.o entity.o mob.o client.o client_process.o npc.o net.o spawn2.o attack.o hate_list.o ../common/serverinfo.o ../common/moremath.o worldserver.o spells.o spawngroup.o loottables.o faction.o Map.o PlayerCorpse.o petitions.o MobAI.o Object.o ../common/eqtime.o groups.o ../common/classes.o ../common/races.o ../common/TCPConnection.o forage.o ../common/crc32.o ../common/md5.o ../common/dbcore.o ../common/dbasync.o zonedbasync.o parser.o beacon.o ../common/EMuShareMem.o ../common/EQEMuError.o ../common/ptimer.o .obj/debug.o .obj/database.o .obj/Item.o .obj/misc.o doors.o command.o AA.o client_packet.o tribute.o zone_profile.o bonuses.o trading.o spdat.o spell_effects.o aggro.o guilds.o inventory.o client_mods.o tradeskills.o waypoints.o pets.o effects.o trap.o perl_client.o perl_entity.o perl_mob.o perl_npc.o perl_PlayerCorpse.o perl_groups.o questmgr.o client_logs.o perlparser.o ../common/rdtsc.o ../common/extprofile.o horse.o exp.o fearpath.o special_attacks.o ../common/timeoutmgr.o ../common/Condition.o pathing.o -rdynamic -L. -lstdc++ -ldl `mysql_config --libs` -o zone
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make: *** [zone] Error 1
(Sat 17 Sep 2005 10:56:09 PM MST)-(root@meerkat)-(/usr/local/bin/EQEmu/source/9-17-05/zone)
I'm assuming it's choking trying to find the MySQL libraries (Which are located in /usr/local/bin/mysql/lib, but linked to in /usr/bin). I dinked around with it a little, and eventually modified the decleration part of the makefile to::
Code:
CC=gcc
LINKER=gcc
MYSQL_FLAGS=`mysql_config --cflags`
# Making this link directly to the libs didn't work. (returned "/usr/local/bin/mysql/lib is a directory", then a bunch of undefined errors.)
#MYSQL_LIB=`/usr/local/bin/mysql/lib/`
DFLAGS=-DEQDEBUG=5 -DNO_PIDLOG -DSHAREMEM -DSPELL_EFFECT_SPAM -DFIELD_ITEMS
WFLAGS=-Wall -Wuninitialized -Wwrite-strings -Wcast-qual  -Wstrict-prototypes -Wno-deprecated  -Wcomment -Wcast-align
COPTS=$(WFLAGS) -O2 -ggdb -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -DZONE $(DFLAGS) $(MYSQL_FLAGS)
#LINKOPTS=-rdynamic -L. -lstdc++ -ldl $(MYSQL_LIB)
LINKOPTS=-rdynamic -L. -lstdc++ -ldl -L/usr/bin -lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv -lc-lnss_files -lnss_dns -lresolv
It now returns this when I make it:
Quote:
(Sun 18 Sep 2005 11:05:01 PM MST)-(root@meerkat)-(/usr/local/bin/EQEmu/source/9-17-05/zone)
# make
gcc -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wno-deprecated -Wcomment -Wcast-align -O2 -ggdb -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -DZONE -DEQDEBUG=5 -DNO_PIDLOG -DSHAREMEM -DSPELL_EFFECT_SPAM -DFIELD_ITEMS `mysql_config --cflags` .obj/EQNetwork.o ../common/timer.o ../common/packet_dump.o ../common/packet_functions.o ../common/unix.o ../common/packet_dump_file.o ../common/Mutex.o ../common/MiscFunctions.o zone.o entity.o mob.o client.o client_process.o npc.o net.o spawn2.o attack.o hate_list.o ../common/serverinfo.o ../common/moremath.o worldserver.o spells.o spawngroup.o loottables.o faction.o Map.o PlayerCorpse.o petitions.o MobAI.o Object.o ../common/eqtime.o groups.o ../common/classes.o ../common/races.o ../common/TCPConnection.o forage.o ../common/crc32.o ../common/md5.o ../common/dbcore.o ../common/dbasync.o zonedbasync.o parser.o beacon.o ../common/EMuShareMem.o ../common/EQEMuError.o ../common/ptimer.o .obj/debug.o .obj/database.o .obj/Item.o .obj/misc.o doors.o command.o AA.o client_packet.o tribute.o zone_profile.o bonuses.o trading.o spdat.o spell_effects.o aggro.o guilds.o inventory.o client_mods.o tradeskills.o waypoints.o pets.o effects.o trap.o perl_client.o perl_entity.o perl_mob.o perl_npc.o perl_PlayerCorpse.o perl_groups.o questmgr.o client_logs.o perlparser.o ../common/rdtsc.o ../common/extprofile.o horse.o exp.o fearpath.o special_attacks.o ../common/timeoutmgr.o ../common/Condition.o pathing.o -rdynamic -L. -lstdc++ -ldl -L/usr/bin -lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv -o zone
.obj/EQNetwork.o(.gnu.linkonce.t._ZN8APPLAYERC1E9EmuOpc odej+0xc0): In function `APPLAYER::APPLAYER[in-charge](EmuOpcode, unsigned)':
../common/EQNetwork.h:197: undefined reference to `OpcodeNames'
entity.o(.text+0x1872): In function `EntityList::MakeDoorSpawnPacket(APPLAYER*)':
../common/EQNetwork.h:197: undefined reference to `OpcodeNames'
mob.o(.text+0x1e4f): In function `Mob::CreateSpawnPacket(APPLAYER*, Mob*)':
../common/EQNetwork.h:197: undefined reference to `OpcodeNames'
mob.o(.text+0x22ba): In function `Mob::CreateSpawnPacket(APPLAYER*, NewSpawn_Struct*)':
../common/EQNetwork.h:197: undefined reference to `OpcodeNames'
mob.o(.text+0x274f): In function `Mob::CreateDespawnPacket(APPLAYER*)':
../common/EQNetwork.h:197: undefined reference to `OpcodeNames'
mob.o(.text+0x28a2):../common/EQNetwork.h:197: more undefined references to `OpcodeNames' follow
net.o(.text+0x130): In function `main':
/usr/local/bin/EQEmu/source/9-17-05/zone/net.cpp:205: undefined reference to `OpcodeManager::OpcodeManager[not-in-charge]()'
net.o(.text+0x136):/usr/local/bin/EQEmu/source/9-17-05/zone/net.cpp:205: undefined reference to `vtable for SharedOpcodeManager'
net.o(.text+0x14e):/usr/local/bin/EQEmu/source/9-17-05/zone/net.cpp:207: undefined reference to `vtable for SharedOpcodeManager'
PlayerCorpse.o(.text+0x3dda): In function `Corpse::EndLoot(Client*, APPLAYER const*)':
../common/EQNetwork.h:197: undefined reference to `OpcodeNames'
Object.o(.text+0xffd): In function `Object::CreateSpawnPacket(APPLAYER*)':
../common/EQNetwork.h:197: undefined reference to `OpcodeNames'
Object.o(.text+0x1091): In function `Object::CreateDeSpawnPacket(APPLAYER*)':
../common/EQNetwork.h:197: undefined reference to `OpcodeNames'
client_packet.o(.text+0x1775): In function `Client::HandlePacket(APPLAYER const*)':
/usr/include/c++/3.3.4/bits/stl_tree.h:778: undefined reference to `OpcodeNames'
client_packet.o(.text+0x18c7): In function `Client::HandlePacket(APPLAYER const*)':
/usr/local/bin/EQEmu/source/9-17-05/zone/client_packet.cpp:350: undefined reference to `OpcodeNames'
client_packet.o(.text+0x5494):../common/EQNetwork.h:197: more undefined references to `OpcodeNames' follow
collect2: ld returned 1 exit status
make: *** [zone] Error 1
Am I not including the right libraries?
Reply With Quote
 


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 07:54 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