aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/post-update_hook_can__39__t_be_compiled_with_tcc.mdwn
blob: a8fb1988804ba398d0227750033139e03cdf4b74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Thinking that any c compiler would do the job, I tried to use tcc with ikiwiki, as explicitely allowed by the Debian package dependencies.

I installed `tcc` and `libc6-dev` (for `libcrt1`). The wrapper compilation was OK, but the wrapper fails to run correctly and dies with

    usage: ikiwiki [options] source dest
       ikiwiki --setup configfile

Everything works fine with gcc.

versions: Debian lenny + backports

> Seems that tcc does not respect changing where `environ` points as a way
> to change the environment seen after `exec`
> 
> Given that the man page for `clearenv` suggests using `environ=NULL`
> if `clearenv` is not available, I would be lerry or using tcc to compile
> stuff, since that could easily lead to a security compromise of code that
> expects that to work. However, I have fixed ikiwiki to use `clearenv`.
> --[[Joey]] [[done]]