Thread: Linux Port
View Single Post
  #2  
Old 01-23-2002, 07:17 PM
steve
Discordant
 
Join Date: Jan 2002
Posts: 305
Default

How did you get it to compile?

Attempted on RedHat 7.2, below is the process:

[steve@steve emu]$ ls
Boot5zones.bat db.ini LoginServer.ini Server.opt World.exe
common db.sql readme-LS.txt Windows_Install_Guide.txt zone
dbconnectinfo.linux.txt EQEMu-0.2.0.zip Server.dsw world Zone.exe
[steve@steve emu]$ cd zone
[steve@steve zone]$ make
gcc -c -g -m486 -pthread -pipe -DFX -I/usr/include/mysql ../common/EQFragment.cpp -o ../common/EQFragment.o
gcc -c -g -m486 -pthread -pipe -DFX -I/usr/include/mysql ../common/EQPacket.cpp -o ../common/EQPacket.o
gcc -c -g -m486 -pthread -pipe -DFX -I/usr/include/mysql ../common/EQPacketManager.cpp -o ../common/EQPacketManager.o
gcc -c -g -m486 -pthread -pipe -DFX -I/usr/include/mysql ../common/timer.cpp -o ../common/timer.o
gcc -c -g -m486 -pthread -pipe -DFX -I/usr/include/mysql ../common/database.cpp -o ../common/database.o
gcc -c -g -m486 -pthread -pipe -DFX -I/usr/include/mysql ../common/packet_dump.cpp -o ../common/packet_dump.o
gcc -c -g -m486 -pthread -pipe -DFX -I/usr/include/mysql ../common/packet_functions.cpp -o ../common/packet_functions.o
gcc -c -g -m486 -pthread -pipe -DFX -I/usr/include/mysql ../common/unix.cpp -o ../common/unix.o
gcc -c -g -m486 -pthread -pipe -DFX -I/usr/include/mysql ../common/packet_dump_file.cpp -o ../common/packet_dump_file.o
gcc -c -g -m486 -pthread -pipe -DFX -I/usr/include/mysql zone.cpp -o zone.o
zone.cpp: In method `Zone::Zone (char *, char *, short unsigned int)':
zone.cpp:81: `PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP' undeclared (first
use this function)
zone.cpp:81: (Each undeclared identifier is reported only once for each
function it appears in.)
zone.cpp:82: `pthread_mutex_lock' undeclared (first use this function)
zone.cpp:83: `pthread_mutex_unlock' undeclared (first use this
function)
make: *** [zone.o] Error 1
[steve@steve zone]$ cd ..
[steve@steve emu]$ ls
Boot5zones.bat db.ini LoginServer.ini Server.opt World.exe
common db.sql readme-LS.txt Windows_Install_Guide.txt zone
dbconnectinfo.linux.txt EQEMu-0.2.0.zip Server.dsw world Zone.exe
[steve@steve emu]$ cd world
[steve@steve world]$ ls
client.cpp console.cpp LoginServer.cpp makefile net.h World.dsp World.opt zoneserver.h
client.h console.h LoginServer.h net.cpp TCPConnection.h World.dsw zoneserver.cpp
[steve@steve world]$ make
gcc -c -g -m486 -O3 -pthread -pipe -DFX -I/usr/include/mysql ../common/races.cpp -o ../common/races.o
gcc -c -g -m486 -O3 -pthread -pipe -DFX -I/usr/include/mysql client.cpp -o client.o
client.cpp: In method `ClientList::ClientList ()':
client.cpp:482: `PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP' undeclared
(first use this function)
client.cpp:482: (Each undeclared identifier is reported only once for
each function it appears in.)
client.cpp:483: `pthread_mutex_lock' undeclared (first use this
function)
client.cpp:484: `pthread_mutex_unlock' undeclared (first use this
function)
make: *** [client.o] Error 1

It dies after both of these makes. Am I missing something? Unzip the emu, and then do the above?
Reply With Quote