|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Failed to compile on Ubuntu 26.04 (qemu vs. glibc)
Dear colleagues,I would like to install Xen 3.22 (or 3.21) on Ubuntu. But the compilation of qemu fails with this error message: initialisation discards ‘const’ qualifier from pointer target typeThis affects the definition of variables for strstr(), because since glibc 2.42.9000 the return type of strstr() and other string functions changed to be 'const char *' when the input is a 'const char *'. Ubuntu 26.04 uses a patched version based on QEMU 10.2.1 (https://packages.ubuntu.com/resolute/qemu-system-x86-xen) I am in the process of replacing the missing ‘const’ declarations, but I wonder whether a backport might be simpler. See e.g. this commit: https://gitlab.com/qemu-project/qemu/-/commit/326e620fc0145686124f754194cdc6d0d9b3400d These commits are only available since V10.2.0 See also here: https://git.redxen.eu/RepoMirrors/qemu/commit/326e620fc0145686124f754194cdc6d0d9b3400dThese files are failing with this error so far, I am still in pathcing progress: tools/qemu-xen-dir-remote/util/log.c tools/qemu-xen-dir-remote/util/qemu-sockets.c tools/qemu-xen-dir-remote/subprojects/dtc/libfdt/fdt_overlay.c tools/qemu-xen-dir-remote/gdbstub/gdbstub.c tools/qemu-xen-dir-remote/block/vmdk.c tools/qemu-xen-dir-remote/block/vvfat.c: tools/qemu-xen-dir-remote/ui/ui-hmp-cmds.c tools/qemu-xen-dir-remote/backends/tpm/tpm_passthrough.c Best regards, Kelly. -- Pronomen: er/ihm | pronoun: he/him werk21 GmbH Online-Lösungen für Zivilgesellschaft, Politik und Verwaltung Oranienburger Straße 87/89, 10178 Berlin Tel: (030) 28 48 48 30 https://www.werk21.de Geschäftsführer*innen: Jan Kellermann, Johannes Stahl, Susanne Fritsche HRB 131204 - Berlin-Charlottenburg - Sitz: Berlin
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |