View Full Version : Lots of zlog, mlog references but not included in source
CoryWalker
10-15-2014, 07:59 AM
It appears that some of the logging libraries are not included in the main source repository. Specifically, zlog and mlog appear to be used frequently but prevents world and zone - respectively - to compile.
I found a couple of good candidates that might be what is being used:
HardySimpson/zlog
zschoche/mlog
Is this right?
lerxst2112
10-15-2014, 02:50 PM
https://github.com/EQEmu/Server/blob/da121137e5692c44bf7b658b353f1f961778223f/common/logsys.h
CoryWalker
10-15-2014, 03:08 PM
Thanks for pointing me in the right direction.
Do I just need to add a -DDISABLE_LOGSYS compiler switch to satisfy these references?
demonstar55
10-15-2014, 03:08 PM
Dude, just use cmake and make.
CoryWalker
10-15-2014, 03:54 PM
"cmake / make" doesn't work on FreeBSD systems readily.
The existing cmake build system included with eqemu doesn't know how to link zone propertly. All other programs such as shared_memory and world instantly crash because they are not linked correctly.
I'm trying to determine the cause of these issues and therefore must reconstruct the compilation steps.
demonstar55
10-15-2014, 04:24 PM
What are the cmake commands you're running?
Back when I got it to compile on FreeBSD (didn't actually do any runtime testing) I had to override CC and CXX like
CC=/path/to/gcc-whatever.version CXX=/path/to/g++-whatever.version cmake -G "Unix Makefiles" -i ..
the '..' because I was building in a subfolder.
CoryWalker
10-15-2014, 05:33 PM
I run "cmake ." I then change the CMakeCache.txt file to target the CC, CXX compilers I want to use. Then I run make.
Everything works up until the zone link attempt is made. Both shared_memory and world are linked by this point - but running either one of them causes segmentation faults - so there is something not compatible happening with FreeBSD.
demonstar55
10-15-2014, 05:39 PM
I run "cmake ." I then change the CMakeCache.txt file to target the CC, CXX compilers I want to use. Then I run make.
Everything works up until the zone link attempt is made. Both shared_memory and world are linked by this point - but running either one of them causes segmentation faults - so there is something not compatible happening with FreeBSD.
you need to set it in the env variables before you run cmake, like I posted. Just changing those probably isn't doing everything right.
CoryWalker
10-16-2014, 10:04 AM
You can - but do not need to - set the CC and CXX environment variables in order to get the compiler settings you want with cmake. Cmake creates a CMakeCache.txt file and then you can tailor it to your needs by editing the cache file. This is exactly how the cmake build system works.
I have verified that the compiler commands that I want to use actually are being used by using gmake's VERBOSE=1 switch - so a misconfiguration of cmake is most certainly not the problem here.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.