Dear admins,

when changing changing some elements of the setup, like for instance disabling the comments web plugin on http://po-test.branchable.com, ikiwiki crashes with the following error:

What a strange failure. I've put in a workaround, for now.

We recently upgraded branchable to ikiwiki 3.20100915, which stopped setting PATH. Apparently gcc fails like this if PATH is set, but not exported.

Anyway, the next version of ikiwiki will fix this properly. --Joey done

generating wrappers..
In file included from /home/b-po-test/public_html/ikiwiki.cgi.c:2:
/usr/include/stdio.h:34:21: error: stddef.h: No such file or directory
In file included from /usr/include/stdio.h:75,
                 from /home/b-po-test/public_html/ikiwiki.cgi.c:2:
/usr/include/libio.h:53:21: error: stdarg.h: No such file or directory
In file included from /usr/include/stdio.h:75,
                 from /home/b-po-test/public_html/ikiwiki.cgi.c:2:
/usr/include/libio.h:332: error: expected specifier-qualifier-list before ‘size_t’
/usr/include/libio.h:364: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libio.h:373: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libio.h:489: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’
/usr/include/libio.h:491: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’
/usr/include/libio.h:493: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_IO_sgetn’
In file included from /home/b-po-test/public_html/ikiwiki.cgi.c:2:
/usr/include/stdio.h:312: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:319: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:347: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’
/usr/include/stdio.h:352: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’
/usr/include/stdio.h:355: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’
/usr/include/stdio.h:361: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:363: error: format string argument not a string type
/usr/include/stdio.h:365: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdio.h:366: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’
/usr/include/stdio.h:367: error: format string argument not a string type
/usr/include/stdio.h:678: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread’
/usr/include/stdio.h:684: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite’
/usr/include/stdio.h:706: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread_unlocked’
/usr/include/stdio.h:708: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite_unlocked’
In file included from /home/b-po-test/public_html/ikiwiki.cgi.c:6:
/usr/include/unistd.h:327: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/unistd.h:333: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/unistd.h:471: error: expected declaration specifiers or ‘...’ before ‘size_t’
In file included from /home/b-po-test/public_html/ikiwiki.cgi.c:6:
/usr/include/unistd.h:568: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘confstr’
/usr/include/unistd.h:740: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/unistd.h:776: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/unistd.h:823: error: expected declaration specifiers or ‘...’ before ‘size_t’
In file included from /home/b-po-test/public_html/ikiwiki.cgi.c:6:
/usr/include/unistd.h:845: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/unistd.h:852: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/unistd.h:863: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/unistd.h:865: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/unistd.h:883: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/unistd.h:884: error: expected declaration specifiers or ‘...’ before ‘size_t’
In file included from /home/b-po-test/public_html/ikiwiki.cgi.c:7:
/usr/include/stdlib.h:140: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__ctype_get_mb_cur_max’
/usr/include/stdlib.h:337: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:367: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:369: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/stdlib.h:471: error: expected ‘)’ before ‘__size’
/usr/include/stdlib.h:473: error: expected ‘)’ before ‘__nmemb’
/usr/include/stdlib.h:485: error: expected declaration specifiers or ‘...’ before ‘size_t’
In file included from /usr/include/stdlib.h:497,
                 from /home/b-po-test/public_html/ikiwiki.cgi.c:7:
/usr/include/alloca.h:33: error: expected ‘)’ before ‘__size’
In file included from /home/b-po-test/public_html/ikiwiki.cgi.c:7:
/usr/include/stdlib.h:502: error: expected ‘)’ before ‘__size’
/usr/include/stdlib.h:507: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:507: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:681: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:681: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:682: error: nonnull argument with out-of-range operand number (argument 1, operand 5)
/usr/include/stdlib.h:686: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:686: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:687: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/stdlib.h:759: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:762: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:766: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:770: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:779: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/stdlib.h:782: error: expected ‘)’ before ‘*’ token
/usr/include/stdlib.h:786: error: expected declaration specifiers or ‘...’ before ‘wchar_t’
/usr/include/stdlib.h:790: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mbstowcs’
/usr/include/stdlib.h:793: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘wcstombs’
In file included from /home/b-po-test/public_html/ikiwiki.cgi.c:8:
/usr/include/string.h:39: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:43: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:52: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:59: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:62: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:66: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:88: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:96: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:102: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:109: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strxfrm’
/usr/include/string.h:184: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strcspn’
/usr/include/string.h:188: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strspn’
/usr/include/string.h:242: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strlen’
/usr/include/string.h:270: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:294: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:298: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:302: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:305: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/string.h:335: error: expected declaration specifiers or ‘...’ before ‘size_t’
/home/b-po-test/public_html/ikiwiki.cgi.c: In function ‘addenv’:
/home/b-po-test/public_html/ikiwiki.cgi.c:16: warning: incompatible implicit declaration of built-in function ‘malloc’
/home/b-po-test/public_html/ikiwiki.cgi.c:16: warning: incompatible implicit declaration of built-in function ‘strlen’
/home/b-po-test/public_html/ikiwiki.cgi.c: In function ‘main’:
/home/b-po-test/public_html/ikiwiki.cgi.c:83: warning: incompatible implicit declaration of built-in function ‘malloc’
failed to compile /home/b-po-test/public_html/ikiwiki.cgi.c
Wide character in print at /usr/share/perl5/IkiWiki/Plugin/websetup.pm line 476.


Error: ikiwiki -setup /home/b-po-test/ikiwiki.setup -rebuild -v exited nonzero (256). Discarding setup changes.

I experienced a similar error on my other branchable website, when trying to disable HTML5 (that I enabled previously). I have not tried other changes, nor the same changes with a freshly created website.

Cheers,

-- Charles Plessy, Tsurumi, Kanagawa, Japan