Re: kdev-python not compiling cleanly on Alpine Linux Py_ssize_t due to musl?
Björn Strömberg <[email protected]> Tue, 2 Jan 2024 05:22:24 +0100
| Newsgroups | gmane.comp.kde.devel.kdevelop |
|---|---|
| Message-ID | <CAHo5mS0Fmmi-0QWtbc7LbCNDh=nWJf4O3jqwWVW43iWN=OypTA@mail.gmail.com> |
--000000000000238c3e060deed9f3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Sven, yes that was the header I was expecting was the problem last night.. added it on row 1 in asttransformer.cpp fixes the issue, now its compiling again. since it was a missing symbol, it has to be before asttransformer.h which feels a bit smelly.. there is also a few warnings about deprecations. is this something that is wanted to be fixed? i could roll this up in a quick merge request on invent.kde.org since i need to create the patch files via git for the packaging anyway. On Tue, Jan 2, 2024 at 1:28=E2=80=AFAM Sven Brauch <mail-ITmcY+a7/[email protected]> wro= te: > Hi, > > On 01.01.24 22:23, Bj=C3=B6rn Str=C3=B6mberg wrote: > > currently the problem is that compilation fails of asttransformer.cpp o= n > > pyport.h and unknown type ssize_t in this block of the header.. > > > > this sounds like something that might be related to Alpine Linux using > > musl as its libc, > > yes, that sounds related, at least a quick google search shows similar > patches to other projects to make them build with musl. Try adding > > #include <sys/types.h> > > in asttransformer.cpp. Does that work? If yes, we can certainly fix that > upstream. > > Greetings, > Sven > --000000000000238c3e060deed9f3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hello Sven,<div><br></div><div>yes that was the header I w= as expecting was the problem last night..</div><div><br></div><div>added it= on row 1 in asttransformer.cpp fixes the issue, now its compiling again. s= ince it was a missing symbol, it has to be before asttransformer.h which fe= els a bit smelly..</div><div><br></div><div>there is also a few warnings ab= out deprecations. is this something that is wanted to be fixed?=C2=A0</div>= <div>i could roll this up in a quick merge request on <a href=3D"http://inv= ent.kde.org">invent.kde.org</a> since i need to create the patch files via = git for the packaging anyway.</div><div><br></div><div><br></div></div><br>= <div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Ja= n 2, 2024 at 1:28=E2=80=AFAM Sven Brauch <<a href=3D"mailto:mail@svenbra= uch.de">mail-ITmcY+a7/[email protected]</a>> wrote:<br></div><blockquote class=3D"gma= il_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,2= 04,204);padding-left:1ex">Hi,<br> <br> On 01.01.24 22:23, Bj=C3=B6rn Str=C3=B6mberg wrote:<br> > currently the problem is that compilation fails of asttransformer.cpp = on <br> > pyport.h and unknown type ssize_t in this block of the header..<br> =C2=A0><br> > this sounds like something that might be related to Alpine Linux using= <br> > musl as its libc,<br> <br> yes, that sounds related, at least a quick google search shows similar <br> patches to other projects to make them build with musl. Try adding<br> <br> #include <sys/types.h><br> <br> in asttransformer.cpp. Does that work? If yes, we can certainly fix that <b= r> upstream.<br> <br> Greetings,<br> Sven<br> </blockquote></div> --000000000000238c3e060deed9f3--