From owner-freebsd-ports@FreeBSD.ORG Wed Mar 19 11:24:02 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5EA1106564A for ; Wed, 19 Mar 2008 11:24:02 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id A423D8FC28 for ; Wed, 19 Mar 2008 11:24:02 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 7F3ED1CC060; Wed, 19 Mar 2008 04:24:02 -0700 (PDT) Date: Wed, 19 Mar 2008 04:24:02 -0700 From: Jeremy Chadwick To: "M. Yu. Brazhnikov" Message-ID: <20080319112402.GA12012@eos.sc1.parodius.com> References: <200803191333.15447.makc@issp.ac.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200803191333.15447.makc@issp.ac.ru> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-ports@freebsd.org Subject: Re: linkage fails on freebsd <7 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: Wed, 19 Mar 2008 11:24:02 -0000 On Wed, Mar 19, 2008 at 01:33:15PM +0300, M. Yu. Brazhnikov wrote: > The port I maintaint fails on link stage on freebsd 5.x and 6.x (you can find > build log at miwi tinderbox > http://head.miwibox.org/tb/index.php?action=describe_port&id=2417) > In short it complains on undefined function from libc. I've compared work dirs > on 6.x and 7.x and found no essential difference. The only note -- if I pass > LDFLAGS=-shared-libgcc to 'make' then the build goes fine. > > Could someone more experienced clarify the situation? My guess is that the problem is because gcc42 is involved with an older FreeBSD. RELENG_5 uses gcc 2.95.2 by default, while RELENG_6 uses gcc 3.4.6. RELENG_7 uses 4.2.1. Therefore, I'm betting that when you use a non-native gcc on an older platform, it *expects* you to rely on libgcc (which is a shared library) to gain access to all of the functions which are missing. Is gcc 4.2 really required for that port to build? -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |