From owner-freebsd-questions@FreeBSD.ORG Tue Feb 19 20:56:29 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CE62376A for ; Tue, 19 Feb 2013 20:56:29 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id A633178A for ; Tue, 19 Feb 2013 20:56:29 +0000 (UTC) Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.41]) by be-well.ilk.org (Postfix) with ESMTP id 089F233C1D; Tue, 19 Feb 2013 15:56:23 -0500 (EST) Received: by lowell-desk.lan (Postfix, from userid 1147) id D661439829; Tue, 19 Feb 2013 15:56:22 -0500 (EST) From: Lowell Gilbert To: davidcollins001@gmail.com Subject: Re: building libtorrent error: 'u_int16_t' does not name a type References: <51235f62.tSX2fGrd2jyaPQ8q%davidcollins001@gmail.com> Date: Tue, 19 Feb 2013 15:56:22 -0500 In-Reply-To: <51235f62.tSX2fGrd2jyaPQ8q%davidcollins001@gmail.com> (David Collins's message of "Tue, 19 Feb 2013 11:17:54 +0000") Message-ID: <44d2vwm39l.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2013 20:56:29 -0000 David Collins 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.