mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Short, Todd" <tshort@akamai.com>
To: "musl@lists.openwall.com" <musl@lists.openwall.com>
Subject: setcontext/getcontext/makecontext missing?
Date: Thu, 4 Feb 2016 14:09:30 +0000	[thread overview]
Message-ID: <87199830-7260-4E33-B3A6-BE15AF610BCE@akamai.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 875 bytes --]

Hi,

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:

GLIBC_2.0 setcontext
GLIBC_2.1 getcontext
GLIBC_2.1 makecontext

Since the functions are declared, is there any intent to put them into musl?

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.

This is as of musl:master:47314f1 and openssl:master:4c35c93


Thanks,

--
-Todd Short
// tshort@akamai.com<mailto:tshort@akamai.com>
// "One if by land, two if by sea, three if by the Internet."


[-- Attachment #2: Type: text/html, Size: 2541 bytes --]

             reply	other threads:[~2016-02-04 14:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-04 14:09 Short, Todd [this message]
2016-02-04 14:54 ` Szabolcs Nagy
2016-02-04 15:41   ` Rich Felker
2016-02-04 16:22     ` u-uy74
2016-02-04 17:01       ` Szabolcs Nagy
2016-02-05  9:21         ` u-uy74
2016-02-04 19:24       ` Rich Felker
2016-02-05  9:58         ` u-uy74
2016-02-07  5:20           ` Justin Cormack
2016-02-07 10:05             ` u-uy74

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87199830-7260-4E33-B3A6-BE15AF610BCE@akamai.com \
    --to=tshort@akamai.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).