Bug#1042037: syslinux: FTBFS: main.c:33:8: error: unknown type name ‘jmp_buf’

Lucas Nussbaum <[email protected]>
Newsgroups gmane.linux.debian.devel.cd
Message-ID <ZMA5SoQyC+sTKz4z__33602.4275444046$1690319817$gmane$org@grub.nussbaum.fr>
Source: syslinux
Version: 3:6.04~git20190206.bf6db5b4+dfsg1-3
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> gcc -I/usr/include/efi -I/usr/include/efi/ia32 -DEFI_FUNCTION_WRAPPER -fPIC -fshort-wchar -ffreestanding -fcommon -Wall -I/<<PKGBUILDDIR>>/com32/include -I/<<PKGBUILDDIR>>/com32/include/sys -I/<<PKGBUILDDIR>>/core/include -I/<<PKGBUILDDIR>>/core/ -m32 -march=i386 -I/<<PKGBUILDDIR>>/com32/lib/ -I/<<PKGBUILDDIR>>/com32/libutil/include -std=gnu99 -DELF_DEBUG -DSYSLINUX_EFI -I/<<PKGBUILDDIR>>/efi32 -W -Wall -Wstrict-prototypes  -D__COM32__ -D__FIRMWARE_EFI32__ -mno-red-zone -DLDLINUX=\"ldlinux.e32\" -fvisibility=hidden -Wno-unused-parameter -fno-stack-protector -Wno-strict-prototypes -DDATE_STR='"20200816"' -c -o main.o /<<PKGBUILDDIR>>/efi/main.c
> /<<PKGBUILDDIR>>/efi/main.c:33:8: error: unknown type name ‘jmp_buf’
>    33 | static jmp_buf load_error_buf;
>       |        ^~~~~~~
> /<<PKGBUILDDIR>>/efi/main.c: In function ‘local_boot’:
> /<<PKGBUILDDIR>>/efi/main.c:187:5: warning: implicit declaration of function ‘longjmp’ [-Wimplicit-function-declaration]
>   187 |     longjmp(&load_error_buf, 1);
>       |     ^~~~~~~
> /<<PKGBUILDDIR>>/efi/main.c: In function ‘build_gdt’:
> /<<PKGBUILDDIR>>/efi/main.c:905:82: warning: taking address of packed member of ‘struct dt_desc’ may result in an unaligned pointer value [-Waddress-of-packed-member]
>   905 |         status = emalloc(gdt.limit, __SIZEOF_POINTER__ , (EFI_PHYSICAL_ADDRESS *)&gdt.base);
>       |                                                                                  ^~~~~~~~~
> /<<PKGBUILDDIR>>/efi/main.c: In function ‘efi_main’:
> /<<PKGBUILDDIR>>/efi/main.c:1385:14: warning: implicit declaration of function ‘setjmp’ [-Wimplicit-function-declaration]
>  1385 |         if (!setjmp(&load_error_buf))
>       |              ^~~~~~
> make[5]: *** [/<<PKGBUILDDIR>>/mk/efi.mk:71: main.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2023/07/24/syslinux_6.04~git20190206.bf6db5b4+dfsg1-3_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.