You are not logged in.
I think there's a problem.
[ 88%] Building CXX object src/CMakeFiles/mineserver.dir/worldgen/nethergen.cpp.o
/tmp/yaourt-tmp-rpuser/aur-mineserver-git/src/mineserver/src/worldgen/nethergen.cpp: In member function ‘virtual void NetherGen::AddOre(int, int, int, uint8_t)’:
/tmp/yaourt-tmp-rpuser/aur-mineserver-git/src/mineserver/src/worldgen/nethergen.cpp:410:3: warning: ‘count’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Linking CXX executable ../bin/mineserver
/usr/bin/ld: CMakeFiles/mineserver.dir/tools.cpp.o: undefined reference to symbol 'clock_gettime@@GLIBC_2.4'
/usr/bin/ld: note: 'clock_gettime@@GLIBC_2.4' is defined in DSO /lib/librt.so.1 so try adding it to the linker command line
/lib/librt.so.1: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [bin/mineserver] Error 1
make[1]: *** [src/CMakeFiles/mineserver.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build mineserver-git.
==> Restart building mineserver-git ? [y/N]
==> ---------------------------------------Last edited by tanrax (2012-08-23 13:43:39)
Offline
Tanrax, please have a look at forum guidelines and posting instructions. Note specifically that you should not cross post in multiple forums and you should put such output in [ code ] ... [ /code ] tags to improve readability.
Add the following "sed" line between cmake and make in the PKGBUILD:
cmake -DCMAKE_BUILD_TYPE=Release .
sed -i 's/\(^.*$\)/\1 -lrt -lpthread/' src/CMakeFiles/mineserver.dir/link.txt
make alledit: fixed typo
Last edited by Trilby (2012-08-23 17:06:17)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I'm sorry my mistakes. I'll try to fix it.
A billion thanks for your reply ![]()
Last edited by tanrax (2012-08-23 13:59:35)
Offline
Tanrax, please have a look at forum guidelines and posting instructions. Note specifically that you should not cross post in multiple forums and you should put such output in [ code ] ... [ /code ] tags to improve readability.
Add the following "sed" line between cmake and make in the PKGBUILD:
cmake -DCMAKE_BUILD_TYPE=Release . sed -i 's/\(^.*$\)/\1 -lrt -lphtread/' src/CMakeFiles/mineserver.dir/link.txt make all
I did and I keep saying the same thing : (
Offline
export LDFLAGS="$LDFLAGS -lrt"?
Offline
export LDFLAGS="$LDFLAGS -lrt"?
Nop
[ 88%] Building CXX object src/CMakeFiles/mineserver.dir/worldgen/nethergen.cpp.o
/tmp/yaourt-tmp-rpuser/aur-mineserver-git/src/mineserver/src/worldgen/nethergen.cpp: In member function âvirtual void NetherGen::AddOre(int, int, int, uint8_t)â:
/tmp/yaourt-tmp-rpuser/aur-mineserver-git/src/mineserver/src/worldgen/nethergen.cpp:410:3: warning: âcountâ may be used uninitialized in this function [-Wmaybe-uninitialized]
Linking CXX executable ../bin/mineserver
/usr/bin/ld: cannot find -lphtread
collect2: error: ld returned 1 exit status
make[2]: *** [bin/mineserver] Error 1
make[1]: *** [src/CMakeFiles/mineserver.dir/all] Error 2
make: *** [all] Error 2Offline
looks like a yes, you have a different issue now.
actually you used trilby sed command which has a typo in it, it's lpthread not lphtread
Offline
Oops. Yes. I got it to compile here, but that is a typo. It is missing the -lrt and -lpthread.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Oops. Yes. I got it to compile here, but that is a typo. It is missing the -lrt and -lpthread.
WORKS. Many thanks for your help ![]()
Last edited by tanrax (2012-08-23 20:11:46)
Offline
I've editted and fixed the typo in my previous post which has my proposed solution that worked for me.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I've editted and fixed the typo in my previous post which has my proposed solution that worked for me.
Thanks, thanks and thanks: for the trouble, for the interest and for the effort.
![]()
Offline
Your welcome. You can mark the thread as [SOLVED] by clicking edit on your initial post in the thread, then you can add that to the title.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline