Good afternoon all, Changing line 177 of stdlib.h from void _EXFUN(unsetenv,(const int *__string)); to int _EXFUN(unsetenv,(const char *__string)); appears to have cured the problem by matching the declaration types to the function itself in setenv.c. My C is a little rusty :( BR Gregor.