Kobiesan Posted August 2, 2019 Share Posted August 2, 2019 I get this error when compiling my TC eluna core on linux. Any ideas? [ 42%] Linking CXX executable authserver /usr/bin/ld: ../../../dep/jemalloc/libjemalloc.a(jemalloc.c.o): relocation R_X86_64_32S against undefined symbol `je_sz_size2index_tab' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: ../../../dep/jemalloc/libjemalloc.a(large.c.o): relocation R_X86_64_32S against undefined symbol `je_sz_size2index_tab' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: ../../../dep/jemalloc/libjemalloc.a(log.c.o): relocation R_X86_64_32 against undefined symbol `je_log_var_names' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: ../../../dep/jemalloc/libjemalloc.a(malloc_io.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: ../../../dep/jemalloc/libjemalloc.a(mutex.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: ../../../dep/jemalloc/libjemalloc.a(pages.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: ../../../dep/jemalloc/libjemalloc.a(prof.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: ../../../dep/jemalloc/libjemalloc.a(rtree.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: ../../../dep/jemalloc/libjemalloc.a(stats.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: ../../../dep/jemalloc/libjemalloc.a(sz.c.o): relocation R_X86_64_32S against undefined symbol `je_sz_pind2sz_tab' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: ../../../dep/jemalloc/libjemalloc.a(tcache.c.o): relocation R_X86_64_32S against undefined symbol `je_sz_index2size_tab' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: ../../../dep/jemalloc/libjemalloc.a(tsd.c.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: ../../../dep/jemalloc/libjemalloc.a(witness.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: ../../../dep/jemalloc/libjemalloc.a(arena.c.o): relocation R_X86_64_32S against symbol `je_dss_prec_names' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: ../../../dep/jemalloc/libjemalloc.a(background_thread.c.o): relocation R_X86_64_32 against undefined symbol `je_background_thread_lock' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: ../../../dep/jemalloc/libjemalloc.a(base.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: ../../../dep/jemalloc/libjemalloc.a(bin.c.o): relocation R_X86_64_32S against undefined symbol `je_bin_infos' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: ../../../dep/jemalloc/libjemalloc.a(ckh.c.o): relocation R_X86_64_32S against undefined symbol `je_sz_size2index_tab' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: ../../../dep/jemalloc/libjemalloc.a(ctl.c.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: ../../../dep/jemalloc/libjemalloc.a(extent.c.o): relocation R_X86_64_32S against undefined symbol `je_arenas' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: ../../../dep/jemalloc/libjemalloc.a(hook.c.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: error: ld returned 1 exit status src/server/authserver/CMakeFiles/authserver.dir/build.make:208: recipe for target 'src/server/authserver/authserver' failed make[2]: *** [src/server/authserver/authserver] Error 1 CMakeFiles/Makefile2:1436: recipe for target 'src/server/authserver/CMakeFiles/authserver.dir/all' failed make[1]: *** [src/server/authserver/CMakeFiles/authserver.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2 Link to comment Share on other sites More sharing options...
wungasaurus Posted August 2, 2019 Share Posted August 2, 2019 Define NOJEM to work around and report a bug on trinitycore‘s issue tracker rather than here. It is missing a -fpic, as the error says. Link to comment Share on other sites More sharing options...
Kobiesan Posted August 2, 2019 Author Share Posted August 2, 2019 6 minutes ago, wungasaurus said: Define NOJEM to work around and report a bug on trinitycore‘s issue tracker rather than here. It is missing a -fpic, as the error says. So it's a bug with tc? And where are you getting nojem from? Link to comment Share on other sites More sharing options...
wungasaurus Posted August 2, 2019 Share Posted August 2, 2019 From their code. Deps/jemalloc/cmakelists.txt Link to comment Share on other sites More sharing options...
Error compiling trinitycore on linux (debian 9)
By Kobiesanin Serverside
Recommended Posts