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?
Thanks for any suggestions,
MEF
--
Mary Ellen Foster --
http://homepages.inf.ed.ac.uk/mef/ICCS, School of Informatics, University of Edinburgh
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
_______________________________________________
SWI-Prolog mailing list
SWI-Prolog@...
https://mailbox.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog