When trying to run code that uses the sgml2pl module on MacOS X, I get an error trying to compile the module due to a call to strdup on line 5232 of the file: packages/sgml/cc/parser.c. I believe this has to do with C99 compliance since strdup is a POSIX function.
Adding the following line after the #include directives solves the problem for me, although I haven't tested it in other OSes:
extern char strdup(const char);
Let me know if I can provide further feedback.
I realized after posting that asterisks lead to style and I am unable to edit, the code I actually added is as follows:
Hi Tuncay,
Thanks for the fix. It breaks the windows compile, since it seems windows has strdup as a macro.
I tried compiling on linux, but couldn't figure out how to compile it. The makefile in sgml package doesn't seem to work for me. So, anyway, I've conditioned your change using our DARWIN flag (the flag for MACOS).
Thanks!
on linux and on mac it compiles when you do
[sgml].
--
--- michael
Related
Bugs: #251