Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hurd FTBFS #626

Open
markhindley opened this issue Apr 23, 2023 · 1 comment
Open

Hurd FTBFS #626

markhindley opened this issue Apr 23, 2023 · 1 comment

Comments

@markhindley
Copy link
Contributor

markhindley commented Apr 23, 2023

Hi,

I have been investigating 2 recent Debian FTBFS on Hurd:-

make[1]: Entering directory '/<>'
dh_auto_configure -- --libexecdir=lib
cd obj-i686-gnu && LC_ALL=C.UTF-8 meson .. --wrap-mode=nodownload --buildtype=plain --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=lib/i386-gnu --libexecdir=lib
The Meson build system
Version: 0.63.0
Source dir: /<>
Build dir: /<>/obj-i686-gnu
Build type: native build
Project name: OpenRC
Project version: 0.45.2
C compiler for the host machine: cc (gcc 11.2.0 "cc (Debian 11.2.0-16) 11.2.0")
C linker for the host machine: cc ld.bfd 2.38.90.20220713
Host machine cpu family: x86
Host machine cpu: i686-at386
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency audit found: NO (tried pkgconfig and cmake)
Program uname found: YES (/bin/uname)
WARNING: You should add the boolean check kwarg to the run_command call.
It currently defaults to false,
but it will default to true in future releases of meson.
See also: mesonbuild/meson#9300

../meson.build:47:2: ERROR: C shared or static library 'kvm' not found

And

FAILED: src/start-stop-daemon/start-stop-daemon.p/start-stop-daemon.c.o
cc -Isrc/start-stop-daemon/start-stop-daemon.p -Isrc/start-stop-daemon -I../src/start-stop-daemon -Isrc/shared -I../src/shared -Isrc/libeinfo -I../src/libeinfo -Isrc/librc -I../src/librc -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c99 -D_DEFAULT_SOURCE -DMAXPATHLEN=4096 -DPATH_MAX=4096 -Wcast-align -Wcast-qual -Wdeclaration-after-statement -Wformat=2 -Winline -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wsequence-point -Wshadow -Wwrite-strings -Werror=implicit-function-declaration -DHAVE_MALLOC_EXTENDED_ATTRIBUTE -DHAVE_CLOSEFROM -DHAVE_CLOSE_RANGE_CLOEXEC -g -O2 -ffile-prefix-map=/<>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -MD -MQ src/start-stop-daemon/start-stop-daemon.p/start-stop-daemon.c.o -MF src/start-stop-daemon/start-stop-daemon.p/start-stop-daemon.c.o.d -o src/start-stop-daemon/start-stop-daemon.p/start-stop-daemon.c.o -c ../src/start-stop-daemon/start-stop-daemon.c
../src/start-stop-daemon/start-stop-daemon.c: In function ‘main’:
../src/start-stop-daemon/start-stop-daemon.c:865:13: error: implicit declaration of function ‘pipe2’; did you mean ‘pipe’? [-Werror=implicit-function-declaration]
865 | if (pipe2(pipefd, O_CLOEXEC) == -1)
| ^~~~~
| pipe
../src/start-stop-daemon/start-stop-daemon.c:865:13: warning: nested extern declaration of ‘pipe2’ [-Wnested-externs]

The attached patches fix both issues for me.

Mark

0001-Fix-FTBFS-on-GNU-Hurd-define-_GNU_SOURCE-so-unistd.h.txt
0005-Fix-FTBFS-on-Hurd.txt

@vapier
Copy link
Member

vapier commented Apr 23, 2023

please send PRs instead of attaching files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants