make -r -C /mlsyslinux -f /mlsyslinux/Makefile SRC="/mlsyslinux" \ OBJ=/mlsyslinux objdir=/mlsyslinux bios make[1]: Entering directory `/mlsyslinux' make -r -C /mlsyslinux/bios -f /mlsyslinux/Makefile SRC="/mlsyslinux" \ objdir=/mlsyslinux/bios OBJ=/mlsyslinux/bios HAVE_FIRMWARE=1 \ ARCH=i386 LDLINUX=ldlinux.c32 all make[2]: Entering directory `/mlsyslinux/bios' ls -l version.gen version.h /mlsyslinux/version.mk mbr/*.bin core/pxelinux.0 core/lpxelinux.0 core/isolinux.bin core/isolinux-debug.bin gpxe/gpxelinux.0 dos/syslinux.com win32/syslinux.exe win64/syslinux64.exe dosutil/*.com dosutil/*.sys memdisk/memdisk memdump/memdump.com com32/menu/*.c32 com32/modules/*.c32 com32/mboot/*.c32 com32/hdt/*.c32 com32/rosh/*.c32 com32/gfxboot/*.c32 com32/sysdump/*.c32 com32/lua/src/*.c32 com32/chain/*.c32 com32/lib/*.c32 com32/libutil/*.c32 com32/gpllib/*.c32 com32/elflink/ldlinux/*.c32 com32/cmenu/libmenu/*.c32 utils/gethostip utils/isohybrid utils/mkdiskimage mtools/syslinux linux/syslinux extlinux/extlinux ls: mbr/*.bin: No such file or directory ls: core/pxelinux.0: No such file or directory ls: core/lpxelinux.0: No such file or directory ls: core/isolinux.bin: No such file or directory ls: core/isolinux-debug.bin: No such file or directory ls: gpxe/gpxelinux.0: No such file or directory ls: dos/syslinux.com: No such file or directory ls: win32/syslinux.exe: No such file or directory ls: win64/syslinux64.exe: No such file or directory ls: dosutil/*.com: No such file or directory ls: dosutil/*.sys: No such file or directory ls: memdisk/memdisk: No such file or directory ls: memdump/memdump.com: No such file or directory ls: com32/menu/*.c32: No such file or directory ls: com32/modules/*.c32: No such file or directory ls: com32/mboot/*.c32: No such file or directory ls: com32/hdt/*.c32: No such file or directory ls: com32/rosh/*.c32: No such file or directory ls: com32/gfxboot/*.c32: No such file or directory ls: com32/sysdump/*.c32: No such file or directory ls: com32/lua/src/*.c32: No such file or directory ls: com32/chain/*.c32: No such file or directory ls: com32/lib/*.c32: No such file or directory ls: com32/libutil/*.c32: No such file or directory ls: com32/gpllib/*.c32: No such file or directory ls: com32/elflink/ldlinux/*.c32: No such file or directory ls: com32/cmenu/libmenu/*.c32: No such file or directory ls: utils/gethostip: No such file or directory ls: utils/isohybrid: No such file or directory ls: utils/mkdiskimage: No such file or directory ls: mtools/syslinux: No such file or directory ls: linux/syslinux: No such file or directory ls: extlinux/extlinux: No such file or directory -rwxrwSrwx 1 root root 108 May 8 11:01 /mlsyslinux/version.mk -rwxrwSrwx 1 root root 138 May 8 11:01 version.gen -rwxrwSrwx 1 root root 138 May 8 11:01 version.h make[2]: [all-local] Error 2 (ignored) make -r -C codepage SRC="/mlsyslinux/codepage" OBJ="/mlsyslinux/bios/codepage" \ -f /mlsyslinux/codepage/Makefile all make[3]: Entering directory `/mlsyslinux/bios/codepage' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/mlsyslinux/bios/codepage' make -r -C com32 SRC="/mlsyslinux/com32" OBJ="/mlsyslinux/bios/com32" \ -f /mlsyslinux/com32/Makefile all make[3]: Entering directory `/mlsyslinux/bios/com32' make -C /mlsyslinux/bios/com32/libupload SRC="/mlsyslinux/com32"/libupload OBJ="/mlsyslinux/bios/com32"/libupload/ \ -f /mlsyslinux/com32/libupload/Makefile all make[4]: Entering directory `/mlsyslinux/bios/com32/libupload' gcc -Wp,-MT,cpio.o,-MD,./.cpio.o.d -std=gnu99 -m32 -march=i386 -mpreferred-stack-boundary=2 -fno-stack-protector -fwrapv -freg-struct-return -Os -fPIC -fno-exceptions -fno-asynchronous-unwind-tables -fno-strict-aliasing -falign-functions=0 -falign-jumps=0 -falign-labels=0 -falign-loops=0 -mregparm=3 -DREGPARM=3 -W -Wall -Wstrict-prototypes -fomit-frame-pointer -D__COM32__ -nostdinc -iwithprefix include -I/mlsyslinux/com32/libutil/include -I/mlsyslinux/com32/include -I/mlsyslinux/com32/include/sys -I/mlsyslinux/com32/gplinclude -c -o cpio.o /mlsyslinux/com32/libupload/cpio.c In file included from /mlsyslinux/com32/include/stddef.h:12, from /mlsyslinux/com32/include/stdio.h:10, from /mlsyslinux/com32/libupload/cpio.c:7: /mlsyslinux/com32/include/bitsize/stddef.h:13:2: error: #error "Unable to build for to-be-defined architecture type" In file included from /mlsyslinux/com32/libupload/cpio.c:7: /mlsyslinux/com32/include/stdio.h: In function ?fileno?: /mlsyslinux/com32/include/stdio.h:39: error: ?size_t? undeclared (first use in this function) /mlsyslinux/com32/include/stdio.h:39: error: (Each undeclared identifier is reported only once /mlsyslinux/com32/include/stdio.h:39: error: for each function it appears in.) /mlsyslinux/com32/include/stdio.h:39: error: expected ?;? before ?__f? /mlsyslinux/com32/include/stdio.h:36: warning: unused parameter ?__f? /mlsyslinux/com32/include/stdio.h: In function ?fdopen?: /mlsyslinux/com32/include/stdio.h:56: error: ?size_t? undeclared (first use in this function) /mlsyslinux/com32/include/stdio.h: At top level: /mlsyslinux/com32/include/stdio.h:70: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?_fread? /mlsyslinux/com32/include/stdio.h:71: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?_fwrite? /mlsyslinux/com32/include/stdio.h:73: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?fread? /mlsyslinux/com32/include/stdio.h:74: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?fwrite? /mlsyslinux/com32/include/stdio.h:97: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/include/stdio.h:97: warning: conflicting types for built-in function ?snprintf? /mlsyslinux/com32/include/stdio.h:98: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/include/stdio.h:98: warning: conflicting types for built-in function ?vsnprintf? In file included from /mlsyslinux/com32/libupload/cpio.c:8: /mlsyslinux/com32/include/string.h:11: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/include/string.h:12: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/include/string.h:13: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/include/string.h:13: warning: conflicting types for built-in function ?memcmp? /mlsyslinux/com32/include/string.h:14: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/include/string.h:14: warning: conflicting types for built-in function ?memcpy? /mlsyslinux/com32/include/string.h:15: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/include/string.h:15: warning: conflicting types for built-in function ?mempcpy? /mlsyslinux/com32/include/string.h:16: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/include/string.h:16: warning: conflicting types for built-in function ?memmove? /mlsyslinux/com32/include/string.h:17: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/include/string.h:17: warning: conflicting types for built-in function ?memset? /mlsyslinux/com32/include/string.h:18: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/include/string.h:18: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/include/string.h:19: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/include/string.h:21: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/include/string.h:21: warning: conflicting types for built-in function ?strncasecmp? /mlsyslinux/com32/include/string.h:26: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?strcspn? /mlsyslinux/com32/include/string.h:28: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/include/string.h:28: warning: conflicting types for built-in function ?strndup? /mlsyslinux/com32/include/string.h:30: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?strlen? /mlsyslinux/com32/include/string.h:31: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?strnlen? /mlsyslinux/com32/include/string.h:32: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/include/string.h:32: warning: conflicting types for built-in function ?strncat? /mlsyslinux/com32/include/string.h:33: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?strlcat? /mlsyslinux/com32/include/string.h:34: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/include/string.h:34: warning: conflicting types for built-in function ?strncmp? /mlsyslinux/com32/include/string.h:35: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/include/string.h:35: warning: conflicting types for built-in function ?strncpy? /mlsyslinux/com32/include/string.h:37: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/include/string.h:37: warning: conflicting types for built-in function ?stpncpy? /mlsyslinux/com32/include/string.h:38: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?strlcpy? /mlsyslinux/com32/include/string.h:42: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?strspn? In file included from /mlsyslinux/com32/include/stdint.h:8, from /mlsyslinux/com32/include/inttypes.h:9, from /mlsyslinux/com32/libupload/cpio.c:9: /mlsyslinux/com32/include/bitsize/stdint.h:21:2: error: #error "Unable to build for to-be-defined architecture type" In file included from /mlsyslinux/com32/include/inttypes.h:9, from /mlsyslinux/com32/libupload/cpio.c:9: /mlsyslinux/com32/include/stdint.h:13: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?int_least64_t? /mlsyslinux/com32/include/stdint.h:18: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?uint_least64_t? /mlsyslinux/com32/include/stdint.h:21: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?int_fast64_t? /mlsyslinux/com32/include/stdint.h:24: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?uint_fast64_t? /mlsyslinux/com32/include/stdint.h:26: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?intmax_t? /mlsyslinux/com32/include/stdint.h:27: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?uintmax_t? In file included from /mlsyslinux/com32/include/stdint.h:74, from /mlsyslinux/com32/include/inttypes.h:9, from /mlsyslinux/com32/libupload/cpio.c:9: /mlsyslinux/com32/include/bitsize/stdintlimits.h:13:2: error: #error "Unable to build for to-be-defined architecture type" In file included from /mlsyslinux/com32/include/stdint.h:109, from /mlsyslinux/com32/include/inttypes.h:9, from /mlsyslinux/com32/libupload/cpio.c:9: /mlsyslinux/com32/include/bitsize/stdintconst.h:13:2: error: #error "Unable to build for to-be-defined architecture type" In file included from /mlsyslinux/com32/libupload/cpio.c:9: /mlsyslinux/com32/include/inttypes.h:12: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?imaxabs? /mlsyslinux/com32/include/inttypes.h:17: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?strtoimax? /mlsyslinux/com32/include/inttypes.h:18: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?strtoumax? /mlsyslinux/com32/include/inttypes.h:21: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?strntoimax? /mlsyslinux/com32/include/inttypes.h:22: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?strntoumax? In file included from /mlsyslinux/com32/include/zconf.h:364, from /mlsyslinux/com32/include/zlib.h:34, from /mlsyslinux/com32/libupload/cpio.c:11: /mlsyslinux/com32/include/sys/types.h:12: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?ssize_t? /mlsyslinux/com32/include/sys/types.h:14: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?off_t? In file included from /mlsyslinux/com32/libupload/upload_backend.h:8, from /mlsyslinux/com32/libupload/cpio.c:12: /mlsyslinux/com32/libupload/serial.h:15: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/libupload/serial.h:16: error: expected declaration specifiers or ?...? before ?size_t? In file included from /mlsyslinux/com32/libupload/cpio.c:12: /mlsyslinux/com32/libupload/upload_backend.h:19: error: expected specifier-qualifier-list before ?size_t? /mlsyslinux/com32/libupload/upload_backend.h:34: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/libupload/upload_backend.h:39: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/libupload/upload_backend.h:43: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/libupload/cpio.c: In function ?cpio_pad?: /mlsyslinux/com32/libupload/cpio.c:18: error: ?struct upload_backend? has no member named ?dbytes? /mlsyslinux/com32/libupload/cpio.c:19: error: ?struct upload_backend? has no member named ?dbytes? /mlsyslinux/com32/libupload/cpio.c:19: error: too many arguments to function ?write_data? /mlsyslinux/com32/libupload/cpio.c: At top level: /mlsyslinux/com32/libupload/cpio.c:24: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/libupload/cpio.c: In function ?cpio_hdr?: /mlsyslinux/com32/libupload/cpio.c:29: warning: implicit declaration of function ?strlen? /mlsyslinux/com32/libupload/cpio.c:29: warning: incompatible implicit declaration of built-in function ?strlen? /mlsyslinux/com32/libupload/cpio.c:41: error: ?struct upload_backend? has no member named ?now? /mlsyslinux/com32/libupload/cpio.c:42: error: ?datalen? undeclared (first use in this function) /mlsyslinux/com32/libupload/cpio.c:49: error: too many arguments to function ?write_data? /mlsyslinux/com32/libupload/cpio.c:50: error: too many arguments to function ?write_data? /mlsyslinux/com32/libupload/cpio.c: In function ?cpio_mkdir?: /mlsyslinux/com32/libupload/cpio.c:57: error: too many arguments to function ?cpio_hdr? /mlsyslinux/com32/libupload/cpio.c: At top level: /mlsyslinux/com32/libupload/cpio.c:61: error: expected declaration specifiers or ?...? before ?size_t? /mlsyslinux/com32/libupload/cpio.c: In function ?cpio_writefile?: /mlsyslinux/com32/libupload/cpio.c:65: error: ?len? undeclared (first use in this function) /mlsyslinux/com32/libupload/cpio.c:65: error: too many arguments to function ?cpio_hdr? /mlsyslinux/com32/libupload/cpio.c:66: error: too many arguments to function ?write_data? /mlsyslinux/com32/libupload/cpio.c: In function ?cpio_close?: /mlsyslinux/com32/libupload/cpio.c:74: error: too many arguments to function ?cpio_hdr? make[4]: *** [cpio.o] Error 1 make[4]: Leaving directory `/mlsyslinux/bios/com32/libupload' make[3]: *** [libupload] Error 2 make[3]: Leaving directory `/mlsyslinux/bios/com32' make[2]: *** [com32] Error 2 make[2]: Leaving directory `/mlsyslinux/bios' make[1]: *** [bios] Error 2 make[1]: Leaving directory `/mlsyslinux' make: *** [bios] Error 2 build steps: make clean make bios clean make bios spotless make bios build tools are: gcc verion:4.1.2 20080704(Red Hat 4.1.2-46) nasm version:NASM version 2.11.02 compiled on Apr 2 2014 perl version:5.18.2 built for i686-linux uuid version:1.0.2 what's the problem for these errors? Actually, i want to build pxelinux only, and i don't figure that, so build the whole project. can provide some build instructions for me? thanks guys.
On May 7, 2014 11:54 PM, "??" <muliu92 at 163.com> wrote:> make[4]: Entering directory `/mlsyslinux/bios/com32/libupload' > gcc -Wp,-MT,cpio.o,-MD,./.cpio.o.d -std=gnu99 -m32 -march=i386-mpreferred-stack-boundary=2 -fno-stack-protector -fwrapv -freg-struct-return -Os -fPIC -fno-exceptions -fno-asynchronous-unwind-tables -fno-strict-aliasing -falign-functions=0 -falign-jumps=0 -falign-labels=0 -falign-loops=0 -mregparm=3 -DREGPARM=3 -W -Wall -Wstrict-prototypes -fomit-frame-pointer -D__COM32__ -nostdinc -iwithprefix include -I/mlsyslinux/com32/libutil/include -I/mlsyslinux/com32/include -I/mlsyslinux/com32/include/sys -I/mlsyslinux/com32/gplinclude -c -o cpio.o /mlsyslinux/com32/libupload/cpio.c> In file included from /mlsyslinux/com32/include/stddef.h:12, > from /mlsyslinux/com32/include/stdio.h:10, > from /mlsyslinux/com32/libupload/cpio.c:7: > /mlsyslinux/com32/include/bitsize/stddef.h:13:2: error: #error "Unable tobuild for to-be-defined architecture type"> In file included from /mlsyslinux/com32/libupload/cpio.c:7: > /mlsyslinux/com32/include/stdio.h: In function ?fileno?: > /mlsyslinux/com32/include/stdio.h:39: error: ?size_t? undeclared (firstuse in this function)> /mlsyslinux/com32/include/stdio.h:39: error: (Each undeclared identifieris reported only once> /mlsyslinux/com32/include/stdio.h:39: error: for each function it appearsin.)> /mlsyslinux/com32/include/stdio.h:39: error: expected ?;? before ?__f? > /mlsyslinux/com32/include/stdio.h:36: warning: unused parameter ?__f?> /mlsyslinux/com32/include/stdio.h:70: error: expected ?=?, ?,?, ?;?,?asm? or ?__attribute__? before ?_fread?> /mlsyslinux/com32/include/string.h:15: warning: conflicting types forbuilt-in function ?mempcpy?> /mlsyslinux/com32/include/string.h:16: error: expected declarationspecifiers or ?...? before ?size_t?> In file included from /mlsyslinux/com32/include/stdint.h:8, > from /mlsyslinux/com32/include/inttypes.h:9, > from /mlsyslinux/com32/libupload/cpio.c:9: > /mlsyslinux/com32/include/bitsize/stdint.h:21:2: error: #error "Unable tobuild for to-be-defined architecture type"> In file included from /mlsyslinux/com32/include/inttypes.h:9, > from /mlsyslinux/com32/libupload/cpio.c:9: > /mlsyslinux/com32/include/stdint.h:13: error: expected ?=?, ?,?, ?;?,?asm? or ?__attribute__? before ?int_least64_t?> /mlsyslinux/com32/include/stdint.h:18: error: expected ?=?, ?,?, ?;?,?asm? or ?__attribute__? before ?uint_least64_t?> /mlsyslinux/com32/include/stdint.h:21: error: expected ?=?, ?,?, ?;?,?asm? or ?__attribute__? before ?int_fast64_t?> /mlsyslinux/com32/include/stdint.h:24: error: expected ?=?, ?,?, ?;?,?asm? or ?__attribute__? before ?uint_fast64_t?> /mlsyslinux/com32/include/stdint.h:26: error: expected ?=?, ?,?, ?;?,?asm? or ?__attribute__? before ?intmax_t?> /mlsyslinux/com32/include/stdint.h:27: error: expected ?=?, ?,?, ?;?,?asm? or ?__attribute__? before ?uintmax_t?> In file included from /mlsyslinux/com32/include/stdint.h:74, > from /mlsyslinux/com32/include/inttypes.h:9, > from /mlsyslinux/com32/libupload/cpio.c:9: > /mlsyslinux/com32/include/bitsize/stdintlimits.h:13:2: error: #error"Unable to build for to-be-defined architecture type"> In file included from /mlsyslinux/com32/include/stdint.h:109, > from /mlsyslinux/com32/include/inttypes.h:9, > from /mlsyslinux/com32/libupload/cpio.c:9: > /mlsyslinux/com32/include/bitsize/stdintconst.h:13:2: error: #error"Unable to build for to-be-defined architecture type"> In file included from /mlsyslinux/com32/libupload/cpio.c:9: > /mlsyslinux/com32/include/inttypes.h:12: error: expected ?=?, ?,?, ?;?,?asm? or ?__attribute__? before ?imaxabs?> /mlsyslinux/com32/include/inttypes.h:17: error: expected ?=?, ?,?, ?;?,?asm? or ?__attribute__? before ?strtoimax?> /mlsyslinux/com32/include/inttypes.h:18: error: expected ?=?, ?,?, ?;?,?asm? or ?__attribute__? before ?strtoumax?> /mlsyslinux/com32/include/inttypes.h:21: error: expected ?=?, ?,?, ?;?,?asm? or ?__attribute__? before ?strntoimax?> /mlsyslinux/com32/include/inttypes.h:22: error: expected ?=?, ?,?, ?;?,?asm? or ?__attribute__? before ?strntoumax?> In file included from /mlsyslinux/com32/include/zconf.h:364, > from /mlsyslinux/com32/include/zlib.h:34, > from /mlsyslinux/com32/libupload/cpio.c:11: > /mlsyslinux/com32/include/sys/types.h:12: error: expected ?=?, ?,?, ?;?,?asm? or ?__attribute__? before ?ssize_t?> /mlsyslinux/com32/include/sys/types.h:14: error: expected ?=?, ?,?, ?;?,?asm? or ?__attribute__? before ?off_t?> In file included from /mlsyslinux/com32/libupload/upload_backend.h:8, > from /mlsyslinux/com32/libupload/cpio.c:12: > /mlsyslinux/com32/libupload/serial.h:15: error: expected declarationspecifiers or ?...? before ?size_t?> /mlsyslinux/com32/libupload/serial.h:16: error: expected declarationspecifiers or ?...? before ?size_t?> In file included from /mlsyslinux/com32/libupload/cpio.c:12: > /mlsyslinux/com32/libupload/upload_backend.h:19: error: expectedspecifier-qualifier-list before ?size_t?> /mlsyslinux/com32/libupload/upload_backend.h:34: error: expecteddeclaration specifiers or ?...? before ?size_t?> /mlsyslinux/com32/libupload/upload_backend.h:39: error: expecteddeclaration specifiers or ?...? before ?size_t?> /mlsyslinux/com32/libupload/upload_backend.h:43: error: expecteddeclaration specifiers or ?...? before ?size_t?> /mlsyslinux/com32/libupload/cpio.c: In function ?cpio_pad?: > /mlsyslinux/com32/libupload/cpio.c:18: error: ?struct upload_backend? hasno member named ?dbytes?> /mlsyslinux/com32/libupload/cpio.c:19: error: ?struct upload_backend? hasno member named ?dbytes?> /mlsyslinux/com32/libupload/cpio.c:19: error: too many arguments tofunction ?write_data?> /mlsyslinux/com32/libupload/cpio.c: At top level: > /mlsyslinux/com32/libupload/cpio.c:24: error: expected declarationspecifiers or ?...? before ?size_t?> /mlsyslinux/com32/libupload/cpio.c: In function ?cpio_hdr?: > /mlsyslinux/com32/libupload/cpio.c:29: warning: implicit declaration offunction ?strlen?> /mlsyslinux/com32/libupload/cpio.c:29: warning: incompatible implicitdeclaration of built-in function ?strlen?> /mlsyslinux/com32/libupload/cpio.c:41: error: ?struct upload_backend? hasno member named ?now?> /mlsyslinux/com32/libupload/cpio.c:42: error: ?datalen? undeclared (firstuse in this function)> /mlsyslinux/com32/libupload/cpio.c:49: error: too many arguments tofunction ?write_data?> /mlsyslinux/com32/libupload/cpio.c:50: error: too many arguments tofunction ?write_data?> /mlsyslinux/com32/libupload/cpio.c: In function ?cpio_mkdir?: > /mlsyslinux/com32/libupload/cpio.c:57: error: too many arguments tofunction ?cpio_hdr?> /mlsyslinux/com32/libupload/cpio.c: At top level: > /mlsyslinux/com32/libupload/cpio.c:61: error: expected declarationspecifiers or ?...? before ?size_t?> /mlsyslinux/com32/libupload/cpio.c: In function ?cpio_writefile?: > /mlsyslinux/com32/libupload/cpio.c:65: error: ?len? undeclared (first usein this function)> /mlsyslinux/com32/libupload/cpio.c:65: error: too many arguments tofunction ?cpio_hdr?> /mlsyslinux/com32/libupload/cpio.c:66: error: too many arguments tofunction ?write_data?> /mlsyslinux/com32/libupload/cpio.c: In function ?cpio_close?: > /mlsyslinux/com32/libupload/cpio.c:74: error: too many arguments tofunction ?cpio_hdr?> make[4]: *** [cpio.o] Error 1 > make[4]: Leaving directory `/mlsyslinux/bios/com32/libupload' > make[3]: *** [libupload] Error 2 > make[3]: Leaving directory `/mlsyslinux/bios/com32' > make[2]: *** [com32] Error 2 > make[2]: Leaving directory `/mlsyslinux/bios' > make[1]: *** [bios] Error 2 > make[1]: Leaving directory `/mlsyslinux' > make: *** [bios] Error 2> build steps: > make clean > make bios clean > make bios spotless > make biosThe first command is redundant since you only want bios.> build tools are: > gcc verion:4.1.2 20080704(Red Hat 4.1.2-46) > nasm version:NASM version 2.11.02 compiled on Apr 2 2014 > perl version:5.18.2 built for i686-linux > uuid version:1.0.2Is this an x86 our x86-64 userland?> what's the problem for these errors?The only one that stands out is gcc.> Actually, i want to build pxelinux only, and i don't figure that, sobuild the whole project. can provide some build instructions for me? thanks guys. Why not use the precompiled binaries? --Gene
It's x86 arch.The reason of compiling pxelinux only is that i want to add tcp support, not http and ftp. ? 2014-05-08 18:09:15?"Gene Cumm" <gene.cumm at gmail.com> ??? On May 7, 2014 11:54 PM, "??" <muliu92 at 163.com> wrote:> make[4]: Entering directory `/mlsyslinux/bios/com32/libupload' > gcc -Wp,-MT,cpio.o,-MD,./.cpio.o.d -std=gnu99 -m32 -march=i386 -mpreferred-stack-boundary=2 -fno-stack-protector -fwrapv -freg-struct-return -Os -fPIC -fno-exceptions -fno-asynchronous-unwind-tables -fno-strict-aliasing -falign-functions=0 -falign-jumps=0 -falign-labels=0 -falign-loops=0 -mregparm=3 -DREGPARM=3 -W -Wall -Wstrict-prototypes -fomit-frame-pointer -D__COM32__ -nostdinc -iwithprefix include -I/mlsyslinux/com32/libutil/include -I/mlsyslinux/com32/include -I/mlsyslinux/com32/include/sys -I/mlsyslinux/com32/gplinclude -c -o cpio.o /mlsyslinux/com32/libupload/cpio.c > In file included from /mlsyslinux/com32/include/stddef.h:12, > from /mlsyslinux/com32/include/stdio.h:10, > from /mlsyslinux/com32/libupload/cpio.c:7: > /mlsyslinux/com32/include/bitsize/stddef.h:13:2: error: #error "Unable to build for to-be-defined architecture type" > In file included from /mlsyslinux/com32/libupload/cpio.c:7: > /mlsyslinux/com32/include/stdio.h: In function ?fileno?: > /mlsyslinux/com32/include/stdio.h:39: error: ?size_t? undeclared (first use in this function) > /mlsyslinux/com32/include/stdio.h:39: error: (Each undeclared identifier is reported only once > /mlsyslinux/com32/include/stdio.h:39: error: for each function it appears in.) > /mlsyslinux/com32/include/stdio.h:39: error: expected ?;? before ?__f? > /mlsyslinux/com32/include/stdio.h:36: warning: unused parameter ?__f?> /mlsyslinux/com32/include/stdio.h:70: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?_fread?> /mlsyslinux/com32/include/string.h:15: warning: conflicting types for built-in function ?mempcpy? > /mlsyslinux/com32/include/string.h:16: error: expected declaration specifiers or ?...? before ?size_t?> In file included from /mlsyslinux/com32/include/stdint.h:8, > from /mlsyslinux/com32/include/inttypes.h:9, > from /mlsyslinux/com32/libupload/cpio.c:9: > /mlsyslinux/com32/include/bitsize/stdint.h:21:2: error: #error "Unable to build for to-be-defined architecture type" > In file included from /mlsyslinux/com32/include/inttypes.h:9, > from /mlsyslinux/com32/libupload/cpio.c:9: > /mlsyslinux/com32/include/stdint.h:13: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?int_least64_t? > /mlsyslinux/com32/include/stdint.h:18: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?uint_least64_t? > /mlsyslinux/com32/include/stdint.h:21: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?int_fast64_t? > /mlsyslinux/com32/include/stdint.h:24: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?uint_fast64_t? > /mlsyslinux/com32/include/stdint.h:26: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?intmax_t? > /mlsyslinux/com32/include/stdint.h:27: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?uintmax_t? > In file included from /mlsyslinux/com32/include/stdint.h:74, > from /mlsyslinux/com32/include/inttypes.h:9, > from /mlsyslinux/com32/libupload/cpio.c:9: > /mlsyslinux/com32/include/bitsize/stdintlimits.h:13:2: error: #error "Unable to build for to-be-defined architecture type" > In file included from /mlsyslinux/com32/include/stdint.h:109, > from /mlsyslinux/com32/include/inttypes.h:9, > from /mlsyslinux/com32/libupload/cpio.c:9: > /mlsyslinux/com32/include/bitsize/stdintconst.h:13:2: error: #error "Unable to build for to-be-defined architecture type" > In file included from /mlsyslinux/com32/libupload/cpio.c:9: > /mlsyslinux/com32/include/inttypes.h:12: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?imaxabs? > /mlsyslinux/com32/include/inttypes.h:17: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?strtoimax? > /mlsyslinux/com32/include/inttypes.h:18: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?strtoumax? > /mlsyslinux/com32/include/inttypes.h:21: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?strntoimax? > /mlsyslinux/com32/include/inttypes.h:22: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?strntoumax? > In file included from /mlsyslinux/com32/include/zconf.h:364, > from /mlsyslinux/com32/include/zlib.h:34, > from /mlsyslinux/com32/libupload/cpio.c:11: > /mlsyslinux/com32/include/sys/types.h:12: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?ssize_t? > /mlsyslinux/com32/include/sys/types.h:14: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?off_t? > In file included from /mlsyslinux/com32/libupload/upload_backend.h:8, > from /mlsyslinux/com32/libupload/cpio.c:12: > /mlsyslinux/com32/libupload/serial.h:15: error: expected declaration specifiers or ?...? before ?size_t? > /mlsyslinux/com32/libupload/serial.h:16: error: expected declaration specifiers or ?...? before ?size_t? > In file included from /mlsyslinux/com32/libupload/cpio.c:12: > /mlsyslinux/com32/libupload/upload_backend.h:19: error: expected specifier-qualifier-list before ?size_t? > /mlsyslinux/com32/libupload/upload_backend.h:34: error: expected declaration specifiers or ?...? before ?size_t? > /mlsyslinux/com32/libupload/upload_backend.h:39: error: expected declaration specifiers or ?...? before ?size_t? > /mlsyslinux/com32/libupload/upload_backend.h:43: error: expected declaration specifiers or ?...? before ?size_t? > /mlsyslinux/com32/libupload/cpio.c: In function ?cpio_pad?: > /mlsyslinux/com32/libupload/cpio.c:18: error: ?struct upload_backend? has no member named ?dbytes? > /mlsyslinux/com32/libupload/cpio.c:19: error: ?struct upload_backend? has no member named ?dbytes? > /mlsyslinux/com32/libupload/cpio.c:19: error: too many arguments to function ?write_data? > /mlsyslinux/com32/libupload/cpio.c: At top level: > /mlsyslinux/com32/libupload/cpio.c:24: error: expected declaration specifiers or ?...? before ?size_t? > /mlsyslinux/com32/libupload/cpio.c: In function ?cpio_hdr?: > /mlsyslinux/com32/libupload/cpio.c:29: warning: implicit declaration of function ?strlen? > /mlsyslinux/com32/libupload/cpio.c:29: warning: incompatible implicit declaration of built-in function ?strlen? > /mlsyslinux/com32/libupload/cpio.c:41: error: ?struct upload_backend? has no member named ?now? > /mlsyslinux/com32/libupload/cpio.c:42: error: ?datalen? undeclared (first use in this function) > /mlsyslinux/com32/libupload/cpio.c:49: error: too many arguments to function ?write_data? > /mlsyslinux/com32/libupload/cpio.c:50: error: too many arguments to function ?write_data? > /mlsyslinux/com32/libupload/cpio.c: In function ?cpio_mkdir?: > /mlsyslinux/com32/libupload/cpio.c:57: error: too many arguments to function ?cpio_hdr? > /mlsyslinux/com32/libupload/cpio.c: At top level: > /mlsyslinux/com32/libupload/cpio.c:61: error: expected declaration specifiers or ?...? before ?size_t? > /mlsyslinux/com32/libupload/cpio.c: In function ?cpio_writefile?: > /mlsyslinux/com32/libupload/cpio.c:65: error: ?len? undeclared (first use in this function) > /mlsyslinux/com32/libupload/cpio.c:65: error: too many arguments to function ?cpio_hdr? > /mlsyslinux/com32/libupload/cpio.c:66: error: too many arguments to function ?write_data? > /mlsyslinux/com32/libupload/cpio.c: In function ?cpio_close?: > /mlsyslinux/com32/libupload/cpio.c:74: error: too many arguments to function ?cpio_hdr? > make[4]: *** [cpio.o] Error 1 > make[4]: Leaving directory `/mlsyslinux/bios/com32/libupload' > make[3]: *** [libupload] Error 2 > make[3]: Leaving directory `/mlsyslinux/bios/com32' > make[2]: *** [com32] Error 2 > make[2]: Leaving directory `/mlsyslinux/bios' > make[1]: *** [bios] Error 2 > make[1]: Leaving directory `/mlsyslinux' > make: *** [bios] Error 2> build steps: > make clean > make bios clean > make bios spotless > make biosThe first command is redundant since you only want bios.> build tools are: > gcc verion:4.1.2 20080704(Red Hat 4.1.2-46) > nasm version:NASM version 2.11.02 compiled on Apr 2 2014 > perl version:5.18.2 built for i686-linux > uuid version:1.0.2Is this an x86 our x86-64 userland?> what's the problem for these errors?The only one that stands out is gcc.> Actually, i want to build pxelinux only, and i don't figure that, so build the whole project. can provide some build instructions for me? thanks guys.Why not use the precompiled binaries? --Gene