From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14911 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Problems with libc6-compat Date: Fri, 8 Nov 2019 14:15:11 +0100 Message-ID: <20191108131509.GB25646@port70.net> References: Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="43017"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Augusto =?utf-8?B?Q8Opc2Fy?= Dias To: musl@lists.openwall.com Original-X-From: musl-return-14927-gllmg-musl=m.gmane.org@lists.openwall.com Fri Nov 08 14:15:27 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1iT46n-000B0Z-GX for gllmg-musl@m.gmane.org; Fri, 08 Nov 2019 14:15:25 +0100 Original-Received: (qmail 5823 invoked by uid 550); 8 Nov 2019 13:15:23 -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 5805 invoked from network); 8 Nov 2019 13:15:22 -0000 Mail-Followup-To: musl@lists.openwall.com, Augusto =?utf-8?B?Q8Opc2Fy?= Dias Content-Disposition: inline In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:14911 Archived-At: * Augusto C=C3=A9sar Dias [2019-11-08 13:26:33 += 0100]: > My application depends on glib2 which I installed through apk and when it > starts it fails with the following: >=20 > ** > GLib-GObject:ERROR:../gobject/gtype.c:2743:g_type_register_static: > assertion failed: (static_quark_type_flags) > Aborted there is at least one known glibc quark bug https://gitlab.alpinelinux.org/alpine/aports/blob/master/main/glib/0001-gqu= ark-fix-initialization-with-c-constructors.patch but that should be fixed in alpine, and in recent musl it should work even without patching, unless this is static linking. > 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. >=20 > Any ideas on how can I solve this? why do you need to cross compile? building natively on a musl based distro where all dependencies are correctly built and packaged should be much more reliable.