[vlc-devel] [#10696] Build fails on GNU/Hurd

Gabriele Giacone 1o5g4r8o at gmail.com
Tue Feb 18 03:08:44 CET 2014

Following up https://trac.videolan.org/vlc/ticket/10696


courmisch wrote:
> The OSS patch results in unconditionnaly undefined behaviour, not to
> mention that I do not see the point disabling calls mandatory in the OSSv4
> specification.
> The VCD patch does not seem to make any sense either.

I'm aware my patches ifdef'ing ioctls are more than ugly, but
currently GNU/Hurd has no sound support at all and there are no plans
about working on it.
To get a successful build, hurd.diff was enough (thread + OSS
patches). Then given current Debian packaging considers CDDA enabled
on all archs, I added hurd02.diff to enable CDDA (CDDA patch) and make
the build succeed again (VCD patch).

> The thread patch makes no sense to me since _POSIX_TIMERS <= 0
> is already addressed at the beginning of the file.

As far as I understand, Hurd case is not addressed well.
On Hurd, _POSIX_TIMERS equals to 0 (see [1]), patch adds a
_POSIX_TIMERS check to not match _POSIX_CLOCK_SELECTION >0 only case.
If I'm wrong, I could replace them with __GNU__ ifdefs.

[1] http://sources.debian.net/src/eglibc/2.17-93/sysdeps/mach/hurd/bits/posix_opt.h?hl=154#L153


More information about the vlc-devel mailing list