From owner-freebsd-threads@FreeBSD.ORG Fri Dec 23 00:27:43 2005 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 88AF116A41F for ; Fri, 23 Dec 2005 00:27:43 +0000 (GMT) (envelope-from julian@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 575FB43D62 for ; Fri, 23 Dec 2005 00:27:42 +0000 (GMT) (envelope-from julian@elischer.org) Received: from unknown (HELO [10.251.17.229]) ([10.251.17.229]) by a50.ironport.com with ESMTP; 22 Dec 2005 16:27:41 -0800 X-IronPort-Anti-Spam-Filtered: true Message-ID: <43AB447D.7050300@elischer.org> Date: Thu, 22 Dec 2005 16:27:41 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.11) Gecko/20050727 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Julian Elischer References: <3.0.5.32.20051222180129.0222e8c0@mailer> <43AB4368.20203@elischer.org> In-Reply-To: <43AB4368.20203@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Steven Doerfler , freebsd-threads@freebsd.org Subject: Re: pthread binary compatibility with FreeBSD 4 X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2005 00:27:43 -0000 Julian Elischer wrote: > Steven Doerfler wrote: > >> I need to build a binary under FreeBSD 5.4 that will run under >> FreeBSD 4.11 >> without recompiling. Dynamically linked binaries are out since FreeBSD >> 4.11 lacks the appropriate libraries, but a statically linked binary >> from >> FreeBSD 5.4 seems to work fine under 4.11, as long as it doesn't link >> with >> a threading library. Linking with -lpthread or -pthread produces an >> error >> immediately at startup: >> >> > > make a 4.11 based jail or chroot and compile there using 4.11 tools to say more.. binaries compiled on newer systems are not guarenteed to run on older systems, where the reverse is a design goal. so compile on the oilder system rather then the newer system. (also, usr libc_r instead of libpthread if you REALLY must do this.) > >> Fatal error 'Can't allocate initial kse.' at line 267 in file >> /usr/src/lib/libpthread/thread/thr_init.c (errno = 45) >> Segmentation fault (core dumped) >> >> I'm guessing this is because FreeBSD 4.11 lacks KSE's, and support >> for such >> older kernels has been removed from pthread? >> >> Is there any workaround for this? Maybe a threading library that >> doesn't >> depend on KSE's and works under 4.11 too? (I tried libc_r and libthr >> briefly but without success.) Or a way to build a version of pthread >> that >> doesn't use KSE's? Or is there a way to build with FreeBSD 4.11 >> libraries >> under FreeBSD 5.4? >> >> Thanks for any suggestions. >> >> Steven Doerfler >> >> _______________________________________________ >> freebsd-threads@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-threads >> To unsubscribe, send any mail to >> "freebsd-threads-unsubscribe@freebsd.org" >> >> > _______________________________________________ > freebsd-threads@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > To unsubscribe, send any mail to > "freebsd-threads-unsubscribe@freebsd.org"