From an email to dev@apr.apache.org: cpp on sinix cannot process .h files. This affects the line below in the top level makefile: $(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) export_vars.h | sed -e 's/^\#[^!]*//' | sed -e '/^$$/d' >> $@ Given export_vars.h only contained: apr_month_snames apr_day_snames I changed this line to: cat export_vars.h | sed -e 's/^\#[^!]*//' | sed -e '/^$$/d' >> $@ which got me past this.
BTW, the compiler I was using was: bash-2.04$ pkginfo -l CDSDEV PKGINST: CDSDEV NAME: ReliantUNIX C Compiler ( MIPS ) CATEGORY: application ARCH: R3000 VERSION: 2.0A00 LOAD: 07 VENDOR: Siemens AG PSTAMP: pgtd0946981116114031 INSTDATE: Mar 13 2002 04:57 PM STATUS: completely installed FILES: 76 installed pathnames 24 shared pathnames 1 linked files 23 directories 21 executables 24083 blocks used (approx)
If you replace export_vars.h with export_vars.c every in the Makefile, does that work? I don't see any reason why this file has to be a .h not a .c...
s/export_vars.h/export_vars.c/ works fine as cpp can process .c files but not .h files: bash-2.04$ cat xx.h #define dave fred bash-2.04$ cat xx.c #include "xx.h" main() { printf("hello\n"); } bash-2.04$ cc -E xx.h cc: [warning]: CDR9971 unknown file 'xx.h' ignored cc: [fatal]: CDR9982 missing compilable files bash-2.04$ cc -E xx.c #line 1 "xx.c" #line 1 "xx.h" #line 2 "xx.c" main() { printf("hello\n"); }
OK thanks Martin, I committed that and will backport it for the next 0.9.x release.