Jump to content

Defacer35

Inactive Member
  • Posts

    126
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Defacer35

  1. I tryed Cryptopp 5.6.5 - 7.0 and now 8.2 all of them has a same error and i use same extern in client binrary.
  2. Sure. PLATFORM = $(shell file /bin/ls | cut -d' ' -f3 | cut -d'-' -f1) GAME_VERSION = 40002 P4_VERSION = $(GAME_VERSION) CC = g++10 INCDIR = LIBDIR = BINDIR = .. OBJDIR = obj $(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi) # Standard Setting LIBS = -pthread -lm -lmd CFLAGS = -g -Wall -O2 -m32 -pipe -fno-rtti -fno-exceptions -std=gnu++17 -D_THREAD_SAFE -DNDEBUG CFLAGS += -mtune=i686 -fstack-protector-all # Boost INCDIR += -I/usr/local/include/boost # DevIL INCDIR += -I/usr/local/include/IL LIBDIR += -L/usr/local/lib LIBS += -lpng -ltiff -lmng -llcms -lIL # MySQL LIBS += -lmysqlclient -L/usr/local/lib/mysql -lz # Lzo 2.10 INCDIR += -I/usr/local/include/lzo # Miscellaneous external libraries LIBDIR += -L/usr/local/include/lib LIBS += -lcryptopp # Project Library INCDIR += -I../../liblua/include INCDIR += -I/usr/local/include INCDIR += -L/usr/local/lib/mysql LIBDIR += -L../../libthecore/lib -L../../libpoly -L../../libsql -L../../libgame/lib -L../../liblua/lib LIBS += -lthecore -lpoly -llua -llualib -lsql -lgame USE_STACKTRACE = 0 ifeq ($(USE_STACKTRACE), 1) LIBS += /usr/local/lib/libexecinfo.a endif TARGET = $(BINDIR)/game_v$(GAME_VERSION)_$(PLATFORM) CFILE = minilzo.c CPPFILE = BattleArena.cpp FSM.cpp MarkConvert.cpp MarkImage.cpp MarkManager.cpp OXEvent.cpp TrafficProfiler.cpp ani.cpp\ arena.cpp banword.cpp battle.cpp blend_item.cpp block_country.cpp buffer_manager.cpp building.cpp castle.cpp\ char.cpp char_affect.cpp char_battle.cpp char_change_empire.cpp char_horse.cpp char_item.cpp char_manager.cpp\ char_quickslot.cpp char_resist.cpp char_skill.cpp char_state.cpp PetSystem.cpp cmd.cpp cmd_emotion.cpp cmd_general.cpp\ cmd_gm.cpp cmd_oxevent.cpp config.cpp constants.cpp crc32.cpp cube.cpp db.cpp desc.cpp\ desc_client.cpp desc_manager.cpp desc_p2p.cpp dev_log.cpp dungeon.cpp empire_text_convert.cpp entity.cpp\ entity_view.cpp event.cpp event_queue.cpp exchange.cpp file_loader.cpp fishing.cpp gm.cpp guild.cpp\ guild_manager.cpp guild_war.cpp horse_rider.cpp horsename_manager.cpp input.cpp input_auth.cpp input_db.cpp\ input_login.cpp input_main.cpp input_p2p.cpp input_udp.cpp ip_ban.cpp\ item.cpp item_addon.cpp item_attribute.cpp item_manager.cpp item_manager_idrange.cpp locale.cpp\ locale_service.cpp log.cpp login_data.cpp lzo_manager.cpp marriage.cpp matrix_card.cpp\ messenger_manager.cpp mining.cpp mob_manager.cpp monarch.cpp motion.cpp over9refine.cpp p2p.cpp packet_info.cpp\ party.cpp passpod.cpp pcbang.cpp polymorph.cpp priv_manager.cpp pvp.cpp\ questevent.cpp questlua.cpp questlua_affect.cpp questlua_arena.cpp questlua_ba.cpp questlua_building.cpp\ questlua_danceevent.cpp questlua_dungeon.cpp questlua_forked.cpp questlua_game.cpp questlua_global.cpp\ questlua_guild.cpp questlua_horse.cpp questlua_pet.cpp questlua_item.cpp questlua_marriage.cpp questlua_mgmt.cpp\ questlua_monarch.cpp questlua_npc.cpp questlua_oxevent.cpp questlua_party.cpp questlua_pc.cpp\ questlua_quest.cpp questlua_target.cpp questmanager.cpp questnpc.cpp questpc.cpp\ refine.cpp regen.cpp safebox.cpp sectree.cpp sectree_manager.cpp sequence.cpp shop.cpp\ skill.cpp start_position.cpp target.cpp text_file_loader.cpp trigger.cpp utils.cpp vector.cpp war_map.cpp\ wedding.cpp xmas_event.cpp version.cpp panama.cpp threeway_war.cpp map_location.cpp auth_brazil.cpp\ BlueDragon.cpp BlueDragon_Binder.cpp DragonLair.cpp questlua_dragonlair.cpp\ skill_power.cpp affect.cpp\ ClientPackageCryptInfo.cpp cipher.cpp\ buff_on_attributes.cpp dragon_soul_table.cpp DragonSoul.cpp\ group_text_parse_tree.cpp char_dragonsoul.cpp questlua_dragonsoul.cpp\ shop_manager.cpp shopEx.cpp item_manager_read_tables.cpp COBJS = $(CFILE:%.c=$(OBJDIR)/%.o) CPPOBJS = $(CPPFILE:%.cpp=$(OBJDIR)/%.o) MAINOBJ = $(OBJDIR)/main.o MAINCPP = main.cpp default: $(TARGET) $(OBJDIR)/minilzo.o: minilzo.c @$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@ @echo -e "\033[0;32m[GAME]\033[0m \033[0;33mDerleniyor;\033[0m" $< $(OBJDIR)/version.o: version.cpp @$(CC) $(CFLAGS) -D__GAME_VERSION__=\"$(GAME_VERSION)\" -D__P4_VERSION__=\"$(P4_VERSION)\" -c $< -o $@ @echo -e "\033[0;32m[GAME]\033[0m \033[0;33mDerleniyor;\033[0m" $< $(OBJDIR)/%.o: %.cpp @echo -e "\033[0;32m[GAME]\033[0m \033[0;33mDerleniyor;\033[0m" $< @$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@ $(TARGET): $(CPPOBJS) $(COBJS) $(MAINOBJ) @echo -e "\033[0;33m[GAME]\033[0m \033[0;31mOlusturuluyor:\033[0m" $(TARGET) @$(CC) $(CFLAGS) $(LIBDIR) $(COBJS) $(CPPOBJS) $(MAINOBJ) $(LIBS) -o $(TARGET) clean: @rm -f $(COBJS) $(CPPOBJS) $(MAINOBJ) @rm -f $(BINDIR)/game_v* tag: ctags *.cpp *.h *.c dep: makedepend -f Depend $(INCDIR) -I/usr/include/c++/v1 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(CPPFILE) $(CFILE) $(MAINCPP) 2> /dev/null > Depend sinclude Depend
  3. -- SOLVED -- Open your db and game makefiles and add this to the CFLAGS ; -static-libgcc -static-libstdc++ -- SOLVED -- When i start game, i havent get any error but somehow game doesnt start, and thats the what gdb said ; I have FreeBSD 12.1 - GCC10-Devel - x86 FOR Build FreeBSD 12.1 x64 FOR Game Server Core was generated by `game'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x287e450c in vtable for __cxxabiv1::__si_class_type_info () from /usr/lib32/libcxxrt.so.1 (gdb) bt full #0 0x287e450c in vtable for __cxxabiv1::__si_class_type_info () from /usr/lib32/libcxxrt.so.1 No symbol table info available. #1 0x28bd4027 in __dynamic_cast () from /usr/lib32/libstdc++.so.6 No symbol table info available. #2 0x28c5be7a in bool std::has_facet<std::ctype<char> >(std::locale const&) () from /usr/lib32/libstdc++.so.6 No symbol table info available. #3 0x28c4d3a0 in std::basic_ios<char, std::char_traits<char> >::_M_cache_locale(std::locale const&) () from /usr/lib32/libstdc++.so.6 No symbol table info available. #4 0x28c4d86c in std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*) () from /usr/lib32/libstdc++.so.6 No symbol table info available. #5 0x28be840d in std::ios_base::Init::Init() () from /usr/lib32/libstdc++.so.6 No symbol table info available. #6 0x0806bd4d in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at integer.cpp:4901 No locals. #7 _GLOBAL__sub_I__ZN8CryptoPP17InitializeIntegerC2Ev () at integer.cpp:4901 No locals. #8 0x28447475 in ?? () from /libexec/ld-elf32.so.1 No symbol table info available. #9 0x28446459 in ?? () from /libexec/ld-elf32.so.1 No symbol table info available. #10 0x2844401e in ?? () from /libexec/ld-elf32.so.1 No symbol table info available. While compiling i'm not get any warning or error, game and db linking very well but if i try start game i have this core. ?
  4. Zaten localden çektiriyorum dediğim gibi -static ekleyince linking kısmında üstteki hatayı veriyor, -static kaldırırsam sorunsuz build ediyor ama bu sefer konunun ana konusu olan hata ile game başlamıyor.Bu nasıl bir lib hatasıdır gerçekten psikolojim bozuldu. ?
  5. When i deleted -static no problem with compile but if i add this flag i have this error during linking, and i'm install devil already. /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_nvidia.o): in function `ilNVidiaCompressDXT': (.text+0x39): undefined reference to `nvtt::InputOptions::InputOptions()' /usr/local/bin/ld: (.text+0x4e): undefined reference to `nvtt::InputOptions::setTextureLayout(nvtt::TextureType, int, int, int)' /usr/local/bin/ld: (.text+0x64): undefined reference to `nvtt::InputOptions::setMipmapData(void const*, int, int, int, int, int)' /usr/local/bin/ld: (.text+0x71): undefined reference to `nvtt::InputOptions::setMipmapGeneration(bool, int)' /usr/local/bin/ld: (.text+0x7c): undefined reference to `nvtt::OutputOptions::OutputOptions()' /usr/local/bin/ld: (.text+0xeb): undefined reference to `nvtt::OutputOptions::setOutputHeader(bool)' /usr/local/bin/ld: (.text+0xf7): undefined reference to `nvtt::OutputOptions::setOutputHandler(nvtt::OutputHandler*)' /usr/local/bin/ld: (.text+0x111): undefined reference to `nvtt::CompressionOptions::CompressionOptions()' /usr/local/bin/ld: (.text+0x148): undefined reference to `nvtt::CompressionOptions::setFormat(nvtt::Format)' /usr/local/bin/ld: (.text+0x157): undefined reference to `nvtt::Compressor::Compressor()' /usr/local/bin/ld: (.text+0x166): undefined reference to `nvtt::Compressor::process(nvtt::InputOptions const&, nvtt::CompressionOptions const&, nvtt::OutputOptions const&) const' /usr/local/bin/ld: (.text+0x17c): undefined reference to `nvtt::Compressor::~Compressor()' /usr/local/bin/ld: (.text+0x187): undefined reference to `nvtt::CompressionOptions::~CompressionOptions()' /usr/local/bin/ld: (.text+0x199): undefined reference to `nvtt::OutputOptions::~OutputOptions()' /usr/local/bin/ld: (.text+0x1a1): undefined reference to `nvtt::InputOptions::~InputOptions()' /usr/local/bin/ld: (.text+0x202): undefined reference to `nvtt::CompressionOptions::setFormat(nvtt::Format)' /usr/local/bin/ld: (.text+0x232): undefined reference to `nvtt::CompressionOptions::setFormat(nvtt::Format)' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_nvidia.o): in function `ilNVidiaCompressDXTFile': (.text+0x2e0): undefined reference to `nvtt::InputOptions::InputOptions()' /usr/local/bin/ld: (.text+0x2f3): undefined reference to `nvtt::InputOptions::setTextureLayout(nvtt::TextureType, int, int, int)' /usr/local/bin/ld: (.text+0x307): undefined reference to `nvtt::InputOptions::setMipmapData(void const*, int, int, int, int, int)' /usr/local/bin/ld: (.text+0x314): undefined reference to `nvtt::InputOptions::setMipmapGeneration(bool, int)' /usr/local/bin/ld: (.text+0x31f): undefined reference to `nvtt::OutputOptions::OutputOptions()' /usr/local/bin/ld: (.text+0x330): undefined reference to `nvtt::OutputOptions::setOutputHeader(bool)' /usr/local/bin/ld: (.text+0x33c): undefined reference to `nvtt::OutputOptions::setOutputHandler(nvtt::OutputHandler*)' /usr/local/bin/ld: (.text+0x347): undefined reference to `nvtt::CompressionOptions::CompressionOptions()' /usr/local/bin/ld: (.text+0x37e): undefined reference to `nvtt::CompressionOptions::setFormat(nvtt::Format)' /usr/local/bin/ld: (.text+0x38d): undefined reference to `nvtt::Compressor::Compressor()' /usr/local/bin/ld: (.text+0x39c): undefined reference to `nvtt::Compressor::process(nvtt::InputOptions const&, nvtt::CompressionOptions const&, nvtt::OutputOptions const&) const' /usr/local/bin/ld: (.text+0x3b7): undefined reference to `nvtt::Compressor::~Compressor()' /usr/local/bin/ld: (.text+0x3bf): undefined reference to `nvtt::CompressionOptions::~CompressionOptions()' /usr/local/bin/ld: (.text+0x3c7): undefined reference to `nvtt::OutputOptions::~OutputOptions()' /usr/local/bin/ld: (.text+0x3cf): undefined reference to `nvtt::InputOptions::~InputOptions()' /usr/local/bin/ld: (.text+0x3f0): undefined reference to `nvtt::CompressionOptions::setFormat(nvtt::Format)' /usr/local/bin/ld: (.text+0x407): undefined reference to `nvtt::CompressionOptions::setFormat(nvtt::Format)' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_nvidia.o): in function `ilNVidiaCompressDXT.cold': (.text.unlikely+0x5): undefined reference to `nvtt::Compressor::~Compressor()' /usr/local/bin/ld: (.text.unlikely+0x17): undefined reference to `nvtt::CompressionOptions::~CompressionOptions()' /usr/local/bin/ld: (.text.unlikely+0x23): undefined reference to `nvtt::OutputOptions::~OutputOptions()' /usr/local/bin/ld: (.text.unlikely+0x2f): undefined reference to `nvtt::InputOptions::~InputOptions()' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_nvidia.o): in function `ilNVidiaCompressDXTFile.cold': (.text.unlikely+0x43): undefined reference to `nvtt::Compressor::~Compressor()' /usr/local/bin/ld: (.text.unlikely+0x4f): undefined reference to `nvtt::CompressionOptions::~CompressionOptions()' /usr/local/bin/ld: (.text.unlikely+0x5e): undefined reference to `nvtt::OutputOptions::~OutputOptions()' /usr/local/bin/ld: (.text.unlikely+0x6a): undefined reference to `nvtt::InputOptions::~InputOptions()' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_jp2.o): in function `jas_stream_create': (.text+0x56): undefined reference to `jas_malloc' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_jp2.o): in function `jas_stream_destroy': (.text+0xd8): undefined reference to `jas_free' /usr/local/bin/ld: (.text+0xeb): undefined reference to `jas_free' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_jp2.o): in function `jas_stream_initbuf.constprop.0': (.text+0x186): undefined reference to `jas_malloc' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_jp2.o): in function `iLoadJp2Internal': (.text+0x3b5): undefined reference to `jas_image_decode' /usr/local/bin/ld: (.text+0x4a2): undefined reference to `jas_matrix_create' /usr/local/bin/ld: (.text+0x4ca): undefined reference to `jas_image_readcmpt' /usr/local/bin/ld: (.text+0x533): undefined reference to `jas_matrix_destroy' /usr/local/bin/ld: (.text+0x557): undefined reference to `jas_image_destroy' /usr/local/bin/ld: (.text+0x58e): undefined reference to `jas_image_destroy' /usr/local/bin/ld: (.text+0x624): undefined reference to `jas_stream_close' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_jp2.o): in function `ilLoadJp2LInternal': (.text+0x6d1): undefined reference to `jas_init' /usr/local/bin/ld: (.text+0x6ec): undefined reference to `jas_stream_memopen' /usr/local/bin/ld: (.text+0x70c): undefined reference to `jas_stream_close' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_jp2.o): in function `iJp2ReadStream': (.text+0x7a7): undefined reference to `jas_malloc' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_jp2.o): in function `ilLoadJp2F': (.text+0x806): undefined reference to `jas_init' /usr/local/bin/ld: (.text+0x831): undefined reference to `jas_stream_close' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_jp2.o): in function `iJp2WriteStream': (.text+0x917): undefined reference to `jas_malloc' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_jp2.o): in function `Jp2ConvertData': (.text+0x9ce): undefined reference to `jas_matrix_create' /usr/local/bin/ld: (.text+0x9ef): undefined reference to `jas_matrix_destroy' /usr/local/bin/ld: (.text+0xaa8): undefined reference to `jas_stream_fillbuf' /usr/local/bin/ld: (.text+0xb0d): undefined reference to `jas_image_writecmpt' /usr/local/bin/ld: (.text+0xb4f): undefined reference to `jas_stream_flush' /usr/local/bin/ld: (.text+0xb79): undefined reference to `jas_stream_flush' /usr/local/bin/ld: (.text+0xb9d): undefined reference to `jas_stream_flush' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_jp2.o): in function `iSaveJp2Internal': (.text+0xca5): undefined reference to `jas_image_create' /usr/local/bin/ld: (.text+0xcee): undefined reference to `jas_stream_memopen' /usr/local/bin/ld: (.text+0xd20): undefined reference to `jas_image_strtofmt' /usr/local/bin/ld: (.text+0xd2a): undefined reference to `jas_image_encode' /usr/local/bin/ld: (.text+0xd3e): undefined reference to `jas_stream_flush' /usr/local/bin/ld: (.text+0xd46): undefined reference to `jas_stream_close' /usr/local/bin/ld: (.text+0xd4e): undefined reference to `jas_stream_close' /usr/local/bin/ld: (.text+0xd56): undefined reference to `jas_image_destroy' /usr/local/bin/ld: (.text+0xde9): undefined reference to `jas_init' /usr/local/bin/ld: (.text+0xe75): undefined reference to `jas_stream_close' /usr/local/bin/ld: (.text+0xe7d): undefined reference to `jas_image_destroy' /usr/local/bin/ld: (.text+0xed5): undefined reference to `jas_stream_close' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_jpeg.o): in function `iJpegErrorExit': (.text+0x1d3): undefined reference to `jpeg_destroy' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_jpeg.o): in function `devil_jpeg_read_init': (.text+0x3e8): undefined reference to `jpeg_resync_to_restart' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_jpeg.o): in function `iSaveJpegInternal': (.text+0x502): undefined reference to `jpeg_std_error' /usr/local/bin/ld: (.text+0x520): undefined reference to `jpeg_CreateCompress' /usr/local/bin/ld: (.text+0x582): undefined reference to `jpeg_set_defaults' /usr/local/bin/ld: (.text+0x5a5): undefined reference to `jpeg_set_quality' /usr/local/bin/ld: (.text+0x5c7): undefined reference to `jpeg_start_compress' /usr/local/bin/ld: (.text+0x5fa): undefined reference to `jpeg_write_scanlines' /usr/local/bin/ld: (.text+0x616): undefined reference to `jpeg_finish_compress' /usr/local/bin/ld: (.text+0x61e): undefined reference to `jpeg_destroy_compress' /usr/local/bin/ld: (.text+0x67d): undefined reference to `jpeg_simple_progression' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_jpeg.o): in function `ilLoadFromJpegStruct': (.text+0x86d): undefined reference to `jpeg_start_decompress' /usr/local/bin/ld: (.text+0x8d8): undefined reference to `jpeg_read_scanlines' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_jpeg.o): in function `iLoadJpegInternal': (.text+0x99d): undefined reference to `jpeg_std_error' /usr/local/bin/ld: (.text+0x9de): undefined reference to `jpeg_CreateDecompress' /usr/local/bin/ld: (.text+0xa06): undefined reference to `jpeg_read_header' /usr/local/bin/ld: (.text+0xa18): undefined reference to `jpeg_finish_decompress' /usr/local/bin/ld: (.text+0xa20): undefined reference to `jpeg_destroy_decompress' /usr/local/bin/ld: (.text+0xa3c): undefined reference to `jpeg_destroy_decompress' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_jpeg.o): in function `ilSaveFromJpegStruct': (.text+0xbc5): undefined reference to `jpeg_start_compress' /usr/local/bin/ld: (.text+0xbf2): undefined reference to `jpeg_write_scanlines' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_png.o): in function `png_error_func': (.text+0x7c): undefined reference to `png_set_longjmp_fn' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_png.o): in function `readpng_cleanup.part.0': (.text+0xa0): undefined reference to `png_destroy_read_struct' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_png.o): in function `iIsValidPng': (.text+0xf4): undefined reference to `png_sig_cmp' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_png.o): in function `readpng_init': (.text+0x215): undefined reference to `png_create_read_struct' /usr/local/bin/ld: (.text+0x22e): undefined reference to `png_create_info_struct' /usr/local/bin/ld: (.text+0x253): undefined reference to `png_set_longjmp_fn' /usr/local/bin/ld: (.text+0x27b): undefined reference to `png_set_read_fn' /usr/local/bin/ld: (.text+0x295): undefined reference to `png_set_error_fn' /usr/local/bin/ld: (.text+0x2a8): undefined reference to `png_read_info' /usr/local/bin/ld: (.text+0x2d0): undefined reference to `png_destroy_read_struct' /usr/local/bin/ld: (.text+0x2eb): undefined reference to `png_destroy_read_struct' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_png.o): in function `readpng_get_image': (.text+0x320): undefined reference to `png_set_longjmp_fn' /usr/local/bin/ld: (.text+0x363): undefined reference to `png_get_IHDR' /usr/local/bin/ld: (.text+0x391): undefined reference to `png_get_valid' /usr/local/bin/ld: (.text+0x3b1): undefined reference to `png_get_valid' /usr/local/bin/ld: (.text+0x3ed): undefined reference to `png_get_IHDR' /usr/local/bin/ld: (.text+0x410): undefined reference to `png_set_swap' /usr/local/bin/ld: (.text+0x427): undefined reference to `png_read_update_info' /usr/local/bin/ld: (.text+0x43a): undefined reference to `png_get_channels' /usr/local/bin/ld: (.text+0x44f): undefined reference to `png_get_color_type' /usr/local/bin/ld: (.text+0x480): undefined reference to `png_destroy_read_struct' /usr/local/bin/ld: (.text+0x4ad): undefined reference to `png_set_tRNS_to_alpha' /usr/local/bin/ld: (.text+0x4ef): undefined reference to `png_get_PLTE' /usr/local/bin/ld: (.text+0x5c6): undefined reference to `png_read_image' /usr/local/bin/ld: (.text+0x62d): undefined reference to `png_set_packing' /usr/local/bin/ld: (.text+0x64d): undefined reference to `png_set_expand_gray_1_2_4_to_8' /usr/local/bin/ld: (.text+0x67e): undefined reference to `png_get_valid' /usr/local/bin/ld: (.text+0x761): undefined reference to `png_get_tRNS' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_png.o): in function `iSavePngInternal': (.text+0x955): undefined reference to `png_create_write_struct' /usr/local/bin/ld: (.text+0x96d): undefined reference to `png_create_info_struct' /usr/local/bin/ld: (.text+0x993): undefined reference to `png_set_write_fn' /usr/local/bin/ld: (.text+0x9ab): undefined reference to `png_set_compression_level' /usr/local/bin/ld: (.text+0xa52): undefined reference to `png_set_IHDR' /usr/local/bin/ld: (.text+0xb03): undefined reference to `png_set_text' /usr/local/bin/ld: (.text+0xb13): undefined reference to `png_write_info' /usr/local/bin/ld: (.text+0xbd5): undefined reference to `png_write_image' /usr/local/bin/ld: (.text+0xbe4): undefined reference to `png_write_end' /usr/local/bin/ld: (.text+0xbf5): undefined reference to `png_destroy_write_struct' /usr/local/bin/ld: (.text+0xcde): undefined reference to `png_destroy_write_struct' /usr/local/bin/ld: (.text+0xdd8): undefined reference to `png_set_bgr' /usr/local/bin/ld: (.text+0xe1b): undefined reference to `png_set_PLTE' /usr/local/bin/ld: (.text+0xe53): undefined reference to `png_set_tRNS' /usr/local/bin/ld: (.text+0xe6d): undefined reference to `png_destroy_write_struct' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_tiff.o): in function `iTIFFOpen': (.text+0x1d7): undefined reference to `TIFFClientOpen' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_tiff.o): in function `iLoadTiffInternal': (.text+0x266): undefined reference to `TIFFSetWarningHandler' /usr/local/bin/ld: (.text+0x272): undefined reference to `TIFFSetErrorHandler' /usr/local/bin/ld: (.text+0x29a): undefined reference to `TIFFReadDirectory' /usr/local/bin/ld: (.text+0x351): undefined reference to `TIFFReadRGBAImage' /usr/local/bin/ld: (.text+0x3b6): undefined reference to `TIFFGetField' /usr/local/bin/ld: (.text+0x417): undefined reference to `TIFFGetField' /usr/local/bin/ld: (.text+0x439): undefined reference to `TIFFGetField' /usr/local/bin/ld: (.text+0x45b): undefined reference to `TIFFGetField' /usr/local/bin/ld: (.text+0x480): undefined reference to `TIFFGetField' /usr/local/bin/ld: (.text+0x4fc): undefined reference to `TIFFSetDirectory' /usr/local/bin/ld: (.text+0x50f): undefined reference to `TIFFGetField' /usr/local/bin/ld: (.text+0x522): undefined reference to `TIFFGetField' /usr/local/bin/ld: (.text+0x535): undefined reference to `TIFFGetFieldDefaulted' /usr/local/bin/ld: (.text+0x548): undefined reference to `TIFFGetFieldDefaulted' /usr/local/bin/ld: (.text+0x55b): undefined reference to `TIFFGetFieldDefaulted' /usr/local/bin/ld: (.text+0x570): undefined reference to `TIFFGetFieldDefaulted' /usr/local/bin/ld: (.text+0x583): undefined reference to `TIFFGetFieldDefaulted' /usr/local/bin/ld: (.text+0x58b): undefined reference to `TIFFScanlineSize' /usr/local/bin/ld: (.text+0x5a2): undefined reference to `TIFFGetFieldDefaulted' /usr/local/bin/ld: (.text+0x5b5): undefined reference to `TIFFGetFieldDefaulted' /usr/local/bin/ld: (.text+0x5d8): undefined reference to `TIFFGetFieldDefaulted' /usr/local/bin/ld: (.text+0x5eb): undefined reference to `TIFFGetFieldDefaulted' /usr/local/bin/ld: (.text+0x656): undefined reference to `TIFFGetFieldDefaulted' /usr/local/bin/ld: (.text+0x687): undefined reference to `TIFFSetField' /usr/local/bin/ld: (.text+0x76f): undefined reference to `TIFFGetField' /usr/local/bin/ld: (.text+0x777): undefined reference to `TIFFStripSize' /usr/local/bin/ld: (.text+0x873): undefined reference to `TIFFGetField' /usr/local/bin/ld: (.text+0x87b): undefined reference to `TIFFStripSize' /usr/local/bin/ld: (.text+0x8e7): undefined reference to `TIFFComputeStrip' /usr/local/bin/ld: (.text+0x8f3): undefined reference to `TIFFReadEncodedStrip' /usr/local/bin/ld: (.text+0x99d): undefined reference to `TIFFClose' /usr/local/bin/ld: (.text+0x9cd): undefined reference to `TIFFClose' /usr/local/bin/ld: (.text+0x9e5): undefined reference to `TIFFClose' /usr/local/bin/ld: (.text+0xa34): undefined reference to `TIFFClose' /usr/local/bin/ld: (.text+0xa51): undefined reference to `TIFFComputeStrip' /usr/local/bin/ld: (.text+0xa60): undefined reference to `TIFFReadEncodedStrip' /usr/local/bin/ld: (.text+0xb2a): undefined reference to `TIFFComputeStrip' /usr/local/bin/ld: (.text+0xb39): undefined reference to `TIFFReadEncodedStrip' /usr/local/bin/ld: (.text+0xc21): undefined reference to `TIFFClose' /usr/local/bin/ld: (.text+0xc8e): undefined reference to `TIFFComputeStrip' /usr/local/bin/ld: (.text+0xc9a): undefined reference to `TIFFReadEncodedStrip' /usr/local/bin/ld: (.text+0xd6c): undefined reference to `TIFFComputeStrip' /usr/local/bin/ld: (.text+0xd7b): undefined reference to `TIFFReadEncodedStrip' /usr/local/bin/ld: (.text+0xdc5): undefined reference to `TIFFGetField' /usr/local/bin/ld: (.text+0xe70): undefined reference to `TIFFClose' /usr/local/bin/ld: (.text+0xed3): undefined reference to `TIFFClose' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_tiff.o): in function `iSaveTiffInternal': (.text+0xf2c): undefined reference to `TIFFSetWarningHandler' /usr/local/bin/ld: (.text+0xf38): undefined reference to `TIFFSetErrorHandler' /usr/local/bin/ld: (.text+0xfb0): undefined reference to `TIFFSetField' /usr/local/bin/ld: (.text+0xfc1): undefined reference to `TIFFSetField' /usr/local/bin/ld: (.text+0xfd0): undefined reference to `TIFFSetField' /usr/local/bin/ld: (.text+0xff4): undefined reference to `TIFFSetField' /usr/local/bin/ld: (.text+0x100d): undefined reference to `TIFFSetField' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_tiff.o):(.text+0x1020): more undefined references to `TIFFSetField' follow /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_tiff.o): in function `iSaveTiffInternal': (.text+0x124b): undefined reference to `TIFFWriteScanline' /usr/local/bin/ld: (.text+0x125b): undefined reference to `TIFFClose' /usr/local/bin/ld: (.text+0x12d4): undefined reference to `TIFFSetField' /usr/local/bin/ld: (.text+0x131d): undefined reference to `TIFFClose' /usr/local/bin/ld: (.text+0x133c): undefined reference to `TIFFSetField' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_icon.o): in function `ico_png_error_func': (.text+0x4c): undefined reference to `png_set_longjmp_fn' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_icon.o): in function `ico_readpng_cleanup.part.0': (.text+0x70): undefined reference to `png_destroy_read_struct' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_icon.o): in function `ico_readpng_init': (.text+0xa5): undefined reference to `png_create_read_struct' /usr/local/bin/ld: (.text+0xbe): undefined reference to `png_create_info_struct' /usr/local/bin/ld: (.text+0xe3): undefined reference to `png_set_longjmp_fn' /usr/local/bin/ld: (.text+0x10b): undefined reference to `png_set_read_fn' /usr/local/bin/ld: (.text+0x125): undefined reference to `png_set_error_fn' /usr/local/bin/ld: (.text+0x138): undefined reference to `png_read_info' /usr/local/bin/ld: (.text+0x160): undefined reference to `png_destroy_read_struct' /usr/local/bin/ld: (.text+0x17b): undefined reference to `png_destroy_read_struct' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_icon.o): in function `ico_readpng_get_image': (.text+0x1b8): undefined reference to `png_set_longjmp_fn' /usr/local/bin/ld: (.text+0x1fb): undefined reference to `png_get_IHDR' /usr/local/bin/ld: (.text+0x229): undefined reference to `png_get_valid' /usr/local/bin/ld: (.text+0x249): undefined reference to `png_get_valid' /usr/local/bin/ld: (.text+0x285): undefined reference to `png_get_IHDR' /usr/local/bin/ld: (.text+0x2a8): undefined reference to `png_set_swap' /usr/local/bin/ld: (.text+0x2bf): undefined reference to `png_read_update_info' /usr/local/bin/ld: (.text+0x2d2): undefined reference to `png_get_channels' /usr/local/bin/ld: (.text+0x2e5): undefined reference to `png_get_color_type' /usr/local/bin/ld: (.text+0x330): undefined reference to `png_destroy_read_struct' /usr/local/bin/ld: (.text+0x35d): undefined reference to `png_set_tRNS_to_alpha' /usr/local/bin/ld: (.text+0x385): undefined reference to `png_set_packing' /usr/local/bin/ld: (.text+0x3bc): undefined reference to `png_set_bgr' /usr/local/bin/ld: (.text+0x465): undefined reference to `png_read_image' /usr/local/bin/ld: (.text+0x4c5): undefined reference to `png_set_expand_gray_1_2_4_to_8' /usr/local/bin/ld: (.text+0x507): undefined reference to `png_get_PLTE' /usr/local/bin/ld: (.text+0x528): undefined reference to `png_get_valid' /usr/local/bin/ld: (.text+0x54f): undefined reference to `png_get_tRNS' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_mng.o): in function `mymngprocessheader': (.text+0xda): undefined reference to `mng_get_alphadepth' /usr/local/bin/ld: (.text+0x118): undefined reference to `mng_set_canvasstyle' /usr/local/bin/ld: (.text+0x16e): undefined reference to `mng_set_canvasstyle' /usr/local/bin/ld: /usr/local/lib/libIL.a(libIL_la-il_mng.o): in function `iLoadMngInternal': (.text+0x211): undefined reference to `mng_initialize' /usr/local/bin/ld: (.text+0x229): undefined reference to `mng_set_usebkgd' /usr/local/bin/ld: (.text+0x236): undefined reference to `mng_setcb_errorproc' /usr/local/bin/ld: (.text+0x243): undefined reference to `mng_setcb_openstream' /usr/local/bin/ld: (.text+0x250): undefined reference to `mng_setcb_closestream' /usr/local/bin/ld: (.text+0x25d): undefined reference to `mng_setcb_readdata' /usr/local/bin/ld: (.text+0x26a): undefined reference to `mng_setcb_gettickcount' /usr/local/bin/ld: (.text+0x277): undefined reference to `mng_setcb_settimer' /usr/local/bin/ld: (.text+0x284): undefined reference to `mng_setcb_processheader' /usr/local/bin/ld: (.text+0x291): undefined reference to `mng_setcb_getcanvasline' /usr/local/bin/ld: (.text+0x29e): undefined reference to `mng_setcb_refresh' /usr/local/bin/ld: (.text+0x2a6): undefined reference to `mng_read' /usr/local/bin/ld: (.text+0x2ae): undefined reference to `mng_display' collect2: error: ld returned 1 exit status gmake: *** [Makefile:105: ../game_v40002_32] Error 1 PS : Nickinden Türk olduğunu düşünüyorum, yardımın için teşekkürler günlerdir bu sorun ile uğraşıyorum artık delirme noktasına geldim.
  6. I added this in cryptopp makefile and compile it, but if i add this game makefile DevIL give error during linking. I share it last post and -static deleted cuz a devil error.
  7. Game Makefile ; PLATFORM = $(shell file /bin/ls | cut -d' ' -f3 | cut -d'-' -f1) GAME_VERSION = 40002 P4_VERSION = $(GAME_VERSION) CC = g++9 INCDIR = LIBDIR = BINDIR = .. OBJDIR = obj $(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi) # Standard Setting LIBS = -pthread -lm -lmd # Removed -fno-rtti CFLAGS = -g -Wall -O2 -static -m32 -pipe -fexceptions -std=gnu++17 -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib/gcc9 -DNDEBUG CFLAGS += -mtune=i686 -fstack-protector-all # boost INCDIR += -I/usr/local/include/boost # DevIL INCDIR += -I/usr/local/include/IL LIBS += -lpng -ltiff -lmng -llcms -lIL # MySQL LIBS += -lmysqlclient -L/usr/local/lib/mysql -lz # Lzo 2.10 INCDIR += -I/usr/local/include/lzo # Miscellaneous external libraries LIBDIR += -L/usr/local/include/lib LIBS += -lcryptopp # Project Library INCDIR += -I../../liblua/include INCDIR += -I/usr/local/include INCDIR += -L/usr/local/lib/mysql LIBDIR += -L../../libthecore/lib -L../../libpoly -L../../libsql -L../../libgame/lib -L../../liblua/lib LIBDIR += -L/usr/local/lib LIBS += -lthecore -lpoly -llua -llualib -lsql -lgame USE_STACKTRACE = 0 ifeq ($(USE_STACKTRACE), 1) LIBS += /usr/local/lib/libexecinfo.a endif TARGET = $(BINDIR)/game_v$(GAME_VERSION)_$(PLATFORM) CFILE = minilzo.c CPPFILE = BattleArena.cpp FSM.cpp MarkConvert.cpp MarkImage.cpp MarkManager.cpp OXEvent.cpp TrafficProfiler.cpp ani.cpp\ arena.cpp banword.cpp battle.cpp blend_item.cpp block_country.cpp buffer_manager.cpp building.cpp castle.cpp\ char.cpp char_affect.cpp char_battle.cpp char_change_empire.cpp char_horse.cpp char_item.cpp char_manager.cpp\ char_quickslot.cpp char_resist.cpp char_skill.cpp char_state.cpp PetSystem.cpp cmd.cpp cmd_emotion.cpp cmd_general.cpp\ cmd_gm.cpp cmd_oxevent.cpp config.cpp constants.cpp crc32.cpp cube.cpp db.cpp desc.cpp\ desc_client.cpp desc_manager.cpp desc_p2p.cpp dev_log.cpp dungeon.cpp empire_text_convert.cpp entity.cpp\ entity_view.cpp event.cpp event_queue.cpp exchange.cpp file_loader.cpp fishing.cpp gm.cpp guild.cpp\ guild_manager.cpp guild_war.cpp horse_rider.cpp horsename_manager.cpp input.cpp input_auth.cpp input_db.cpp\ input_login.cpp input_main.cpp input_p2p.cpp input_udp.cpp ip_ban.cpp\ item.cpp item_addon.cpp item_attribute.cpp item_manager.cpp item_manager_idrange.cpp locale.cpp\ locale_service.cpp log.cpp login_data.cpp lzo_manager.cpp marriage.cpp matrix_card.cpp\ messenger_manager.cpp mining.cpp mob_manager.cpp monarch.cpp motion.cpp over9refine.cpp p2p.cpp packet_info.cpp\ party.cpp passpod.cpp pcbang.cpp polymorph.cpp priv_manager.cpp pvp.cpp\ questevent.cpp questlua.cpp questlua_affect.cpp questlua_arena.cpp questlua_ba.cpp questlua_building.cpp\ questlua_danceevent.cpp questlua_dungeon.cpp questlua_forked.cpp questlua_game.cpp questlua_global.cpp\ questlua_guild.cpp questlua_horse.cpp questlua_pet.cpp questlua_item.cpp questlua_marriage.cpp questlua_mgmt.cpp\ questlua_monarch.cpp questlua_npc.cpp questlua_oxevent.cpp questlua_party.cpp questlua_pc.cpp\ questlua_quest.cpp questlua_target.cpp questmanager.cpp questnpc.cpp questpc.cpp\ refine.cpp regen.cpp safebox.cpp sectree.cpp sectree_manager.cpp sequence.cpp shop.cpp\ skill.cpp start_position.cpp target.cpp text_file_loader.cpp trigger.cpp utils.cpp vector.cpp war_map.cpp\ wedding.cpp xmas_event.cpp version.cpp panama.cpp threeway_war.cpp map_location.cpp auth_brazil.cpp\ BlueDragon.cpp BlueDragon_Binder.cpp DragonLair.cpp questlua_dragonlair.cpp\ skill_power.cpp affect.cpp\ ClientPackageCryptInfo.cpp cipher.cpp\ buff_on_attributes.cpp dragon_soul_table.cpp DragonSoul.cpp\ group_text_parse_tree.cpp char_dragonsoul.cpp questlua_dragonsoul.cpp\ shop_manager.cpp shopEx.cpp item_manager_read_tables.cpp COBJS = $(CFILE:%.c=$(OBJDIR)/%.o) CPPOBJS = $(CPPFILE:%.cpp=$(OBJDIR)/%.o) MAINOBJ = $(OBJDIR)/main.o MAINCPP = main.cpp default: $(TARGET) $(OBJDIR)/minilzo.o: minilzo.c @$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@ @echo -e "\033[0;32m[GAME]\033[0m \033[0;33mDerleniyor;\033[0m" $< $(OBJDIR)/version.o: version.cpp @$(CC) $(CFLAGS) -D__GAME_VERSION__=\"$(GAME_VERSION)\" -D__P4_VERSION__=\"$(P4_VERSION)\" -c $< -o $@ @echo -e "\033[0;32m[GAME]\033[0m \033[0;33mDerleniyor;\033[0m" $< $(OBJDIR)/%.o: %.cpp @echo -e "\033[0;32m[GAME]\033[0m \033[0;33mDerleniyor;\033[0m" $< @$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@ $(TARGET): $(CPPOBJS) $(COBJS) $(MAINOBJ) @echo -e "\033[0;33m[GAME]\033[0m \033[0;31mOlusturuluyor:\033[0m" $(TARGET) @$(CC) $(CFLAGS) $(LIBDIR) $(COBJS) $(CPPOBJS) $(MAINOBJ) $(LIBS) -o $(TARGET) clean: @rm -f $(COBJS) $(CPPOBJS) $(MAINOBJ) @rm -f $(BINDIR)/game_v* tag: ctags *.cpp *.h *.c dep: makedepend -f Depend $(INCDIR) -I/usr/include/c++/v1 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(CPPFILE) $(CFILE) $(MAINCPP) 2> /dev/null > Depend sinclude Depend I'm also added -static to cryptopp makefile.
  8. I'm sorry but thats not solve the problem, i maked it -static but nothing change, i think Metin2 not okey for the Cryptopp 8.2, i think im gonna try 5.6.5.
  9. Thanks for the reply and no, how do i do recompile as static ? I am gonna try it but i cant understand why. ?
  10. Thanks for the answer, i'd try it but still same ?
  11. Hello i have a game (build with gcc9 and zero warnings), in game server i have all needed libs but somehow i cant start my game i look at the core with gdb and see this ; Any solutions ? Thanks for the help..
  12. I have some trouble in compile, this warnings really annoying. If anybody know what is fix of this, i will very thankful. Sorry for my english.
  13. I have FreeBSD 12.1 and Gcc7, i compile game in the 32 bit system but my game machine is 64 bit i think this is the main problem. What do you guys thing ? Any solution for this ? Solved ; Go cd /usr/loca/lib/gcc7 Copy libstc++.so.6.xxx file and rename it libstc++.so.6 and paste it usr/lib32 and usr/lib locations. Thats solve the problem.
  14. Hello community, i have problem on the build. I have FreeBSD 9.2 - Gcc7 - C++17 - Cryptopp 7.0 And this is what i see ; Thanks for the help.. and sorry for my poor english..
  15. Hello, i'm doing some stuff on mainline_released, last night i'm gonna tried to remove all of xtrap, hs, openid, passpod things i thing i'm do it right i remove all of this codes on server source side, client source side and the root pack but after all i have mysterious auth problem, dont have a any known syserr just this ; Auth Syslog ; Mar 13 11:32:26 :: SYSTEM: new connection from [24.xxx.xx.xxx] fd: 15 handshake 2816614490 output input_len 0, ptr 0x2898da80 Mar 13 11:32:27 :: Handshake: client_time 0 server_time 251994183 Mar 13 11:32:27 :: AUTH_PHASE 0x2898da80 Mar 13 11:34:02 :: SYSTEM: closing socket. DESC #15 And i dont know its the critical syserr but this is my db syserr ; SYSERR: Mar 10 13:32:43 :: __GetHostInfo: __GetHostInfo() ==> DirectQuery failed(SELECT mIP FROM gmhost) SYSERR: Mar 10 13:32:43 :: __GetAdminInfo: __GetAdminInfo() ==> DirectQuery failed(SELECT mID,mAccount,mName,mContactIP,mServerIP,mAuthority FROM gmlist WHERE mServerIP='ALL' or mServerIP='80.xxx.xx.xx') SYSERR: Mar 12 21:48:39 :: DirectQuery: MySQL connection was reconnected. querying locale set SYSERR: Mar 12 21:48:39 :: Process: FDWATCH: peer null in event: ident 23 SYSERR: Mar 12 21:48:39 :: Process: FDWATCH: peer null in event: ident 24 I'm try to connet a game i'm type my acoount details and try the enter server its says "Connecting to the Server ..." and this is all i see no error.Thanks for the help..
  16. Thanks for the reply, actually i make all changes my own.This is my 0.3v i'm going back to 0.2 and try again also this is clean mainline_released, im just trying make a clean source myself.I know im not good enought but i believe its change someday. Best Regards.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.