yourmnbbn / smext-fakequeries

Return custom A2S_INFO and A2S_PLAYER response
GNU General Public License v3.0
23 stars 5 forks source link

Compilation error #12

Closed edgar009955 closed 2 years ago

edgar009955 commented 2 years ago

root@nullsm:/home//1/alliedmodders/ambuild/build# ambuild Spawned worker (pid: 3501193) Spawned worker (pid: 3501194) [3501193] c++ -pipe -fno-strict-aliasing -Wall -Werror -Wno-unused -Wno-switch -Wno-array-bounds -msse -m32 -fvisibility=hidden -Wno-narrowing -Wno-unused-result -mfpmath=sse -g3 -ggdb3 -std=c++14 -fno-exceptions -fno-threadsafe-statics -Wno-non-virtual-dtor -Wno-overloaded-virtual -fvisibility-inlines-hidden -Wno-delete-non-virtual-dtor -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -DHAVE_STDINT_H -DGNUC -D_LINUX -DPOSIX -DHAVE_STRING_H -DVERSION_SAFE_STEAM_API_INTERFACES -DSE_EPISODEONE=1 -DSE_ORANGEBOX=3 -DSE_CSS=6 -DSE_HL2DM=7 -DSE_DODS=8 -DSE_SDK2013=9 -DSE_TF2=11 -DSE_LEFT4DEAD=12 -DSE_NUCLEARDAWN=13 -DSE_LEFT4DEAD2=15 -DSE_DARKMESSIAH=2 -DSE_ALIENSWARM=16 -DSE_BLOODYGOODTIME=4 -DSE_EYE=5 -DSE_CSGO=21 -DSE_PORTAL2=17 -DSE_BLADE=18 -DSE_INSURGENCY=19 -DSE_CONTAGION=14 -DSE_BMS=10 -DSE_DOI=20 -DSOURCE_ENGINE=21 -DCOMPILER_GCC -DNETWORK_VARS_ENABLED -I /home//1/alliedmodders/sourcemod/public -I /home//1/alliedmodders/ambuild -I /home//1/alliedmodders/ambuild/sdk -I /home//1/alliedmodders/sourcemod/public -I /home//1/alliedmodders/sourcemod/public/extensions -I /home//1/alliedmodders/sourcemod/sourcepawn/include -I /home//1/alliedmodders/sourcemod/public/amtl/amtl -I /home//1/alliedmodders/sourcemod/public/amtl -I /home//1/alliedmodders/hl2sdk-csgo/public -I /home//1/alliedmodders/hl2sdk-csgo/public/steam -I /home//1/alliedmodders/mmsource-1.10/core -I /home//1/alliedmodders/mmsource-1.10/core/sourcehook -I /home//1/alliedmodders/hl2sdk-csgo/public -I /home//1/alliedmodders/hl2sdk-csgo/public/engine -I /home//1/alliedmodders/hl2sdk-csgo/public/mathlib -I /home//1/alliedmodders/hl2sdk-csgo/public/vstdlib -I /home//1/alliedmodders/hl2sdk-csgo/public/tier0 -I /home//1/alliedmodders/hl2sdk-csgo/public/tier1 -I /home//1/alliedmodders/hl2sdk-csgo/public/game/server -I /home//1/alliedmodders/hl2sdk-csgo/public/toolframework -I /home//1/alliedmodders/hl2sdk-csgo/game/shared -I /home//1/alliedmodders/hl2sdk-csgo/common -H -c /home//1/alliedmodders/ambuild/challenge.cpp -o challenge.o In file included from /home//1/alliedmodders/hl2sdk-csgo/public/tier1/utlvector.h:22, from /home//1/alliedmodders/hl2sdk-csgo/public/tier1/convar.h:21, from /home//1/alliedmodders/hl2sdk-csgo/public/eiface.h:16, from /home//1/alliedmodders/mmsource-1.10/core/ISmmAPI.h:46, from /home//1/alliedmodders/mmsource-1.10/core/ISmmPlugin.h:39, from /home//1/alliedmodders/sourcemod/public/smsdk_ext.h:100, from /home//1/alliedmodders/ambuild/extension.h:40, from /home//1/alliedmodders/ambuild/challenge.h:4, from /home//1/alliedmodders/ambuild/challenge.cpp:1: /home//1/alliedmodders/hl2sdk-csgo/public/tier0/threadtools.h: In constructor ‘CThreadSpinRWLock::CThreadSpinRWLock()’: /home//1/alliedmodders/hl2sdk-csgo/public/tier0/threadtools.h:1138:152: error: ‘void memset(void, int, size_t)’ clearing an object of type ‘class CThreadSpinRWLock’ with no trivial copy-assignment; use value-initialization instead [-Werror=class-memaccess] 1138 | CThreadSpinRWLock() { COMPILE_TIME_ASSERT( sizeof( LockInfo_t ) == sizeof( int64 ) ); Assert( (intp)this % 8 == 0 ); memset( this, 0, sizeof( *this ) ); } | ^ /home//1/alliedmodders/hl2sdk-csgo/public/tier0/threadtools.h:1135:29: note: ‘class CThreadSpinRWLock’ declared here 1135 | class ALIGN8 PLATFORM_CLASS CThreadSpinRWLock | ^~~~~ cc1plus: all warnings being treated as errors Build failed: fakequeries.ext.2.csgo/challenge.o

use the latest csgo branch of hl2sdk. https://bestofcpp.com/repo/yourmnbbn-smext-fakequeries#:~:text=use%20the%20latest%20csgo%20branch%20of%20hl2sdk.

yourmnbbn commented 2 years ago

Looks like you're using higher version of gcc than gcc-8, it's been fixed by commit 087be25.