![]() |
|
Centos 6 / 7 NEW guides "compiling" - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Release Zone (https://lckb.dev/forum/forumdisplay.php?fid=190) +---- Forum: Episode 4 Releases (https://lckb.dev/forum/forumdisplay.php?fid=156) +----- Forum: Server Side (https://lckb.dev/forum/forumdisplay.php?fid=138) +----- Thread: Centos 6 / 7 NEW guides "compiling" (/showthread.php?tid=4755) Pages:
1
2
|
- pwesty - 05-23-2021 This is working 100% under centos 6 "64bit guide currently" 4 steps to get centos 6.10 64bit working "works as well for 32bit" some adjustments made; updated all links so all should work boost version 1_65_1 the farthest you can go without making code changes. "i wont release" I will double check my 32bit guide and update it accordingly ? you shouldn't have issues but if you do let me know and i'll fix them pronto ? Current guide i have linked is fixing centos 6.10 and updated the links so they download correctly. REMOVED CENTOS 7 GUIDE BECAUSE GCC IS BREAKING THE FILES AFTER BUILD. I do believe it's linked to gcc or at least an issue with boost + gcc i've tried manipulating the compiler thinking it was still from gcc 4.4.7 and still crashes when running the servers.. 2 - Scura - 05-23-2021 9 minutes ago, pwesty said: This is working 100% under centos 7 "64bit guide currently" Keep in mind some companies use different kernels when building things, this is a problem because GCC version could change causing issues when adjusting the makefile.inc and the GameServer crying it can't find boost thread/system some adjustments made; updated to mysql 5.5 "mariadb 5.5 to be exact" updated all links so all should work boost version 1_65_1 the farthest you can go without making code changes. "i wont release" I will double check my 32bit guide and update it accordingly Nice release, I will definitely take a look! Thanks pwe! - BayBay - 05-25-2021 On 5/23/2021 at 4:41 PM, pwesty said: This is working 100% under centos 7 "64bit guide currently" Keep in mind some companies use different kernels when building things, this is a problem because GCC version could change causing issues when adjusting the makefile.inc and the GameServer crying it can't find boost thread/system some adjustments made; updated to mysql 5.5 "mariadb 5.5 to be exact" updated all links so all should work boost version 1_65_1 the farthest you can go without making code changes. "i wont release" I will double check my 32bit guide and update it accordingly ? you shouldn't have issues but if you do let me know and i'll fix them pronto ? 2 Excellent Guide! Really USEFUL!Thanks for your time and dedication! - pwesty - 05-27-2021 It seems centos 7 32bit will not work at all on VMware, so im not able to update a guide for that, sorry guys So i re-tested this exact guide on centos 6.10 64bit and results are here 2 So this tells me possibly that GCC 4.8.5 could be too much for these files without maybe upgrading boost to a newer version. i will test with current boost and see if that fixes it. - Vladi - 05-29-2021 Hi, I'm getting errors. I do everything according to the guide. Can you tell me what's going on? Logs: g++ -m32 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"log4cxx\" -DVERSION=\"0.10.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_MBSRTOWCS=1 -DHAVE_WCSTOMBS=1 -DHAVE_SYSLOG=1 -DHAVE_FWIDE=1 -I. -I. -I../../../src/main/include -I../../../src/main/include -I/usr/include/apr-1 -I/usr/include/apr-1 -g -O2 -MT inputstreamreader.lo -MD -MP -MF .deps/inputstreamreader.Tpo -c inputstreamreader.cpp -o inputstreamreader.o then mv -f ".deps/integerpatternconverter.Tpo" ".deps/integerpatternconverter.Plo"; else rm -f ".deps/integerpatternconverter.Tpo"; exit 1; fi g++ -m32 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"log4cxx\" -DVERSION=\"0.10.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_MBSRTOWCS=1 -DHAVE_WCSTOMBS=1 -DHAVE_SYSLOG=1 -DHAVE_FWIDE=1 -I. -I. -I../../../src/main/include -I../../../src/main/include -I/usr/include/apr-1 -I/usr/include/apr-1 -g -O2 -MT integer.lo -MD -MP -MF .deps/integer.Tpo -c integer.cpp -o integer.o inputstreamreader.cpp: In member function 'virtual log4cxx::LogString log4cxx::helpers::InputStreamReader::read(log4cxx::helpers: ool& ':inputstreamreader.cpp:66:64: error: 'memmove' was not declared in this scope memmove(buf.data(), buf.current(), buf.remaining()); ^ make[3]: *** [inputstreamreader.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... g++ -m32 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"log4cxx\" -DVERSION=\"0.10.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_MBSRTOWCS=1 -DHAVE_WCSTOMBS=1 -DHAVE_SYSLOG=1 -DHAVE_FWIDE=1 -I. -I. -I../../../src/main/include -I../../../src/main/include -I/usr/include/apr-1 -I/usr/include/apr-1 -g -O2 -MT integerpatternconverter.lo -MD -MP -MF .deps/integerpatternconverter.Tpo -c integerpatternconverter.cpp -o integerpatternconverter.o make[3]: Leaving directory `/usr/local/apache-log4cxx-0.10.0/src/main/cpp' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/apache-log4cxx-0.10.0/src/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/apache-log4cxx-0.10.0/src' make: *** [all-recursive] Error 1 [root@localhost apache-log4cxx-0.10.0]# And this: ...failed gcc.compile.c++ bin.v2/libs/log/build/gcc-4.8.5/release/link-static/runtime-link-static/threading-multi/format_parser.o... gcc.compile.c++ bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/list.o In file included from ./boost/python/detail/prefix.hpp:13:0, from ./boost/python/list.hpp:8, from libs/python/src/list.cpp:5: ./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory # include <pyconfig.h> ^ compilation terminated. "g++" -O0 -fno-inline -Wall -g -march=i686 -pthread -m32 -m32 -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DBOOST_PYTHON_STATIC_LIB -I"." -I"/usr/include/python2.7" -c -o "bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/list.o" "libs/python/src/list.cpp" ...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/list.o... gcc.compile.c++ bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/long.o In file included from ./boost/python/detail/prefix.hpp:13:0, from ./boost/python/long.hpp:8, from libs/python/src/long.cpp:5: ./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory # include <pyconfig.h> ^ compilation terminated. "g++" -O0 -fno-inline -Wall -g -march=i686 -pthread -m32 -m32 -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DBOOST_PYTHON_STATIC_LIB -I"." -I"/usr/include/python2.7" -c -o "bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/long.o" "libs/python/src/long.cpp" ...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/long.o... gcc.compile.c++ bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/dict.o In file included from ./boost/python/detail/prefix.hpp:13:0, from ./boost/python/dict.hpp:8, from libs/python/src/dict.cpp:4: ./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory # include <pyconfig.h> ^ compilation terminated. "g++" -O0 -fno-inline -Wall -g -march=i686 -pthread -m32 -m32 -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DBOOST_PYTHON_STATIC_LIB -I"." -I"/usr/include/python2.7" -c -o "bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/dict.o" "libs/python/src/dict.cpp" ...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/dict.o... gcc.compile.c++ bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/str.o In file included from ./boost/python/detail/prefix.hpp:13:0, from ./boost/python/str.hpp:8, from libs/python/src/str.cpp:4: ./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory # include <pyconfig.h> ^ compilation terminated. "g++" -O0 -fno-inline -Wall -g -march=i686 -pthread -m32 -m32 -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DBOOST_PYTHON_STATIC_LIB -I"." -I"/usr/include/python2.7" -c -o "bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/str.o" "libs/python/src/str.cpp" ...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/str.o... gcc.compile.c++ bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/tuple.o In file included from ./boost/python/detail/prefix.hpp:13:0, from ./boost/python/tuple.hpp:8, from libs/python/src/tuple.cpp:5: ./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory # include <pyconfig.h> - Scura - 05-30-2021 18 hours ago, Vladi said: Hi, I'm getting errors. I do everything according to the guide. Can you tell me what's going on? Logs: g++ -m32 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"log4cxx\" -DVERSION=\"0.10.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_MBSRTOWCS=1 -DHAVE_WCSTOMBS=1 -DHAVE_SYSLOG=1 -DHAVE_FWIDE=1 -I. -I. -I../../../src/main/include -I../../../src/main/include -I/usr/include/apr-1 -I/usr/include/apr-1 -g -O2 -MT inputstreamreader.lo -MD -MP -MF .deps/inputstreamreader.Tpo -c inputstreamreader.cpp -o inputstreamreader.o then mv -f ".deps/integerpatternconverter.Tpo" ".deps/integerpatternconverter.Plo"; else rm -f ".deps/integerpatternconverter.Tpo"; exit 1; fi g++ -m32 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"log4cxx\" -DVERSION=\"0.10.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_MBSRTOWCS=1 -DHAVE_WCSTOMBS=1 -DHAVE_SYSLOG=1 -DHAVE_FWIDE=1 -I. -I. -I../../../src/main/include -I../../../src/main/include -I/usr/include/apr-1 -I/usr/include/apr-1 -g -O2 -MT integer.lo -MD -MP -MF .deps/integer.Tpo -c integer.cpp -o integer.o inputstreamreader.cpp: In member function 'virtual log4cxx::LogString log4cxx::helpers::InputStreamReader::read(log4cxx::helpers: ool& ':inputstreamreader.cpp:66:64: error: 'memmove' was not declared in this scope memmove(buf.data(), buf.current(), buf.remaining()); ^ make[3]: *** [inputstreamreader.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... g++ -m32 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"log4cxx\" -DVERSION=\"0.10.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_MBSRTOWCS=1 -DHAVE_WCSTOMBS=1 -DHAVE_SYSLOG=1 -DHAVE_FWIDE=1 -I. -I. -I../../../src/main/include -I../../../src/main/include -I/usr/include/apr-1 -I/usr/include/apr-1 -g -O2 -MT integerpatternconverter.lo -MD -MP -MF .deps/integerpatternconverter.Tpo -c integerpatternconverter.cpp -o integerpatternconverter.o make[3]: Leaving directory `/usr/local/apache-log4cxx-0.10.0/src/main/cpp' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/apache-log4cxx-0.10.0/src/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/apache-log4cxx-0.10.0/src' make: *** [all-recursive] Error 1 [root@localhost apache-log4cxx-0.10.0]# And this: ...failed gcc.compile.c++ bin.v2/libs/log/build/gcc-4.8.5/release/link-static/runtime-link-static/threading-multi/format_parser.o... gcc.compile.c++ bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/list.o In file included from ./boost/python/detail/prefix.hpp:13:0, from ./boost/python/list.hpp:8, from libs/python/src/list.cpp:5: ./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory # include <pyconfig.h> ^ compilation terminated. "g++" -O0 -fno-inline -Wall -g -march=i686 -pthread -m32 -m32 -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DBOOST_PYTHON_STATIC_LIB -I"." -I"/usr/include/python2.7" -c -o "bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/list.o" "libs/python/src/list.cpp" ...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/list.o... gcc.compile.c++ bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/long.o In file included from ./boost/python/detail/prefix.hpp:13:0, from ./boost/python/long.hpp:8, from libs/python/src/long.cpp:5: ./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory # include <pyconfig.h> ^ compilation terminated. "g++" -O0 -fno-inline -Wall -g -march=i686 -pthread -m32 -m32 -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DBOOST_PYTHON_STATIC_LIB -I"." -I"/usr/include/python2.7" -c -o "bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/long.o" "libs/python/src/long.cpp" ...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/long.o... gcc.compile.c++ bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/dict.o In file included from ./boost/python/detail/prefix.hpp:13:0, from ./boost/python/dict.hpp:8, from libs/python/src/dict.cpp:4: ./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory # include <pyconfig.h> ^ compilation terminated. "g++" -O0 -fno-inline -Wall -g -march=i686 -pthread -m32 -m32 -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DBOOST_PYTHON_STATIC_LIB -I"." -I"/usr/include/python2.7" -c -o "bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/dict.o" "libs/python/src/dict.cpp" ...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/dict.o... gcc.compile.c++ bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/str.o In file included from ./boost/python/detail/prefix.hpp:13:0, from ./boost/python/str.hpp:8, from libs/python/src/str.cpp:4: ./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory # include <pyconfig.h> ^ compilation terminated. "g++" -O0 -fno-inline -Wall -g -march=i686 -pthread -m32 -m32 -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DBOOST_PYTHON_STATIC_LIB -I"." -I"/usr/include/python2.7" -c -o "bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/str.o" "libs/python/src/str.cpp" ...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/str.o... gcc.compile.c++ bin.v2/libs/python/build/gcc-4.8.5/debug/link-static/threading-multi/tuple.o In file included from ./boost/python/detail/prefix.hpp:13:0, from ./boost/python/tuple.hpp:8, from libs/python/src/tuple.cpp:5: ./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory # include <pyconfig.h> 1 second of research on google ... 2 - Vladi - 05-31-2021 14 hours ago, Scura said: 1 second of research on google ... 2 Yes, I made a mistake sorry. But when compiling, LC source throws an error: /monthly_2021_05/snapshot3.png.b24ff3795fcd29850665784a07325c43.png" /> - Scura - 05-31-2021 seems you are missing tons of inclusion ... you just need to read the error and google it ? ... also if you search in this forum you should find a script for directly set-up the CentOS compiler - Matheus - 06-11-2021 Now works fine, thx! - merl0@ - 08-31-2021 On 5/24/2021 at 12:41 AM, pwesty said: This is working ?% under centos 6 "64bit guide currently" Thank you /index.php?/profile/2016-pwesty/&do=hovercard" data-mentionid="2016" href="/index.php?/profile/2016-pwesty/" rel="">@pwesty, useful notes ?! On 5/27/2021 at 9:12 AM, pwesty said: So i re-tested this exact guide on centos 6.10 64bit and results are here 2 So this tells me possibly that GCC 4.8.5 could be too much for these files without maybe upgrading boost to a newer version. i will test with current boost and see if that fixes it. I tested on CentOS 6.10 64 bit / gcc 4.4.7, works well. uname -a Linux localhost.localdomain 2.6.32-754.el6.x86_64 #1 SMP Tue Jun 19 21:26:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux gcc -v gcc version 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC) PS: Didn't try on gcc 4.8.5 / latest boost yet. |