Received: from out1.migadu.com (out1.migadu.com [91.121.223.63]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 920C9780DCD for ; Wed, 21 Sep 2022 13:53:23 +0000 (UTC) MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ayaya.dev; s=key1; t=1663768402; 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=Z0nEnIN27cgJfP/6W+4ktYFpu13QACBJvEzslXIELzE=; b=oebv227NfGQQx1sWhQKK0oGKYo3pe1fgTeAr9/XmWSViYoQmxO4XrzH1gKjf2E35W07U2h /aJx1OKkNSiMt87RfPj72mRDVX5C18aftlATWw74lUuW9OeDexgM4hWjKy0lLhM0fBIOH+ uUn5764KYduzjrNqU4ERJFZ40ubLbpQ= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 21 Sep 2022 15:53:15 +0200 Message-Id: Subject: Re: iconv detection issues X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "alice" To: "Riccardo Mottola" , "alpine-user" References: <34652592-dd13-dca0-40a1-18eb43101bd9@libero.it> In-Reply-To: <34652592-dd13-dca0-40a1-18eb43101bd9@libero.it> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: ayaya.dev On Tue Sep 20, 2022 at 10:12 PM CEST, Riccardo Mottola wrote: > Hi, > > I am trying to build GNUstep Base on alpine linux, right now on 3.16. I > don't remember if I had issues on previous versions of Alpine Linux, I > don't think so, but also GNUstep might have changed since the last time > I tried. > > configure:11518: checking iconv support > configure:11538: gcc -o conftest -g -O2=C2=A0 -I/Local/Library/Headers > -I/Local/Library/Headers -I/System/Library/Headers=C2=A0=C2=A0 -shared-li= bgcc > -L/Local/Library/Libraries -L/Local/Library/Libraries > -L/System/Library/Libraries conftest.c -lffi=C2=A0 -lz -lrt -ldl=C2=A0 -l= pthread > -lz >&5 > conftest.c: In function 'main': > 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#icon= v 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. > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 ^~ > configure:11538: $? =3D 0 > configure:11538: ./conftest > configure:11538: $? =3D 1 > > Why does it fail? > > On a "standard" linux machine I see: > > configure:11518: checking iconv support > configure:11538: gcc -o conftest -g -O2=C2=A0 -I/Local/Library/Headers > -I/Local/Library/Headers -I/System/Library/Headers > -I/Local/Library/Headers -I/usr/lib64/libffi/include=C2=A0=C2=A0 -shared-= libgcc > -L/Local/Library/Libraries -L/Local/Library/Libraries > -L/System/Library/Libraries -L/Local/Library/Libraries conftest.c -lffi= =C2=A0 > -lbfd -lz -liberty -lrt -ldl=C2=A0 -lpthread -lz >&5 > conftest.c: In function 'main': > conftest.c:246:48: warning: comparison between pointer and integer > =C2=A0 246 | { return iconv_open("UTF-8//TRANSLIT","ASCII") =3D=3D -1 ? 1= : 0; } > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 ^~ > configure:11538: $? =3D 0 > configure:11538: ./conftest > configure:11538: $? =3D 0 > configure:11543: result: yes, in libc > > > So I get the same warning...=C2=A0 but different execution. > what could be specific to alpine linux here? > > > Riccardo