mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Augusto César Dias" <augusto.c.dias@gmail.com>
To: musl@lists.openwall.com
Subject: Problems with libc6-compat
Date: Fri, 8 Nov 2019 13:26:33 +0100	[thread overview]
Message-ID: <CALkt1Wc0Nu3nH9TKuQkjq2L7cSojTOQc6OVN8iieYw9SredJUw@mail.gmail.com> (raw)

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

Hello,

I'm trying to run my rust application on Alpine but I'm having problems
with either using musl as a target or using the compatibility layer for
glibc.

When I try to use from the libc6-compat I'm having this problem:


Error relocating my_app: __register_atfork: symbol not found
Error relocating my_app: __res_init: symbol not found


Is this a bug or this symbols are not at all supported by the compatibility
layer?


When I try to target musl, I have a different problem. I cannot compile my
application directly on musl, because some features from the rust compiler
are not supported. What I did was compiling on a debian image targeting
musl and moving my binary to my alpine image. It looks like even targeting
musl, the linker still uses some glibc variants at build time, which my
little experience with C doesn't help me being sure if this would be a
problem or not.

My application depends on glib2 which I installed through apk and when it
starts it fails with the following:

**
GLib-GObject:ERROR:../gobject/gtype.c:2743:g_type_register_static:
assertion failed: (static_quark_type_flags)
Aborted


I've trying to compile a C example directly in my alpine container and it
works in there, so that made me believe I'm having some problems with the
cross compilation/linking in my glibc container.

Any ideas on how can I solve this?


Best regards,

*Augusto César Dias*

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

             reply	other threads:[~2019-11-08 12:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-08 12:26 Augusto César Dias [this message]
2019-11-08 13:15 ` Szabolcs Nagy
2019-11-08 13:18   ` Augusto César Dias
2019-11-08 17:47     ` Rich Felker
2019-11-08 18:57       ` Augusto César Dias
2019-11-08 21:07         ` Johannes Brechtmann
2019-11-08 22:47           ` Augusto César Dias
2019-11-08 21:35         ` A. Wilcox

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=CALkt1Wc0Nu3nH9TKuQkjq2L7cSojTOQc6OVN8iieYw9SredJUw@mail.gmail.com \
    --to=augusto.c.dias@gmail.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).