Date: Sat, 9 Sep 1995 21:14:30 -0400 From: dj (DJ Delorie) To: shaw AT cix DOT compulink DOT co DOT uk Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: Can't find 'brk' in v2b3 > I have just downloaded V2beta3. All seems fine except that one of my > programs won't link: undefined reference to ' brk'. Linked ok under > v1. Anyone have any suggestions as to what's wrong, please? I added it back in. Just do "#define brk __brk" and it should work fine for now. Background: brk is neither posix nor ansi, so the name must be in the reserved namespace, since it's used in crt0.o. V2 has which defines functions that are in the reserved space, but often used in the user space (like brk() -> __brk()). This causes libc to include stub definitions for them, like this (but as a single assembler `jmp' opcode): brk(x) { return __brk(x); } brk was missing from , so libc built OK but applications would have problems. I added the line to . DJ