SImple C program doesn't compile on Alpine 3.4
I’m trying to compile the following one-line c program, `try.c`:-
`#include <stdlib.h>` (there’s a terminating newline).
Using the command
This gives an error:-
try.c:1:0: error: expected identifier or ‘(’ at end of input
#include <stdlib.h> ^
The `cc` in this case is gcc 5.3.0, installed as an apk.
Is this something to do with the fortify source in `/usr/include/fortify`? Is there a `-D` that is expected by the system compiler?
This failure currently subtly breaks perl-cross.
(from redmine: issue id 5899, created on 2016-07-14, closed on 2016-07-25)
- Revision ff1bd55e by Natanael Copa on 2016-07-14T14:50:39Z:
main/fortify-headers: oncly include limits.h when needed this solves an issue with gcc and __extension__. ref #5899
- Revision 2b5c87db by Natanael Copa on 2016-07-14T14:54:35Z:
main/fortify-headers: apply the patch ref #5899
- Revision 465fd501 by Natanael Copa on 2016-07-15T09:03:53Z:
main/fortify-headers: upgrade to 0.8 ref #5899
- Revision 2a0114f4 by Natanael Copa on 2016-07-15T09:05:08Z:
main/fortify-headers: upgrade to 0.8 fixes #5899