Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Feb 2013 15:56:22 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        davidcollins001@gmail.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: building libtorrent error: 'u_int16_t' does not name a type
Message-ID:  <44d2vwm39l.fsf@lowell-desk.lan>
In-Reply-To: <51235f62.tSX2fGrd2jyaPQ8q%davidcollins001@gmail.com> (David Collins's message of "Tue, 19 Feb 2013 11:17:54 %2B0000")
References:  <51235f62.tSX2fGrd2jyaPQ8q%davidcollins001@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
David Collins <davidcollins001@gmail.com> writes:

> I'm trying to build libtorrent/rtorrent using gcc 4.8. The reason I'm
> using gcc 4.8 rather than the version in base is because there is
> apparently a bug in gcc 4.2 - http://libtorrent.rakshasa.no/ticket/926 

You do realize that the bug was worked around in the libtorrent sources
as well, right? So that the using the port without tinkering with its
compiler usage will work just fine, and has done for many years?

> I installed gcc 4.8 based on these instructions
> http://www.freebsd.org/doc/en/articles/custom-gcc/article.html,
> replacing 44 for 48 where neccessary. While building I get the
> errors below.
>
> Have I missed something while installing gcc 4.8? Or does anyone have an ideas
> about how to fix this?

Well, the errors look like stdint.h isn't getting included properly. Or
that's what I'd say in a C file; C++ has some differences in this area,
although I think most implementations support the C-style types. This
could well be a major porting exercise. My advice would be: don't do
that -- it's what ports are for in the first place.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44d2vwm39l.fsf>