Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help with boost and installing Robocup [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Despot Despondency
Apprentice
Apprentice


Joined: 14 Mar 2009
Posts: 176

PostPosted: Sat Apr 03, 2010 1:37 pm    Post subject: Help with boost and installing Robocup [SOLVED] Reply with quote

Hi,

I'm trying to install the Robocup 2D simulation server on my gentoo box, http://sourceforge.net/apps/mediawiki/sserver/index.php?title=Install.

I've installed the prerequisites and successfully run ./configure. However when I run make I get the following error

Code:

/usr/include/boost/system/error_code.hpp:209: undefined reference to `boost::system::get_generic_category()'
/usr/include/boost/system/error_code.hpp:214: undefined reference to `boost::system::get_generic_category()'
/usr/include/boost/system/error_code.hpp:215: undefined reference to `boost::system::get_generic_category()'
bodysender.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:209: undefined reference to `boost::system::get_generic_category()'
/usr/include/boost/system/error_code.hpp:214: undefined reference to `boost::system::get_generic_category()'
bodysender.o:/usr/include/boost/system/error_code.hpp:215: more undefined references to `boost::system::get_generic_category()' follow
collect2: ld returned 1 exit status
make[3]: *** [rcssserver] Error 1
make[3]: Leaving directory `/home/tom/Robocup/rcssserver-14.0.2/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/tom/Robocup/rcssserver-14.0.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tom/Robocup/rcssserver-14.0.2'
make: *** [all] Error 2


(There's more output prior to this but I believe this to be the important part). The error seems to be related to the boost libraries. I obtained my version of boost from the repository and it is recent enough for this application. Any ideas what I should do? TAI


Last edited by Despot Despondency on Sun Apr 04, 2010 4:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Sat Apr 03, 2010 3:36 pm    Post subject: Reply with quote

The program may require a specific boost version. eselect boost can be your friend.
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
few
Guru
Guru


Joined: 03 Mar 2008
Posts: 448

PostPosted: Sat Apr 03, 2010 8:16 pm    Post subject: Reply with quote

Either

1) your program misses an -lboost_system or -lboost_system-mt
or
2) the build system is mixing different boost header and library versions.

The full log would probably help. "eselect boost list" would be interesting too.
Back to top
View user's profile Send private message
Despot Despondency
Apprentice
Apprentice


Joined: 14 Mar 2009
Posts: 176

PostPosted: Sun Apr 04, 2010 4:00 pm    Post subject: Reply with quote

Thanks for the replies.

I've posted the whole output in pastebin http://pastebin.com/1YLiNf1s.

"eselect boost list" gave

Code:

Available boost versions:
  [1]   boost-1.35/default
  [2]   boost-1.41/default *


I'm going to try boost-1.35 and see if that helps. Any other suggestions would be appreciated.
Back to top
View user's profile Send private message
Despot Despondency
Apprentice
Apprentice


Joined: 14 Mar 2009
Posts: 176

PostPosted: Sun Apr 04, 2010 4:15 pm    Post subject: Reply with quote

OK, I've tried it with boost-1.35 and everything worked fine. Thanks for the help.
Back to top
View user's profile Send private message
few
Guru
Guru


Joined: 03 Mar 2008
Posts: 448

PostPosted: Sun Apr 04, 2010 4:32 pm    Post subject: Reply with quote

It's the second case.

> -lboost_filesystem-1_35 -lboost_system-1_35

The library versions are somehow hard coded (for linking) but not for the headers.
Back to top
View user's profile Send private message
Ivan Reche
n00b
n00b


Joined: 09 Aug 2005
Posts: 26

PostPosted: Thu Apr 08, 2010 1:54 am    Post subject: Reply with quote

Is there a way to make the ebuild aware of this need?
Back to top
View user's profile Send private message
few
Guru
Guru


Joined: 03 Mar 2008
Posts: 448

PostPosted: Thu Apr 08, 2010 7:48 pm    Post subject: Reply with quote

Ivan Reche wrote:
Is there a way to make the ebuild aware of this need?


That depends on what the build system is. Many try to detect boost, but fail for some reason. Those usually provide an option to set the boost include and library directory. If it doesn't provide such an option you could try to inject the paths into the CFLAGS/LDFLAGS. If it hard codes them in some file you'll need to patch it. The include path is /usr/include/boost-1_41/ and the library path is /usr/lib64/boost-1_41/ (or /usr/lib/boost-1_41/ if you are on x86)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum