[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pipe2 & configure script

From: Paolo Bonzini
Subject: Re: pipe2 & configure script
Date: Wed, 7 Jul 2021 16:36:52 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 07/07/21 06:42, Thomas Huth wrote:
What conditions are required for "#define CONFIG_PIPE2" to be set in build/config-host.h? It prevents building for Haiku as pipe2() doesn't exist. I didn't see anything in the configure script regarding pipe2. I also updated my code to the latest in the repository and this issue just popped up.

CONFIG_PIPE2 is set from meson.build instead of the configure script. But why is this blocking your build? The only relevant spot is in util/oslib-posix.c and there is a fallback to the normal pipe() function there...

I suspect the compilation is succeeding with a warning, but linking is not successful. The correct fix is anyway to use a linker test, because a compiler test would not detect a broken system header/library combo, where the prototype is defined but the function is not included.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]