2.1.127... undefined reference to __bzero

Jan-Frode Myklebust (s768@eik.ii.uib.no)
Mon, 9 Nov 1998 16:16:29 +0100 (MET)


I had some trouble compiling 2.1.127... The compilation ended with the
error:
make[2]: Leaving directory `/usr/src/linux/arch/i386/boot/compressed'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o tools/build
tools/build.c -I/usr/src/linux/include
/tmp/cca021621.o: In function `main':
/tmp/cca021621.o(.text+0x3c5): undefined reference to `__bzero'
make[1]: *** [tools/build] Error 1
make[1]: Leaving directory `/usr/src/linux/arch/i386/boot'
make: *** [zImage] Error 2

After grepping around a bit, I tried to add
#define __bzero(d, n) memset((d), 0, (n))
to tools/build.c, and now I'm running 2.1.127 just fine...

K6-2 333,
gcc 2.7.2.3,
GNU ld version 2.9.1 (with BFD 2.9.1.0.15),
/lib/libc.so.5.3.12,
libc-2.0.7.so,
ldd (GNU libc) 2.0.7,
/usr/lib/libg++.so.2.7.2.8,
procps version 1.2.9,
This is procinfo version 13 (1998-03-07),

More information available upon request.

-- 
Jan-Frode

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/