• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling Compiling Ubuntu tfs

Sp0tl3ss

Nestalia.org
Joined
Jul 19, 2014
Messages
279
Reaction score
12
Hello im trying to compile ninjalulz/forgottenserver on linux ubuntu and i get there errors
Code:
collect2: error: ld returned 1 exit status
CMakeFiles/tfs.dir/build.make:2002: recipe for target 'tfs' failed
make[2]: *** [tfs] Error 1
CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/tfs.dir/all' failed
make[1]: *** [CMakeFiles/tfs.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

i would love some help fixing these errors :)


Performing C++ SOURCE FILE Test COMPILER_KNOWS_STDLIB failed with the following output:
Change Dir: /home/lud/nestalia/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_55888/fast"
/usr/bin/make -f CMakeFiles/cmTC_55888.dir/build.make CMakeFiles/cmTC_55888.dir/build
make[1]: Entering directory '/home/lud/nestalia/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_55888.dir/src.cxx.o
/usr/bin/c++ -Wall -Werror -pipe -fno-strict-aliasing -std=c++11 -DCOMPILER_KNOWS_STDLIB -stdlib=libc++ -o CMakeFiles/cmTC_55888.dir/src.cxx.o -c /home/lud/nestalia/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command line option '-stdlib=libc++'
CMakeFiles/cmTC_55888.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_55888.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_55888.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/lud/nestalia/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_55888/fast' failed
make: *** [cmTC_55888/fast] Error 2
Source file was:
int main() { return 0; }
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/lud/nestalia/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_ad166/fast"
/usr/bin/make -f CMakeFiles/cmTC_ad166.dir/build.make CMakeFiles/cmTC_ad166.dir/build
make[1]: Entering directory '/home/lud/nestalia/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_ad166.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTC_ad166.dir/CheckSymbolExists.c.o -c /home/lud/nestalia/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_ad166
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ad166.dir/link.txt --verbose=1
/usr/bin/cc -rdynamic CMakeFiles/cmTC_ad166.dir/CheckSymbolExists.c.o -o cmTC_ad166
CMakeFiles/cmTC_ad166.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x1b): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_ad166.dir/build.make:97: recipe for target 'cmTC_ad166' failed
make[1]: *** [cmTC_ad166] Error 1
make[1]: Leaving directory '/home/lud/nestalia/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_ad166/fast' failed
make: *** [cmTC_ad166/fast] Error 2
File /home/lud/nestalia/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/lud/nestalia/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_39b7c/fast"
/usr/bin/make -f CMakeFiles/cmTC_39b7c.dir/build.make CMakeFiles/cmTC_39b7c.dir/build
make[1]: Entering directory '/home/lud/nestalia/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_39b7c.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_39b7c.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.10/Modules/CheckFunctionExists.c
Linking C executable cmTC_39b7c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_39b7c.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_39b7c.dir/CheckFunctionExists.c.o -o cmTC_39b7c -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_39b7c.dir/build.make:97: recipe for target 'cmTC_39b7c' failed
make[1]: *** [cmTC_39b7c] Error 1
make[1]: Leaving directory '/home/lud/nestalia/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_39b7c/fast' failed
make: *** [cmTC_39b7c/fast] Error 2
 
Post contents of build.make ~ line 2000
Post contents of makefile2 ~ line 99
Post contents of makefile ~ line 80
Let's see where it's trying to put files. Might be a permissions issue. Are you running it as sudo?
 
Back
Top