On Friday 12 June 2009 14:54:37 Mary Ellen Foster wrote:
> I'm a co-maintainer of the SWI prolog package on Fedora, and I've been
> trouble shooting a problem where the latest 5.7.x versions don't build
> properly. The compiler (GCC 4.4.0) doesn't like the declaration of
> "strndup" in src/mkvmi.c -- it says:
> mkvmi.c:146: error: static declaration of 'strndup' follows
> non-static declaration
> The previous compiler (GCC 4.3.2) has no problem with this, so it's
> probably something new triggered in the latest version, for what it's
> worth.
>
> If I just comment out the declaration of strndup, the compilation
> proceeds successfully as far as I can tell. Why is this function there
> in the first place, though?
Not all C-libraries provide it. I've renamed it into my_strndup().
Thanks --- Jan
_______________________________________________
SWI-Prolog mailing list
SWI-Prolog@...
https://mailbox.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog