You are not logged in.

#1 2012-08-23 10:00:03

tanrax
Member
Registered: 2012-08-11
Posts: 31

Mineserver-git

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

#2 2012-08-23 11:37:13

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,502
Website

Re: Mineserver-git

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 all

edit: fixed typo

Last edited by Trilby (2012-08-23 17:06:17)


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#3 2012-08-23 13:59:23

tanrax
Member
Registered: 2012-08-11
Posts: 31

Re: Mineserver-git

I'm sorry my mistakes. I'll try to fix it.

A billion thanks for your reply smile

Last edited by tanrax (2012-08-23 13:59:35)

Offline

#4 2012-08-23 14:25:30

tanrax
Member
Registered: 2012-08-11
Posts: 31

Re: Mineserver-git

Trilby wrote:

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

#5 2012-08-23 14:41:43

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,554

Re: Mineserver-git

export LDFLAGS="$LDFLAGS -lrt"

?


All design goals must be phrased in such a way that it is hard to use them as slogans to justify stupidity.

Offline

#6 2012-08-23 15:53:25

tanrax
Member
Registered: 2012-08-11
Posts: 31

Re: Mineserver-git

bangkok_manouel wrote:
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 2

Offline

#7 2012-08-23 16:07:38

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,554

Re: Mineserver-git

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


All design goals must be phrased in such a way that it is hard to use them as slogans to justify stupidity.

Offline

#8 2012-08-23 16:25:42

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,502
Website

Re: Mineserver-git

Oops.  Yes. I got it to compile here, but that is a typo.  It is missing the -lrt and -lpthread.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#9 2012-08-23 19:52:20

tanrax
Member
Registered: 2012-08-11
Posts: 31

Re: Mineserver-git

Trilby wrote:

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 smile

Last edited by tanrax (2012-08-23 20:11:46)

Offline

#10 2012-08-23 20:09:54

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,502
Website

Re: Mineserver-git

I've editted and fixed the typo in my previous post which has my proposed solution that worked for me.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#11 2012-08-23 20:12:48

tanrax
Member
Registered: 2012-08-11
Posts: 31

Re: Mineserver-git

Trilby wrote:

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.

smile smile smile

Offline

#12 2012-08-23 20:21:49

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,502
Website

Re: Mineserver-git

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.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

Board footer

Powered by FluxBB