[syslinux] compile error about 6.0.2

Geert Stappers stappers at stappers.nl
Sun May 11 22:57:26 PDT 2014


Op 2014-05-12 om 13:08 schreef ????:
> ?? 2014-05-08 18:09:15??"Gene Cumm" <gene.cumm op gmail.com> ??????
> > On May 7, 2014 11:54 PM, "????" <muliu92 op 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??

   <snip/>

> > > /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
> > 
> > The 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.2
> > 
> > Is this an x86 or x86-64 userland?
> 
> It's x86 arch.

Okay. But "x86" doesn't look like the output of `uname -m`.
Please provide the output of

   uname -m



> > > what's the problem for these errors?
> > 
> > The only one that stands out is gcc.

Allready tried with a (much) more recent version of 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?
> > 
> 
> The reason of compiling pxelinux only is that i want to add tcp support,
> not http and ftp.


Feel free to elaborate that idea.



Groeten
Geert Stappers
-- 
Leven en laten leven


More information about the Syslinux mailing list