]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/post-update_hook_can__39__t_be_compiled_with_tcc.mdwn
(no commit message)
[ikiwiki.git] / doc / bugs / post-update_hook_can__39__t_be_compiled_with_tcc.mdwn
1 Thinking that any c compiler would do the job, I tried to use tcc with ikiwiki, as explicitely allowed by the Debian package dependencies.
2
3 I installed `tcc` and `libc6-dev` (for `libcrt1`). The wrapper compilation was OK, but the wrapper fails to run correctly and dies with
4
5     usage: ikiwiki [options] source dest
6        ikiwiki --setup configfile
7
8 Everything works fine with gcc.
9
10 versions: Debian lenny + backports
11
12 > Seems that tcc does not respect changing where `environ` points as a way
13 > to change the environment seen after `exec`
14
15 > Given that the man page for `clearenv` suggests using `environ=NULL`
16 > if `clearenv` is not available, I would be lerry or using tcc to compile
17 > stuff, since that could easily lead to a security compromise of code that
18 > expects that to work. However, I have fixed ikiwiki to use `clearenv`.
19 > --[[Joey]] [[done]]