From owner-freebsd-hackers@FreeBSD.ORG Fri May 27 12:02:37 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B743410656A4 for ; Fri, 27 May 2011 12:02:37 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 8E3D38FC0A for ; Fri, 27 May 2011 12:02:37 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 2941346B0A; Fri, 27 May 2011 08:02:37 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id BE8648A04F; Fri, 27 May 2011 08:02:36 -0400 (EDT) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Fri, 27 May 2011 07:43:32 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <4DDE5762.8060901@FreeBSD.org> <87pqn557so.fsf@gmail.com> In-Reply-To: <87pqn557so.fsf@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201105270743.32725.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Fri, 27 May 2011 08:02:36 -0400 (EDT) Cc: Raphael Kubo da Costa Subject: Re: Problem with running simple pthreads program under gdb-7.2 (Invalid selected thread) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 12:02:37 -0000 On Thursday, May 26, 2011 8:03:19 pm Raphael Kubo da Costa wrote: > Andriy Gapon writes: > > > on 26/05/2011 16:33 John Baldwin said the following: > >> On Thursday, May 26, 2011 3:37:13 am Andriy Gapon wrote: > >>> on 26/05/2011 03:35 Raphael Kubo da Costa said the following: > >>>> If I compile the port myself, I can't run any binary (PR ports/152896, > >>>> which has been unanswered despite my efforts): > >>>> > >>>> Reading symbols from /usr/local/bin/gdb72...I'm sorry, Dave, I can't > >>>> do that. Symbol format `elf64-x86-64-freebsd' unknown. > >>>> > >>> > >>> This is a somewhat known issue that John was going to fix a while ago. > >> > >> Actually, it's not really fixable if you have libreadline installed from ports > >> and binutils installed from ports. I'd like to just remove the hack to use > >> libreadline from ports if possible. > > > > I referred to this option as a fix. > > Thanks, removing readline from ports worked like a charm after I > recompiled devel/gdb. Installing it from the package still doesn't work, > though. > > Shouldn't the hack in the port be reversed, ie. if readline from ports > is installed the port is marked as BROKEN? Well, if you have readline from ports but don't have binutils in ports it actually works ok. No idea why the package built in the package cluster is busted though. -- John Baldwin