mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: Thierry Gayet <thierry.gayet@dazzl.tv>
Cc: musl@lists.openwall.com
Subject: Re: [musl] missing symbol from musl libc
Date: Wed, 31 Mar 2021 12:15:53 -0400	[thread overview]
Message-ID: <20210331161552.GG25400@brightrain.aerifal.cx> (raw)
In-Reply-To: <CAPjH-Lk3dATKeAKXgCiB8yxqR+6Z7EX49auVqafr_=MMKEhXGw@mail.gmail.com>

On Wed, Mar 31, 2021 at 05:36:38PM +0200, Thierry Gayet wrote:
> Hi,
> 
> I use musl within alpine.
> 
> in this environment I have an open source package based on Chromium (in C /
> C ++) which needs to be recompiled.
> 
> The compilation step goes well but at the link step, the linker cannot find
> certain symbols from the libc:
> hread_getattr_np@GLIBC_2.2.5'
> /usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld:
> .../third_party/cef/cef_binary_75.0.6+g90ecd35+chromium-75.0.3770.80_linux64/Release/libcef.so:
> undefined reference to `snd_pcm_sw_params_set_avail_min@ALSA_0.9'
> /usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../x86_64-alpine-linux-musl/bin/ld:
> .../third_party/cef/cef_binary_75.0.6+g90ecd35+chromium-75.0.3770.80_linux64/Release/libcef.so:
> undefined reference to `mbsrtowcs@GLIBC_2.2.5'
> ...

I'm not 100% sure because everything around the Chromium build process
is so obfuscated and contrary to reasonable build practices, but it
looks like you just have a binary library someone shipped that was
linked against glibc, and that's using glibc symbol versioning. For
both of those reasons it's very unlikely to be suitable to link with
musl. If you can build it from source, for a musl-based target, I
would expect the problems to go away.

Rich

      reply	other threads:[~2021-03-31 16:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-31 15:36 Thierry Gayet
2021-03-31 16:15 ` Rich Felker [this message]

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=20210331161552.GG25400@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    --cc=thierry.gayet@dazzl.tv \
    /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).