PDA

View Full Version : Bsd & Compile


creiss
01-01-2008, 07:19 AM
Yes, yes I know :)

But I got the libEMuShareMem.so compiled already:


libEMuShareMem.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (FreeBSD), not stripped


(zomg) So I am full of enthusiasm. Tho, now it hangs at:


$ gmake
gmake -C EMuShareMem
gmake[1]: Entering directory `/usr/home/chris/eq/EQEmu-0.7.0-1070/EMuShareMem'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/usr/home/chris/eq/EQEmu-0.7.0-1070/EMuShareMem'
gmake -C world
gmake[1]: Entering directory `/usr/home/chris/eq/EQEmu-0.7.0-1070/world'
gcc -c -I/usr/local/include/pthread/linuxthreads -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wcomment -Wcast-align -Wno-deprecated -g -O -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -DDEBUG=5 -DSHAREMEM -DCATCH_CRASH -DNO_PIDLOG -DFIELD_ITEMS -DFREEBSD -D__USE_UNIX98 -Di386 -I'/usr/local/include/mysql' ../common/Mutex.cpp -o ../common/Mutex.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
../common/Mutex.cpp: In constructor `Mutex::Mutex()':
../common/Mutex.cpp:80: error: `PTHREAD_MUTEX_RECURSIVE_NP' was not declared in this scope
../common/Mutex.cpp:80: warning: unused variable 'PTHREAD_MUTEX_RECURSIVE_NP'
gmake[1]: *** [../common/Mutex.o] Error 1
gmake[1]: Leaving directory `/usr/home/chris/eq/EQEmu-0.7.0-1070/world'
gmake: *** [all] Error 2


Gna! Whats wrong now? Me bash with club?

uname:

FreeBSD alpha-labs.net 6.2-RELEASE-p9 FreeBSD 6.2-RELEASE-p9 #0: Sat Dec 15 14:19:52 CET 2007 root@alpha-labs.net:/usr/obj/usr/src/sys/ALPHALABS amd64


Thanks for any hint(s)/pointer(s)/advice!

-Chris.

narcberry
01-02-2008, 08:28 AM
All the typical BSD compile issues are covered here and there, although it may take you a while to find. So, sorry I cannot be of immediate help, but the answers are around.

amraist
01-24-2008, 03:01 AM
$ gmake
gmake -C EMuShareMem
gmake[1]: Entering directory `/usr/home/chris/eq/EQEmu-0.7.0-1070/EMuShareMem'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/usr/home/chris/eq/EQEmu-0.7.0-1070/EMuShareMem'
gmake -C world
gmake[1]: Entering directory `/usr/home/chris/eq/EQEmu-0.7.0-1070/world'
gcc -c -I/usr/local/include/pthread/linuxthreads -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wcomment -Wcast-align -Wno-deprecated -g -O -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -DDEBUG=5 -DSHAREMEM -DCATCH_CRASH -DNO_PIDLOG -DFIELD_ITEMS -DFREEBSD -D__USE_UNIX98 -Di386 -I'/usr/local/include/mysql' ../common/Mutex.cpp -o ../common/Mutex.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
../common/Mutex.cpp: In constructor `Mutex::Mutex()':
../common/Mutex.cpp:80: error: `PTHREAD_MUTEX_RECURSIVE_NP' was not declared in this scope
../common/Mutex.cpp:80: warning: unused variable 'PTHREAD_MUTEX_RECURSIVE_NP'
gmake[1]: *** [../common/Mutex.o] Error 1
gmake[1]: Leaving directory `/usr/home/chris/eq/EQEmu-0.7.0-1070/world'
gmake: *** [all] Error 2

I think it's having a problem finding pthread.h. Do you have the linuxthreads port installed? You should have a pthread.h in /usr/local/include/pthread/linuxthreads