From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4692 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Build on linux 2.6 and run on linux 2.4? Date: Fri, 21 Mar 2014 12:40:07 -0400 Message-ID: <20140321164007.GI26358@brightrain.aerifal.cx> References: <20140320231412.GG26358@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1395420024 21677 80.91.229.3 (21 Mar 2014 16:40:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Mar 2014 16:40:24 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4696-gllmg-musl=m.gmane.org@lists.openwall.com Fri Mar 21 17:40:34 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1WR2UZ-00027D-VZ for gllmg-musl@plane.gmane.org; Fri, 21 Mar 2014 17:40:24 +0100 Original-Received: (qmail 4050 invoked by uid 550); 21 Mar 2014 16:40:23 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 4039 invoked from network); 21 Mar 2014 16:40:22 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4692 Archived-At: On Fri, Mar 21, 2014 at 09:02:09AM -0400, John Mudd wrote: > Thanks for your reply. > > I ran a test using an example thread app. I compiled the cond1.c example > from http://www.yolinux.com/TUTORIALS/LinuxTutorialPosixThreads.html using > musl-gcc on Ubuntu 13.04, 2.6 kernel obviously. The executable runs on 2.6 > as well as 2.4. I actually expected some kind of failure on 2.4. Did I pick > a poor example or am I not understanding still? Yes, I did too; the intent is that pthread_create is supposed to return failure on kernels where things are not going to work right (i.e. clone does not support the necessary flags to provide threads); this is in turn supposed to result from a failure in pthread_self. Could you provide the output of running the program under strace on 2.4? Rich