OSX/CI: analitza fails to build on branch frameworks

Aleix Pol aleixpol at kde.org
Thu Sep 18 22:33:29 UTC 2014


On Thu, Sep 18, 2014 at 9:29 PM, Marko Käning <mk-lists at email.de> wrote:

> Hi guys,
>
> recently there was merge 268638c34e0b18db03931452e58b0e09c341fbcc
> bringing in code changing cmake/FindReadline.cmake which made me think
> now, that it could be causing this build failure on OSX.
>
> I wonder whether readline is now properly found on the OSX/CI system,
> as HAVE_FREE_HISTORY_ENTRY is obviously not defined anymore!
>
> The fallback free() can’t be properly found anywhere, at least on OSX
> using clang, even if I patch in “#include <stdlib.h>".
>
> But perhaps I am on the wrong track…
>
> Well, kalgebra isn’t functional because of it, at the moment. :-(
>
> Wondering what else I could do to help diagnose this than attaching the
> build log now.
>
> Greets,
> Marko
>
>
>
>
> On 17 Sep 2014, at 08:17 , Marko Käning <mk-lists at email.de> wrote:
>
> > Building CXX object
> analitzaplot/CMakeFiles/AnalitzaPlot.dir/private/utils/marchingcubes.cpp.o
> > [ 65%] /Users/marko/WC/KDECI-builds/analitza/calgebra/main.cpp:157:3:
> error: no matching function for call to 'free'
> >                free(he->line);
> >                ^~~~
> > /usr/include/stdlib.h:143:7: note: candidate function not viable: no
> known conversion from 'const char *' to 'void *' for 1st argument; take the
> address of the argument with &
> > void     free(void *);
> >         ^
> > Building CXX object
> analitzaplot/CMakeFiles/AnalitzaPlot.dir/private/abstractplotitem.cpp.o
> > 1 error generated.
> > make[2]: *** [calgebra/CMakeFiles/calgebra.dir/main.cpp.o] Error 1
> > make[1]: *** [calgebra/CMakeFiles/calgebra.dir/all] Error 2
> > make[1]: *** Waiting for unfinished jobs....
>
>
>
You should be trying both analitza and kalgebra from master. Frameworks was
merged to master yesterday night.

As per why it's not working, maybe you can try to change the line to
something like free((void*) he->line)? I have no idea why it says it's a
const char... Or maybe just comment out the free :D

Aleix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20140919/21f51436/attachment.html>


More information about the kde-edu mailing list