Wine 5.0.4 regression: build failure in dlls/qcap/v4l.c

Zebediah Figura (she/her) zfigura at codeweavers.com
Tue Mar 30 10:55:33 CDT 2021


On 3/30/21 2:06 AM, Gerald Pfeifer wrote:
> The following patch (full version at the end)
> 
>      commit cb8e15a64307e580123b459e4c5964dc7b0d73d9
>      Author: Huw D. M. Davies <huw at codeweavers.com>
>      Date:   Tue Dec 22 14:26:36 2020 +0000
> 
>          qcap: Avoid unused variable warning if v4l is absent.
> 
> broke builds of Wine 5.0.4 where v4l is not present, specifically when
> the header <linux/videodev2.h> is not available.
> 
> Configuring with --without-v4l2 does not trigger this; it really is
> about the presence of the header.
> 
> The failure mode is
> 
>    In file included from v4l.c:60:
>    v4l.c: In function 'qcap_driver_destroy':
>    ../../include/wine/debug.h:485:56: error: '__wine_dbch___default' undeclared (first use in this function)
>    :
>    v4l.c:602:5: note: in expansion of macro 'ERR'
>      602 |     ERR("v4l absent: shouldn't be called\n"); \
>          |     ^~~
>    v4l.c:607:5: note: in expansion of macro 'FAIL_WITH_ERR'
>      607 |     FAIL_WITH_ERR;
>          |     ^~~~~~~~~~~~~
> 
> and the straightforward fix is simply reverting this patch.
>   
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254601 has more details.
> 
> Gerald

Sorry for missing this. Gerald is correct; this patch should not have 
been picked to wine-stable.



More information about the wine-devel mailing list