<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Sep 18, 2014 at 9:29 PM, Marko Käning <span dir="ltr"><<a href="mailto:mk-lists@email.de" target="_blank">mk-lists@email.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi guys,<br>
<br>
recently there was merge 268638c34e0b18db03931452e58b0e09c341fbcc<br>
bringing in code changing cmake/FindReadline.cmake which made me think<br>
now, that it could be causing this build failure on OSX.<br>
<br>
I wonder whether readline is now properly found on the OSX/CI system,<br>
as HAVE_FREE_HISTORY_ENTRY is obviously not defined anymore!<br>
<br>
The fallback free() can’t be properly found anywhere, at least on OSX<br>
using clang, even if I patch in “#include <stdlib.h>".<br>
<br>
But perhaps I am on the wrong track…<br>
<br>
Well, kalgebra isn’t functional because of it, at the moment. :-(<br>
<br>
Wondering what else I could do to help diagnose this than attaching the<br>
build log now.<br>
<br>
Greets,<br>
Marko<br>
<br>
<br><br>
<br>
On 17 Sep 2014, at 08:17 , Marko Käning <<a href="mailto:mk-lists@email.de">mk-lists@email.de</a>> wrote:<br>
<br>
> Building CXX object analitzaplot/CMakeFiles/AnalitzaPlot.dir/private/utils/marchingcubes.cpp.o<br>
> [ 65%] /Users/marko/WC/KDECI-builds/analitza/calgebra/main.cpp:157:3: error: no matching function for call to 'free'<br>
>                free(he->line);<br>
>                ^~~~<br>
> /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 &<br>
> void     free(void *);<br>
>         ^<br>
> Building CXX object analitzaplot/CMakeFiles/AnalitzaPlot.dir/private/abstractplotitem.cpp.o<br>
> 1 error generated.<br>
> make[2]: *** [calgebra/CMakeFiles/calgebra.dir/main.cpp.o] Error 1<br>
> make[1]: *** [calgebra/CMakeFiles/calgebra.dir/all] Error 2<br>
> make[1]: *** Waiting for unfinished jobs....<br>
<br><br></blockquote><div><br></div><div>You should be trying both analitza and kalgebra from master. Frameworks was merged to master yesterday night.</div><div><br></div><div>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</div><div><br></div><div>Aleix </div></div><br></div></div>