JayKay
September 16, 2009, 8:44am
1
Hello, this error is annoying so I can’t finish compiling again :rolleyes:
Its a problem with the boost library again:
graal@DOMAIN:~/GServer/trunk/build$ make CONFIG=Release
==== Building gserver ====
Linking gserver
obj/Release/CFileSystem.o: In function CFileSystem::CFileSystem(TServer*)': CFileSystem.cpp:(.text+0xf5): undefined reference to
boost::recursive_mutex::recursive_mutex()’
obj/Release/CFileSystem.o: In function CFileSystem::CFileSystem(TServer*)': CFileSystem.cpp:(.text+0x185): undefined reference to
boost::recursive_mutex::recursive_mutex()’
obj/Release/CFileSystem.o: In function CFileSystem::removeFile(CString const&)': CFileSystem.cpp:(.text+0x2a9): undefined reference to
boost::recursive_mutex::do_lock()’
CFileSystem.cpp:(.text+0x324): undefined reference to boost::recursive_mutex::do_unlock()' obj/Release/CFileSystem.o: In function
CFileSystem::find(CString const&) const’:
CFileSystem.cpp:(.text+0x3b2): undefined reference to boost::recursive_mutex::do_lock()' CFileSystem.cpp:(.text+0x3f9): undefined reference to
boost::recursive_mutex::do_unlock()’
obj/Release/CFileSystem.o: In function CFileSystem::getFileSize(CString const&) const': CFileSystem.cpp:(.text+0x49d): undefined reference to
boost::recursive_mutex::do_lock()’
CFileSystem.cpp:(.text+0x4e7): undefined reference to boost::recursive_mutex::do_unlock()' obj/Release/CFileSystem.o: In function
CFileSystem::setModTime(CString const&, long) const’:
CFileSystem.cpp:(.text+0x58c): undefined reference to boost::recursive_mutex::do_lock()' CFileSystem.cpp:(.text+0x5c2): undefined reference to
boost::recursive_mutex::do_unlock()’
obj/Release/CFileSystem.o: In function CFileSystem::getModTime(CString const&) const': CFileSystem.cpp:(.text+0x65d): undefined reference to
boost::recursive_mutex::do_lock()’
CFileSystem.cpp:(.text+0x6a7): undefined reference to boost::recursive_mutex::do_unlock()' obj/Release/CFileSystem.o: In function
CFileSystem::load(CString const&) const’:
CFileSystem.cpp:(.text+0x74f): undefined reference to boost::recursive_mutex::do_lock()' CFileSystem.cpp:(.text+0x7ae): undefined reference to
boost::recursive_mutex::do_unlock()’
obj/Release/CFileSystem.o: In function CFileSystem::findi(CString const&) const': CFileSystem.cpp:(.text+0x840): undefined reference to
boost::recursive_mutex::do_lock()’
CFileSystem.cpp:(.text+0x88c): undefined reference to boost::recursive_mutex::do_unlock()' obj/Release/CFileSystem.o: In function
CFileSystem::addFile(CString)’:
CFileSystem.cpp:(.text+0x8f8): undefined reference to boost::recursive_mutex::do_lock()' CFileSystem.cpp:(.text+0xb35): undefined reference to
boost::recursive_mutex::do_unlock()’
obj/Release/CFileSystem.o: In function CFileSystem::addDir(CString const&, CString const&, bool)': CFileSystem.cpp:(.text+0xc5f): undefined reference to
boost::recursive_mutex::do_lock()’
CFileSystem.cpp:(.text+0xdf5): undefined reference to boost::recursive_mutex::do_unlock()' CFileSystem.cpp:(.text+0xebe): undefined reference to
boost::recursive_mutex::do_unlock()’
obj/Release/CFileSystem.o: In function CFileSystem::resync()': CFileSystem.cpp:(.text+0x15d6): undefined reference to
boost::recursive_mutex::do_lock()’
CFileSystem.cpp:(.text+0x1672): undefined reference to boost::recursive_mutex::do_unlock()' obj/Release/CFileSystem.o: In function
boost::detail::thread::scoped_lockboost::recursive_mutex ::~scoped_lock()’:
CFileSystem.cpp:(.text._ZN5boost6detail6thread11scoped_lockINS_15recursive_mutexEED1Ev[boost::detail::thread::scoped_lockboost::recursive_mutex ::~scoped_lock()]+0xe): undefined reference to `boost::recursive_mutex::do_unlock()’
collect2: ld returned 1 exit status
make[1]: *** […/…/bin/gserver] Error 1
make: *** [gserver] Error 2
Hint: I have installed libboost-dev 1.35
Please help me!
Cadavre
September 16, 2009, 9:14am
2
edit your gserver-v2/trunk/build/server/Makefile
change:
LIBDIR := …/…/lib
to:
LIBDIR := /lib
JayKay
September 16, 2009, 9:26am
3
Okay, but it should be /usr/lib64 (its a 64-bit-system)
I changed but I got the same errors as I expected >_<
The same result with the 32-bit libraries (clear).
Pickle
September 16, 2009, 9:48am
4
those errors are giving unhappy faces
JayKay
September 16, 2009, 11:07am
5
These errors bring me to despair…
Cadavre
September 16, 2009, 1:18pm
6
You are running debian right?
JayKay
September 17, 2009, 9:59am
7
Yes. I only use debian linux
He should find because before he couldn’t find, I had much different errors.
What is mutex? It seems that it only has problems to find this but not boost because boost is installed correctly.
EDIT: I got it. Just recompiled. Thank you for all help!
Cadavre
September 17, 2009, 11:11am
8
aptitude install libboost-thread1.40-dev libboost-thread1.40.0 libboost1.40-dev libboost-date-time1.40.0 libboost-date-time1.40-dev libboost-serialization1.40.0 libboost-serialization1.40-dev
that’s the boost packages I have installed, and it works for me.
___Merged doublepost __________________
oh, nvm.
JayKay
September 17, 2009, 11:20am
9
It works for me with version 1.35 of boost too
Keep up the good work! :animesmiley:
Its better than the original graal online even the support. You have friendly nice environment here. I like that more than the original graal. The best thing is, that the project is Open-Source and everyone can build an own server from the basics on.
Which is the status of the NPC-Server? Because it will be great to script some database NPC’s, with SQLite and so on
urza
March 26, 2010, 11:51am
12
his post was actually kinda useful though…