Pass "-fno-stack-protector" to gcc. Second result on a google search for "__stack_chk_fail", btw.
-Corey On Thu, Dec 30, 2010 at 2:21 AM, HOAN HOAN LAC LAC <[email protected]> wrote: > > hi all, can you help me build > > Mkelfimage > > http://ca9.upanh.com/18.712.23152200.Pfw0/yahoomessenger20101230142043.png > when i do folow http://www.coreboot.org/Mkelfimage then error: > > r...@ubuntu:/home/sonnh/mkelfImage-2.7# ./configure > checking build system type... i686-pc-linux-gnu > checking host system type... i686-pc-linux-gnu > configure: with_default=I386 > configure: with_i386=no > configure: with_ia64=no > checking for gcc... gcc > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ANSI C... none needed > checking for mkdir... mkdir > checking for rm... rm > checking for cp... cp > checking for ln... ln > checking for tar... tar > checking for rpm... no > checking for sed... sed > checking for find... find > checking how to run the C preprocessor... gcc -E > checking for egrep... grep -E > checking for ANSI C header files... yes > checking for sys/types.h... yes > checking for sys/stat.h... yes > checking for stdlib.h... yes > checking for string.h... yes > checking for memory.h... yes > checking for strings.h... yes > checking for inttypes.h... yes > checking for stdint.h... yes > checking for unistd.h... yes > checking zlib.h usability... yes > checking zlib.h presence... yes > checking for zlib.h... yes > checking for inflateInit_ in -lz... yes > checking how to run the C preprocessor... gcc -E > checking for ld... ld > checking for as... as > checking for objcopy... objcopy > configure: creating ./config.status > config.status: creating Makefile.conf > r...@ubuntu:/home/sonnh/mkelfImage-2.7# make > mkdir -p objdir/main > gcc -O2 -Wall -DVERSION='"2.7"' -DRELEASE_DATE='"27 March 2006"' -I include > -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" > -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 > -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 > -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 > -DHAVE_UNISTD_H=1 -DHAVE_ZLIB_H=1 -c main/mkelfImage.c -o > objdir/main/mkelfImage.o > mkdir -p objdir/linux-i386 > gcc -E -DVERSION='"2.7"' -DRELEASE_DATE='"27 March 2006"' -I include -I > arch/i386/include -DASSEMBLY linux-i386/head.S | as -o > objdir/linux-i386/head.o > mkdir -p objdir/linux-i386 > gcc -Os -ffreestanding -Wall -W -Wno-format -DVERSION='"2.7"' > -DRELEASE_DATE='"27 March 2006"' -I include -I arch/i386/include -c -o > objdir/linux-i386/convert_params.o linux-i386/convert_params.c > linux-i386/convert_params.c:15: warning: pointer targets in initialization > differ in signedness > linux-i386/convert_params.c: In function ‘append_command_line’: > linux-i386/convert_params.c:492: warning: pointer targets in passing > argument 1 of ‘strnlen’ differ in signedness > linux-i386/convert_params.c:384: note: expected ‘const char *’ but argument > is of type ‘uint8_t *’ > linux-i386/convert_params.c:493: warning: pointer targets in assignment > differ in signedness > linux-i386/convert_params.c: In function ‘count_elf_notes’: > linux-i386/convert_params.c:818: warning: pointer targets in assignment > differ in signedness > linux-i386/convert_params.c:819: warning: pointer targets in assignment > differ in signedness > linux-i386/convert_params.c: In function ‘find_elf_note’: > linux-i386/convert_params.c:850: warning: pointer targets in assignment > differ in signedness > linux-i386/convert_params.c:851: warning: pointer targets in assignment > differ in signedness > linux-i386/convert_params.c: In function ‘convert_elf_command_line’: > linux-i386/convert_params.c:874: warning: pointer targets in passing > argument 2 of ‘append_command_line’ differ in signedness > linux-i386/convert_params.c:487: note: expected ‘char *’ but argument is of > type ‘unsigned char *’ > linux-i386/convert_params.c: At top level: > linux-i386/convert_params.c:884: warning: pointer targets in initialization > differ in signedness > linux-i386/convert_params.c: In function ‘convert_elf_boot’: > linux-i386/convert_params.c:890: warning: pointer targets in assignment > differ in signedness > linux-i386/convert_params.c:891: warning: pointer targets in assignment > differ in signedness > linux-i386/convert_params.c: In function ‘bootloader_query_firmware_class’: > linux-i386/convert_params.c:1224: warning: pointer targets in assignment > differ in signedness > linux-i386/convert_params.c: In function ‘initialize_linux_params’: > linux-i386/convert_params.c:1466: warning: pointer targets in passing > argument 1 of ‘strnlen’ differ in signedness > linux-i386/convert_params.c:384: note: expected ‘const char *’ but argument > is of type ‘uint8_t *’ > mkdir -p objdir/linux-i386 > ld -static --warn-multiple-gp --warn-common -T linux-i386/convert.lds -o > objdir/linux-i386/convert objdir/linux-i386/head.o > objdir/linux-i386/convert_params.o > objdir/linux-i386/convert_params.o: In function `printf': > convert_params.c:(.text+0x653): undefined reference to `__stack_chk_fail' > make: *** [objdir/linux- > can you help me ? > > > > > > -- > coreboot mailing list: [email protected] > http://www.coreboot.org/mailman/listinfo/coreboot > -- coreboot mailing list: [email protected] http://www.coreboot.org/mailman/listinfo/coreboot

