I'd try compiling with gcc -Wall. Most likely you have a prototype missing. malloc is builtin to the compiler but xmalloc is not.
- combining large xmalloc and setvbuf Sami Kerola
- Re: combining large xmalloc and setvbuf Paul Eggert
- Re: combining large xmalloc and setvbuf Sami Kerola