Henry6767 5 Posted April 19, 2023 Share Posted April 19, 2023 Hi. When I tried to recompile db I did these commands and I got this error. I tried downloading the typelib.h from the internet but then I got another message with another file missing. What should I do in this situation? Any help would be greatly appreciated! Error message: root@:~ # cd /usr/metin2/src/server/db/src root@:/usr/metin2/src/server/db/src # gmake clean root@:/usr/metin2/src/server/db/src # gmake -j9 compile Config.cpp gmake: *** No rule to make target '/usr/local/include/mysql/typelib.h', needed by '.obj/NetBase.o'. Stop. gmake: *** Waiting for unfinished jobs.... Link to comment Share on other sites More sharing options...
Active Member Ulas 172 Posted April 19, 2023 Active Member Share Posted April 19, 2023 3 hours ago, Henry6767 said: Hi. When I tried to recompile db I did these commands and I got this error. I tried downloading the typelib.h from the internet but then I got another message with another file missing. What should I do in this situation? Any help would be greatly appreciated! Error message: root@:~ # cd /usr/metin2/src/server/db/src root@:/usr/metin2/src/server/db/src # gmake clean root@:/usr/metin2/src/server/db/src # gmake -j9 compile Config.cpp gmake: *** No rule to make target '/usr/local/include/mysql/typelib.h', needed by '.obj/NetBase.o'. Stop. gmake: *** Waiting for unfinished jobs.... gmake dep and try again 1 Link to comment Share on other sites More sharing options...
Henry6767 5 Posted April 20, 2023 Author Share Posted April 20, 2023 5 hours ago, Ulas said: gmake dep and try again After game dep, I typed gmake clean and then gmake -j9. It started to compile but at the end I go these error messages linking ../db.... ld: error: undefined symbol: ZSTD_freeCCtx >>> referenced by my_compress.cc >>> my_compress.cc.o:(mysql_compress_context_deinit(mysql_compress_context*)) in archive /usr/local/lib/mysql/libmysqlclient.a ld: error: undefined symbol: ZSTD_freeDCtx >>> referenced by my_compress.cc >>> my_compress.cc.o:(mysql_compress_context_deinit(mysql_compress_context*)) in archive /usr/local/lib/mysql/libmysqlclient.a ld: error: undefined symbol: ZSTD_createCCtx >>> referenced by my_compress.cc >>> my_compress.cc.o:(zstd_compress_alloc(mysql_zstd_compress_context*, unsigned char const*, unsigned int*, unsigned int*)) in archive /usr/local/lib/mysql/libmysqlclient.a ld: error: undefined symbol: ZSTD_compressBound >>> referenced by my_compress.cc >>> my_compress.cc.o:(zstd_compress_alloc(mysql_zstd_compress_context*, unsigned char const*, unsigned int*, unsigned int*)) in archive /usr/local/lib/mysql/libmysqlclient.a ld: error: undefined symbol: ZSTD_compressCCtx >>> referenced by my_compress.cc >>> my_compress.cc.o:(zstd_compress_alloc(mysql_zstd_compress_context*, unsigned char const*, unsigned int*, unsigned int*)) in archive /usr/local/lib/mysql/libmysqlclient.a ld: error: undefined symbol: ZSTD_isError >>> referenced by my_compress.cc >>> my_compress.cc.o:(zstd_compress_alloc(mysql_zstd_compress_context*, unsigned char const*, unsigned int*, unsigned int*)) in archive /usr/local/lib/mysql/libmysqlclient.a >>> referenced by my_compress.cc >>> my_compress.cc.o:(my_uncompress(mysql_compress_context*, unsigned char*, unsigned int, unsigned int*)) in archive /usr/local/lib/mysql/libmysqlclient.a ld: error: undefined symbol: ZSTD_createDCtx >>> referenced by my_compress.cc >>> my_compress.cc.o:(my_uncompress(mysql_compress_context*, unsigned char*, unsigned int, unsigned int*)) in archive /usr/local/lib/mysql/libmysqlclient.a ld: error: undefined symbol: ZSTD_decompressDCtx >>> referenced by my_compress.cc >>> my_compress.cc.o:(my_uncompress(mysql_compress_context*, unsigned char*, unsigned int, unsigned int*)) in archive /usr/local/lib/mysql/libmysqlclient.a clang++: error: linker command failed with exit code 1 (use -v to see invocation) gmake: *** [Makefile:50: ../db] Error 1 How should I fix these? Link to comment Share on other sites More sharing options...
Active Member Ulas 172 Posted April 20, 2023 Active Member Share Posted April 20, 2023 6 hours ago, Henry6767 said: After game dep, I typed gmake clean and then gmake -j9. It started to compile but at the end I go these error messages linking ../db.... ld: error: undefined symbol: ZSTD_freeCCtx >>> referenced by my_compress.cc >>> my_compress.cc.o:(mysql_compress_context_deinit(mysql_compress_context*)) in archive /usr/local/lib/mysql/libmysqlclient.a ld: error: undefined symbol: ZSTD_freeDCtx >>> referenced by my_compress.cc >>> my_compress.cc.o:(mysql_compress_context_deinit(mysql_compress_context*)) in archive /usr/local/lib/mysql/libmysqlclient.a ld: error: undefined symbol: ZSTD_createCCtx >>> referenced by my_compress.cc >>> my_compress.cc.o:(zstd_compress_alloc(mysql_zstd_compress_context*, unsigned char const*, unsigned int*, unsigned int*)) in archive /usr/local/lib/mysql/libmysqlclient.a ld: error: undefined symbol: ZSTD_compressBound >>> referenced by my_compress.cc >>> my_compress.cc.o:(zstd_compress_alloc(mysql_zstd_compress_context*, unsigned char const*, unsigned int*, unsigned int*)) in archive /usr/local/lib/mysql/libmysqlclient.a ld: error: undefined symbol: ZSTD_compressCCtx >>> referenced by my_compress.cc >>> my_compress.cc.o:(zstd_compress_alloc(mysql_zstd_compress_context*, unsigned char const*, unsigned int*, unsigned int*)) in archive /usr/local/lib/mysql/libmysqlclient.a ld: error: undefined symbol: ZSTD_isError >>> referenced by my_compress.cc >>> my_compress.cc.o:(zstd_compress_alloc(mysql_zstd_compress_context*, unsigned char const*, unsigned int*, unsigned int*)) in archive /usr/local/lib/mysql/libmysqlclient.a >>> referenced by my_compress.cc >>> my_compress.cc.o:(my_uncompress(mysql_compress_context*, unsigned char*, unsigned int, unsigned int*)) in archive /usr/local/lib/mysql/libmysqlclient.a ld: error: undefined symbol: ZSTD_createDCtx >>> referenced by my_compress.cc >>> my_compress.cc.o:(my_uncompress(mysql_compress_context*, unsigned char*, unsigned int, unsigned int*)) in archive /usr/local/lib/mysql/libmysqlclient.a ld: error: undefined symbol: ZSTD_decompressDCtx >>> referenced by my_compress.cc >>> my_compress.cc.o:(my_uncompress(mysql_compress_context*, unsigned char*, unsigned int, unsigned int*)) in archive /usr/local/lib/mysql/libmysqlclient.a clang++: error: linker command failed with exit code 1 (use -v to see invocation) gmake: *** [Makefile:50: ../db] Error 1 How should I fix these? Can you add me Ulas#8871 I can check your bsd Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now