Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 0A93A781029 for ; Thu, 22 Sep 2022 21:46:45 +0000 (UTC) MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ayaya.dev; s=key1; t=1663883204; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7KRCSbLH84dAFqZVUeiemI4Xcg1s1VNJ85IjKepqg30=; b=ZHTIORaHKTfn48rRgXY3+xMiQ5wCREGpD4c1PbZkaRZeWSsSQptQL+qT3QuOvfu4dX+NeQ e4mHwwuqZ3BufXhrKBMYZtMAhVraHwRONmtHZelqu1wlsQxD336Vajk5ZGspGgxjYSDdrv 1c760N5GJ+GCsv5lxAWeV19E3LeiPmY= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 22 Sep 2022 23:46:41 +0200 Message-Id: To: "Riccardo Mottola" , "alpine-user" Subject: Re: iconv detection issues X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "alice" References: <34652592-dd13-dca0-40a1-18eb43101bd9@libero.it> <4473ae75-aa82-48a3-c7dc-833853304428@libero.it> In-Reply-To: <4473ae75-aa82-48a3-c7dc-833853304428@libero.it> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: ayaya.dev On Thu Sep 22, 2022 at 11:40 PM CEST, Riccardo Mottola wrote: > Hi Alice, > > alice wrote: > >> conftest.c:235:48: warning: comparison between pointer and integer > >> =C2=A0 235 | { return iconv_open("UTF-8//TRANSLIT","ASCII") =3D=3D -1 = ? 1 : 0; } > > the TRANSLIT extension is not supported by musl iconv. > > see: https://wiki.musl-libc.org/functional-differences-from-glibc.html#= iconv > > > > so, the configure test fails. if the program hard-requires this > > support, then you can try use gnu-libiconv(-dev), and see how to link > > that (i don't know if it's actually the same api/kind of thing..) by > > modifying the configure files, passing flags, etc. > > very good, indeed, using gnu-libiconv-dev and then fiddling with the > include headers, made configure work. > Linking should be fine, because the library is installed then in the > usual place /usr/local/lib > > However, linking fails. At a first glance, not only iconv, but symbols > of almost all libraries are missing: > ... > /usr/lib/gcc/i586-alpine-linux-musl/11.2.1/../../../../i586-alpine-linux-= musl/bin/ld: > /home/multix/code/libs-base/Source/GSTLS.m:2314: undefined reference to > `gnutls_x509_crt_init' > > ... > ression.m:744: undefined reference to `uregex_close_71' > /usr/lib/gcc/i586-alpine-linux-musl/11.2.1/../../../../i586-alpine-linux-= musl/bin/ld: > /home/multix/code/libs-base/Source/NSRegularExpression.m:744: undefined > reference to `uregex_lookingAt_71' > ... > /home/multix/code/libs-base/Source/GSFileHandle.m:298: undefined > reference to `gzread' > /usr/lib/gcc/i586-alpine-linux-musl/11.2.1/../../../../i586-alpine-linux-= musl/bin/ld: > ../Source/./obj/libgnustep-base.a(GSFileHandle.m.o): in function > `_i_GSFileHandle__write_length_': > > > looks to me like ICU, gzip, gnutls... like all linking failing! wow a > hint where this could be different from other linux? no idea, but it sounds like the thing you are compiling forgets to link everything at all, or expects to only load it at runtime in some fashion and intentionally doesn't link it (iirc something about musl not supporting this lazy loading? but i don't know much about it:) ). i'd guess manually adding -lgnutls etc etc would fix them by linking correctly at build time? (or, your adjustments to the build broke all of that linking somehow) > > Riccardo