nillerusr / source-engine

Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
Other
1.13k stars 175 forks source link

build problem on filetracker.cpp #272

Closed denz8028 closed 11 months ago

denz8028 commented 11 months ago

Build problem on debian 12 sid

[ 775/2202] Compiling filesystem/filetracker.cpp /usr/bin/ld: engine/download.cpp.6.o: в функции «DecompressBZipToDisk(char const, char const, char*, int)»: download.cpp:(.text+0x43a): неопределённая ссылка на «BZ2_bzopen» /usr/bin/ld: download.cpp:(.text+0x49e): неопределённая ссылка на «BZ2_bzread» /usr/bin/ld: download.cpp:(.text+0x516): неопределённая ссылка на «BZ2_bzclose» /usr/bin/ld: download.cpp:(.text+0x56a): неопределённая ссылка на «BZ2_bzclose» collect2: error: ld returned 1 exit status

In file included from ../public/tier1/refcount.h:11, from ../filesystem/basefilesystem.h:48, from ../filesystem/filetracker.cpp:7: ../public/tier0/threadtools.h: In member function ‘void CThreadFastMutex::Lock(unsigned int) volatile’: ../public/tier0/threadtools.h:1063:32: warning: comparison of integer expressions of different signedness: ‘volatile uint32’ {aka ‘volatile unsigned int’} and ‘int32’ {aka ‘int’} [-Wsign-compare] 1063 | if ( m_ownerID != (int32)ThreadGetCurrentId() ) | ~~^~~~~~~~~~ ../public/tier0/threadtools.h: In member function ‘void CThreadFastMutex::Unlock() volatile’: ../public/tier0/threadtools.h:1080:32: warning: comparison of integer expressions of different signedness: ‘volatile uint32’ {aka ‘volatile unsigned int’} and ‘int32’ {aka ‘int’} [-Wsign-compare] 1080 | if ( m_ownerID != (int32)ThreadGetCurrentId() ) | ~~^~~~~~~~~~ ../filesystem/filetracker.cpp: In member function ‘virtual void FileListToUnloadForWhitelistChange::Release()’: ../filesystem/filetracker.cpp:328:17: warning: deleting object of polymorphic class type ‘FileListToUnloadForWhitelistChange’ which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 328 | delete this; | ^~~

Waf: Leaving directory `/home/r00t/source-engine/build' Build failed -> task in 'engine' failed with exit status 1 (run with -v to display more information)

denz8028 commented 11 months ago

SOLVED, im just upgraded to debian sid

denz8028 commented 11 months ago

oh, the same error on the filetracker.cpp [775/2202]

denz8028 commented 11 months ago

решено, я случайно поставил -D вместо -d т к мне нужен dedicated