From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9258 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: setcontext/getcontext/makecontext missing? Date: Thu, 4 Feb 2016 15:54:09 +0100 Message-ID: <20160204145409.GB9915@port70.net> References: <87199830-7260-4E33-B3A6-BE15AF610BCE@akamai.com> 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 1454597673 25716 80.91.229.3 (4 Feb 2016 14:54:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Feb 2016 14:54:33 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9271-gllmg-musl=m.gmane.org@lists.openwall.com Thu Feb 04 15:54:26 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1aRLId-0001jd-Az for gllmg-musl@m.gmane.org; Thu, 04 Feb 2016 15:54:23 +0100 Original-Received: (qmail 8169 invoked by uid 550); 4 Feb 2016 14:54:21 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 8146 invoked from network); 4 Feb 2016 14:54:20 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: <87199830-7260-4E33-B3A6-BE15AF610BCE@akamai.com> User-Agent: Mutt/1.5.24 (2015-08-30) Xref: news.gmane.org gmane.linux.lib.musl.general:9258 Archived-At: * Short, Todd [2016-02-04 14:09:30 +0000]: > > It appears that setcontext/getcontext/makecontext are declared in ./include/ucontext.h, but there???s no definitions for them in musl. These three functions are part of libc/glibc.so: > these are deprecated posix apis. > Since the functions are declared, is there any intent to put them into musl? > they have unclear semantics and only possible to implement in asm (hence it is a significant effort to add them). > I ran into this when attempting to compile OpenSSL with musl. In the OpenSSL master branch, I???m able to do: > > CC=musl-gcc ./config > make depend > make > > However, ld fails because there is an undefined reference to setcontext, getcontext and makecontext. This is new async functionality in OpenSSL that uses these APIS. > imho that's an openssl bug. if they really need the *context apis, then use adequate (link-time) configure check for them. but looking at http://git.openssl.org/?p=openssl.git;a=commit;h=a3667c316ae60ef454fb804221c3ca44af30a9aa this async lib is probably misguided, but they can implement the api with pthreads in a portable way. > This is as of musl:master:47314f1 and openssl:master:4c35c93 > > > Thanks, > > -- > -Todd Short > // tshort@akamai.com > // "One if by land, two if by sea, three if by the Internet." >