Date: Thu, 22 Dec 2005 16:23:04 -0800 From: Julian Elischer <julian@elischer.org> To: Steven Doerfler <steven@lugaru.com> Cc: freebsd-threads@freebsd.org Subject: Re: pthread binary compatibility with FreeBSD 4 Message-ID: <43AB4368.20203@elischer.org> In-Reply-To: <3.0.5.32.20051222180129.0222e8c0@mailer> References: <3.0.5.32.20051222180129.0222e8c0@mailer>
next in thread | previous in thread | raw e-mail | index | archive | help
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 >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" > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43AB4368.20203>