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

Gabriele Giacone 1o5g4r8o at gmail.com
Tue Feb 18 17:28:00 CET 2014


On Tue, Feb 18, 2014 at 7:53 AM, Rafaël Carré <funman at videolan.org> wrote:
> Why do you need OSS then?

Good point. Idea was building everything but disabling OSS would be better.

> Do you have some emulation sending the audio from /dev/dsp to somewhere
> else ?

Nope.

>> 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).
>
> Did you actually test VCD ?

Didn't test it. Might be disabled along with OSS.

>>> 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.
>> Both _POSIX_MONOTONIC_CLOCK and _POSIX_CLOCK_SELECTION >0 implies
>> _POSIX_TIMERS >0.
>> On Hurd, _POSIX_TIMERS equals to 0 (see [1]), patch adds a
>> _POSIX_TIMERS check to not match _POSIX_CLOCK_SELECTION >0 only case.
>
> Can you post your build error?

[...]
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..
-DMODULE_STRING=\"main\" -DLOCALEDIR=\"/usr/share/locale\"
-DPKGDATADIR=\"/usr/share/vlc\" -DPKGLIBDIR=\"/usr/lib/vlc\"
-DHAVE_DYNAMIC_PLUGINS -DHAVE_DBUS -I../include -I../include
-D_FORTIFY_SOURCE=2 -I/usr/include/dbus-1.0
-I/usr/lib/i386-gnu/dbus-1.0/include -g -O2 -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall
-Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast
-Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var
-Werror-implicit-function-declaration -pipe -fvisibility=hidden
-ffast-math -funroll-loops -fomit-frame-pointer -c posix/thread.c
-fPIC -DPIC -o posix/.libs/thread.o
posix/thread.c:116:3: warning: #warning Monotonic clock not available.
Expect timing issues. [-Wcpp]
 # warning Monotonic clock not available. Expect timing issues.
   ^
posix/thread.c: In function 'vlc_cond_init':
posix/thread.c:332:39: error: 'vlc_clock_id' undeclared (first use in
this function)
     pthread_condattr_setclock (&attr, vlc_clock_id);
                                       ^
posix/thread.c:332:39: note: each undeclared identifier is reported
only once for each function it appears in
posix/thread.c: In function 'mwait':
posix/thread.c:936:17: error: 'vlc_clock_prec' undeclared (first use
in this function)
     deadline -= vlc_clock_prec;
                 ^
posix/thread.c:940:29: error: 'vlc_clock_id' undeclared (first use in
this function)
     while (clock_nanosleep (vlc_clock_id, TIMER_ABSTIME, &ts, NULL) == EINTR);
                             ^
posix/thread.c: In function 'msleep':
posix/thread.c:961:29: error: 'vlc_clock_id' undeclared (first use in
this function)
     while (clock_nanosleep (vlc_clock_id, 0, &ts, &ts) == EINTR);
                             ^
make[4]: *** [posix/thread.lo] Error 1
make[4]: Leaving directory `/home/user/vlc/vlc-2.1.2/src'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/user/vlc/vlc-2.1.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/user/vlc/vlc-2.1.2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/user/vlc/vlc-2.1.2'
dh_auto_build: make -j1 returned exit code 2
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2



-- 
G..e



More information about the vlc-devel mailing list