From owner-freebsd-ports@FreeBSD.ORG Tue Dec 14 18:08:07 2010 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5948A1065670; Tue, 14 Dec 2010 18:08:07 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-bw0-f49.google.com (mail-bw0-f49.google.com [209.85.214.49]) by mx1.freebsd.org (Postfix) with ESMTP id AAEF18FC0A; Tue, 14 Dec 2010 18:08:06 +0000 (UTC) Received: by bwz5 with SMTP id 5so1181561bwz.8 for ; Tue, 14 Dec 2010 10:08:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=tla147e+z0mVlZKsusZ0ypXazIH4pzo/RgpUr7mDEfk=; b=jptO5tkExtUPw/XZtqwCqBGjEW/lwqRGmojL59jTpyBd32InGBejJeHcw6GiJRYbVa LJruH4AcFULCuOGi4/CBDV3iHaylFI0woskw6lcpZ7LynyCaXJE9ptV4nW2VxlqPswdW wm4WtucD84tuIDn/BNj225mxqoeDxTiXMIuhA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=lv2WJPy/rOZiB7dUiljiPRx7YYr6Z6Vsq82pZN0iNu72f+8L0tMOQy0b6wbI4S/J5X b6vlHYaz4LpSEzsqpFTgA3xvS1tregFtL60jnVCeTN6kn1NF+Efdv5xdfjZ+q2+nwkPQ f43O4xclUjDox2QKhNllLcp/EPCLnS/T6dPFY= Received: by 10.204.46.210 with SMTP id k18mr2531449bkf.159.1292350085412; Tue, 14 Dec 2010 10:08:05 -0800 (PST) Received: from localhost ([217.114.211.20]) by mx.google.com with ESMTPS id p22sm122860bkp.21.2010.12.14.10.08.01 (version=SSLv3 cipher=RC4-MD5); Tue, 14 Dec 2010 10:08:03 -0800 (PST) From: Anonymous To: John Baldwin References: <201012141136.19307.jhb@freebsd.org> Date: Tue, 14 Dec 2010 21:07:01 +0300 In-Reply-To: <201012141136.19307.jhb@freebsd.org> (John Baldwin's message of "Tue, 14 Dec 2010 11:36:19 -0500") Message-ID: <867hfc1b5m.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: ports@freebsd.org, Steven Kreuzer Subject: Re: Use of devel/libreadline in ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Dec 2010 18:08:07 -0000 John Baldwin writes: > Is there a push for moving libreadline out of base and updating ports to use > libreadline from ports instead? The devel/gdb port currently has optional > support for this but it breaks gdb if you have a binutils port installed as > different parts of gdb are built against different bfd.h headers causing > segfaults when gdb tries to load symbols for a binary. The simplest fix is to > just remove the devel/libreadline support from the devel/gdb port if that is > ok to do. lang/gcc* search under LOCALBASE/include implicitly e.g. ports/136917. This enables --with-expat automatically when its headers are found. $ gcc45 -E -v - search starts here: LOCALBASE/include LOCALBASE/lib/gcc45/.../include LOCALBASE/lib/gcc45/.../include-fixed /usr/include End of search list. Can you try to replace -I${LOCALBASE}/include with -isystem${LOCALBASE}/include ? It should make GCC prefer ./../bfd/bfd.h over LOCALBASE/include/bfd.h.