Re: [patch] xine-ui snapshot build error with lirc

Petri Hintukainen via xine-devel <[email protected]> Fri, 03 Jul 2020 13:49:56 +0300
Newsgroups gmane.comp.video.xine.devel
Message-ID <2c7fcadb474ce567426c4f144ce9a8c778048565.camel@users.sourceforge.net>
to, 2020-07-02 kello 23:20 +0200, Xavier Bachelot kirjoitti:
> Hi,
> 
> When building a snapshot of xine-ui (commit 301adf) with lirc
> support 
> enabled, the builds error out with the following :
> 
> lirc.c: In function 'lirc_start':
> lirc.c:149:3: error: implicit declaration of function 'fcntl' 
> [-Werror=implicit-function-declaration]
>    149 |   fcntl(lirc.fd, F_SETFD, FD_CLOEXEC);
>        |   ^~~~~
> lirc.c:149:3: warning: nested extern declaration of 'fcntl' 
> [-Wnested-externs]
> lirc.c:149:18: error: 'F_SETFD' undeclared (first use in this
> function)
>    149 |   fcntl(lirc.fd, F_SETFD, FD_CLOEXEC);
>        |                  ^~~~~~~
> lirc.c:149:18: note: each undeclared identifier is reported only
> once 
> for each function it appears in
> lirc.c:149:27: error: 'FD_CLOEXEC' undeclared (first use in this
> function)
>    149 |   fcntl(lirc.fd, F_SETFD, FD_CLOEXEC);
>        |                           ^~~~~~~~~~
> lirc.c:150:18: error: 'F_SETOWN' undeclared (first use in this
> function)
>    150 |   fcntl(lirc.fd, F_SETOWN, getpid());
>        |                  ^~~~~~~~
> lirc.c:151:26: error: 'F_GETFL' undeclared (first use in this
> function)
>    151 |   flags = fcntl(lirc.fd, F_GETFL, 0);
>        |                          ^~~~~~~
> lirc.c:153:20: error: 'F_SETFL' undeclared (first use in this
> function)
>    153 |     fcntl(lirc.fd, F_SETFL, flags|O_NONBLOCK);
>        |                    ^~~~~~~
> lirc.c:153:35: error: 'O_NONBLOCK' undeclared (first use in this
> function)
>    153 |     fcntl(lirc.fd, F_SETFL, flags|O_NONBLOCK);
>        |                                   ^~~~~~~~~~
> cc1: some warnings being treated as errors
> make[4]: *** [Makefile:934: lirc.o] Error 1
> 
> 
> Patch attached.

Applied. Thanks!

> Regards,
> Xavier
> _______________________________________________
> xine-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xine-devel