[syslinux] Problems compiling syslinux on Debian 10

Didier Spaier didier at slint.fr
Wed Oct 19 02:28:21 PDT 2022


Le 19/10/2022 à 10:12, Tom Lisjac via Syslinux a écrit :
> Trying build syslinux 6.01, 02 or 03 on Debian 10 (gcc 8.3.0) using sources from http://www.kernel.org/pub/linux/utils/boot/syslinux/ 
> 
> The compiles for 6.01 and 02 throw several of these errors before aborting: 
> 
> In file included from /home/dev/syslinux/syslinux-6.01/lzo/src/lzo_conf.h:125, 
> from /home/dev/syslinux/syslinux-6.01/lzo/src/lzo_init.c:41: 
> /home/dev/syslinux/syslinux-6.01/lzo/src/miniacc.h:1666:59: error: variably modified ‘__acc_cta’ at file scope 
> # define ACC_COMPILE_TIME_ASSERT_HEADER(e) extern int __acc_cta[1-2*!(e)]; 
> ^~~~~~~~~ 
> syslinux-6.01/mk/build.mk:29: src/lzo_init.o] Error 1 
> syslinux-6.01/Makefile:268: lzo] Error 2 
> syslinux-6.01/Makefile:240: bios] Error 2 
> 
> The 6.03 compile exits after nasm with: 
> 
> ld -m elf_i386 -Bsymbolic -pie -E --hash-style=gnu -T /home/dev/syslinux/syslinux-6.03/core/i386/syslinux.ld -M -o ldlinux.elf ldlinux.o \ 
> --start-group libcom32.a --whole-archive /home/dev/syslinux/syslinux-6.03/bios/com32/lib/libcom32core.a libldlinux.a --end-group \ 
>> ldlinux.map 
> ld: ldlinux.elf: not enough room for program headers, try linking with -N 
> ld: final link failed: bad value 
> 
> syslinux-6.03/core/Makefile:167: ldlinux.elf] Error 1 
> syslinux-6.03/Makefile:286: core] Error 2 
> syslinux-6.03/Makefile:255: bios] Error 2 
> 
> Posting here as I haven't found a solution and need to get a recent version of this package compiled. Any suggestions would be greatly appreciated. 
> 
> Thanks, 
> 
> -Tom 

Hi Tom,

why not use or re-build the package shipped in Debian 10?
https://packages.debian.org/buster/syslinux

Cheers,
Didier


More information about the Syslinux mailing list