linux/mm.h breaks memset()

Erik Troan (ewt@redhat.com)
Wed, 18 Oct 1995 15:31:24 -0400 (EDT)


With both 1.3.32 and 1.3.18 this program fails to build with the errors
shown:

#include <linux/mm.h>

main () {
int a;

memset(&a, sizeof(a), 0);
}

---

bash# gcc -o t t.c /tmp/cca019061.o: In function `main': t.c:0: undefined reference to `__constant_c_memset' t.c:0: undefined reference to `__memset' /tmp/cca019061.o(.lita+0x8): undefined reference to `__constant_c_memset' /tmp/cca019061.o(.lita+0x10): undefined reference to `__memset'

Something in the kernel header files (asm/string.h?) is breaking this. Any ideas on how to fix it?

Erik

------------------------------------------------------------------------------- "Eggheads unite! You have nothing to lose but your yolks" - Adlai Stevenson

Erik Troan = http://sunsite.unc.edu/ewt/ = ewt@sunsite.unc.edu