From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 22 15:37:17 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9284916A4CE for ; Tue, 22 Feb 2005 15:37:17 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CAD343D41 for ; Tue, 22 Feb 2005 15:37:17 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.1) id j1MFb8wq028172; Tue, 22 Feb 2005 09:37:08 -0600 (CST) (envelope-from dan) Date: Tue, 22 Feb 2005 09:37:08 -0600 From: Dan Nelson To: Dmitry Agaphonov Message-ID: <20050222153708.GD253@dan.emsphone.com> References: <20050222092713.43ed42c3.rzhe@agava.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050222092713.43ed42c3.rzhe@agava.com> X-OS: FreeBSD 5.3-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.8i cc: freebsd-hackers@freebsd.org Subject: Re: Kernel threads & libc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 15:37:17 -0000 In the last episode (Feb 22), Dmitry Agaphonov said: > I'm forced to implement kernel threads in application not via > LinuxThreads library (because it doesn't compile on FreeBSD 4.10 with > gcc-3.4.4, too much errors while processing /usr/src code), but using > rfork_thread(3). Why not build the LinuxThreads port with the system's compiler? It's not C++ code, so you can link it to code compiled with any compiler (just like libc, which is built with gcc 2.95 as well). Just because your application may require gcc 3.4 doesn't mean that all supporting libraries have to be built with it too. -- Dan Nelson dnelson@allantgroup.com