[mythtv] win32 build r19684 fails on lirc.cpp

Eric Bosch eric.bosch at comcast.net
Thu Jan 15 21:31:24 UTC 2009


Do you actually use LIRC in Windows?  I simply added "--disable lirc" to
the configure string in the script to get past this problem.  There's an
additional item that you will have to comment out of the source.  I
don't know exactly where it is now, but I believe
mythtv/programs/mythfrontend/main.c, there is a SIGUSR2 that is
documented as LIRC involved that you can simply comment out the line.


Jonathan Martens wrote:
> Today I have treid to compile MythTV on windows after a long time with 
> the following error:
>
> gcc -c -march=k8 -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -fasm 
> -std=c99 -g -Wa
> ll -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls 
> -Wcast-
> qual -funit-at-a-time -Wwrite-strings -fno-math-errno 
> -DQT_LARGEFILE_SUPPORT -DU
> SING_MINGW -DUSING_WINAUDIO -DUSING_D3D -DMMX -Di386 -DUSING_DIRECTX 
> -D_GNU_SOUR
> CE -D_FILE_OFFSET_BITS=64 -DUSE_LIRC -DUSE_OPENGL_PAINTER 
> -DQT_THREAD_SUPPORT -D
> QT_DLL -DQT_SQL_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB 
> -DQT_NETWORK_LIB -
> DQT_CORE_LIB 
> -I'../../../../MSys/1.0/qt-win-opensource-src-4.4.0/include/QtCore'
>   -I'../../../../MSys/1.0/qt-win-opensource-src-4.4.0/include/QtCore' 
> -I'../../..
> /../MSys/1.0/qt-win-opensource-src-4.4.0/include/QtNetwork' 
> -I'../../../../MSys/
> 1.0/qt-win-opensource-src-4.4.0/include/QtNetwork' 
> -I'../../../../MSys/1.0/qt-wi
> n-opensource-src-4.4.0/include/QtGui' 
> -I'../../../../MSys/1.0/qt-win-opensource-
> src-4.4.0/include/QtGui' 
> -I'../../../../MSys/1.0/qt-win-opensource-src-4.4.0/inc
> lude/QtOpenGL' 
> -I'../../../../MSys/1.0/qt-win-opensource-src-4.4.0/include/QtOpe
> nGL' -I'../../../../MSys/1.0/qt-win-opensource-src-4.4.0/include/QtXml' 
> -I'../..
> /../../MSys/1.0/qt-win-opensource-src-4.4.0/include/QtXml' 
> -I'../../../../MSys/1
> .0/qt-win-opensource-src-4.4.0/include/QtSql' 
> -I'../../../../MSys/1.0/qt-win-ope
> nsource-src-4.4.0/include/QtSql' 
> -I'../../../../MSys/1.0/qt-win-opensource-src-4
> .4.0/include' -I'u:/mythtv/19684/build//include' -I'../libmythdb' 
> -I'../..' -I'.
> .' -I'u:/MSys/1.0/qt-win-opensource-src-4.4.0/include/ActiveQt' -I'.' 
> -I'.' -I'.
> ./../../../MSys/1.0/qt-win-opensource-src-4.4.0/mkspecs/win32-g++' -o 
> lirc_clien
> t.o lirc_client.c
> lirc.cpp:29:24: sys/socket.h: No such file or directory
> lirc.cpp:30:24: sys/select.h: No such file or directory
> lirc.cpp:31:20: sys/un.h: No such file or directory
> lirc.cpp:32:24: netinet/in.h: No such file or directory
> lirc.cpp:33:23: arpa/inet.h: No such file or directory
> lirc.cpp:34:19: netdb.h: No such file or directory
> lirc.cpp:37:22: sys/wait.h: No such file or directory
> lirc.cpp: In function `QByteArray get_ip(const QString&)':
> lirc.cpp:133: error: aggregate `in_addr sin_addr' has incomplete type 
> and cannot
>   be defined
> lirc.cpp:134: error: `inet_aton' was not declared in this scope
> lirc.cpp:134: warning: unused variable 'inet_aton'
> lirc.cpp:137: error: aggregate `addrinfo hints' has incomplete type and 
> cannot b
> e defined
> lirc.cpp:139: error: `AF_INET' was not declared in this scope
> lirc.cpp:140: error: `SOCK_STREAM' was not declared in this scope
> lirc.cpp:141: error: `IPPROTO_TCP' was not declared in this scope
> lirc.cpp:144: error: `getaddrinfo' was not declared in this scope
> lirc.cpp:147: error: `gai_strerror' was not declared in this scope
> lirc.cpp:147: warning: unused variable 'gai_strerror'
> lirc.cpp:151: error: invalid use of undefined type `struct addrinfo'
> lirc.cpp:137: error: forward declaration of `struct addrinfo'
> lirc.cpp:154: error: `freeaddrinfo' was not declared in this scope
> lirc.cpp:154: warning: unused variable 'freeaddrinfo'
> lirc.cpp:158: error: invalid use of undefined type `struct addrinfo'
> lirc.cpp:137: error: forward declaration of `struct addrinfo'
> lirc.cpp:160: error: `freeaddrinfo' was not declared in this scope
> lirc.cpp:160: warning: unused variable 'freeaddrinfo'
> lirc.cpp:164: error: invalid use of undefined type `struct addrinfo'
> lirc.cpp:137: error: forward declaration of `struct addrinfo'
> lirc.cpp:165: error: `inet_ntoa' was not declared in this scope
> lirc.cpp:166: error: `freeaddrinfo' was not declared in this scope
> lirc.cpp:140: warning: unused variable 'SOCK_STREAM'
> lirc.cpp:141: warning: unused variable 'IPPROTO_TCP'
> lirc.cpp:144: warning: unused variable 'getaddrinfo'
> lirc.cpp:165: warning: unused variable 'inet_ntoa'
> lirc.cpp:166: warning: unused variable 'freeaddrinfo'
> lirc.cpp: In member function `bool LIRC::Init()':
> lirc.cpp:193: error: `AF_UNIX' was not declared in this scope
> lirc.cpp:193: error: `SOCK_STREAM' was not declared in this scope
> lirc.cpp:193: error: `socket' was not declared in this scope
> lirc.cpp:203: error: aggregate `sockaddr_un addr' has incomplete type 
> and cannot
>   be defined
> lirc.cpp:204: error: invalid application of `sizeof' to incomplete type 
> `sockadd
> r_un'
> lirc.cpp:208: error: `connect' is not a member of `POSIX'
> lirc.cpp:193: warning: unused variable 'SOCK_STREAM'
> lirc.cpp:193: warning: unused variable 'socket'
> lirc.cpp:223: error: `AF_INET' was not declared in this scope
> lirc.cpp:223: error: `SOCK_STREAM' was not declared in this scope
> lirc.cpp:223: error: `IPPROTO_TCP' was not declared in this scope
> lirc.cpp:223: error: `socket' was not declared in this scope
> lirc.cpp:242: error: aggregate `sockaddr_in addr' has incomplete type 
> and cannot
>   be defined
> lirc.cpp:243: error: invalid application of `sizeof' to incomplete type 
> `sockadd
> r_in'
> lirc.cpp:245: error: `htons' was not declared in this scope
> lirc.cpp:247: error: `inet_aton' was not declared in this scope
> lirc.cpp:247: warning: unused variable 'inet_aton'
> lirc.cpp:256: error: `connect' is not a member of `POSIX'
> lirc.cpp:271: error: `F_GETFD' was not declared in this scope
> lirc.cpp:271: error: `fcntl' was not declared in this scope
> lirc.cpp:274: error: `F_SETFD' was not declared in this scope
> lirc.cpp:274: error: `O_NONBLOCK' was not declared in this scope
> lirc.cpp:274: warning: unused variable 'F_SETFD'
> lirc.cpp:274: warning: unused variable 'O_NONBLOCK'
> lirc.cpp:285: error: `SOL_SOCKET' was not declared in this scope
> lirc.cpp:285: error: `SO_OOBINLINE' was not declared in this scope
> lirc.cpp:285: error: `setsockopt' was not declared in this scope
> lirc.cpp:287: error: `SO_KEEPALIVE' was not declared in this scope
> lirc.cpp:223: warning: unused variable 'SOCK_STREAM'
> lirc.cpp:223: warning: unused variable 'IPPROTO_TCP'
> lirc.cpp:223: warning: unused variable 'socket'
> lirc.cpp:245: warning: unused variable 'htons'
> lirc.cpp:271: warning: unused variable 'F_GETFD'
> lirc.cpp:285: warning: unused variable 'SO_OOBINLINE'
> lirc.cpp:287: warning: unused variable 'SO_KEEPALIVE'
> lirc.cpp: In member function `virtual void LIRC::run()':
> lirc.cpp:439: error: `fd_set' was not declared in this scope
> lirc.cpp:439: error: expected `;' before "readfds"
> lirc.cpp:440: error: `readfds' was not declared in this scope
> lirc.cpp:440: error: `FD_ZERO' was not declared in this scope
> lirc.cpp:441: error: `FD_SET' was not declared in this scope
> lirc.cpp:444: error: aggregate `timeval timeout' has incomplete type and 
> cannot
> be defined
> lirc.cpp:448: error: `select' was not declared in this scope
> lirc.cpp:439: warning: unused variable 'fd_set'
> lirc.cpp:440: warning: unused variable 'FD_ZERO'
> lirc.cpp:441: warning: unused variable 'FD_SET'
> lirc.cpp:448: warning: unused variable 'select'
> make[2]: *** [lirc.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> lirc_client.c:26:24: sys/socket.h: No such file or directory
> lirc_client.c:27:20: sys/un.h: No such file or directory
> lirc_client.c:30:22: sys/wait.h: No such file or directory
> lirc_client.c: In function `lirc_init':
> lirc_client.c:139: error: storage size of 'addr' isn't known
> lirc_client.c:158: warning: implicit declaration of function `strdup'
> lirc_client.c:158: warning: assignment makes pointer from integer 
> without a cast
>
> lirc_client.c:166: warning: assignment makes pointer from integer 
> without a cast
>
> lirc_client.c:174: warning: assignment makes pointer from integer 
> without a cast
>
> lirc_client.c:184: error: `AF_UNIX' undeclared (first use in this function)
> lirc_client.c:184: error: (Each undeclared identifier is reported only once
> lirc_client.c:184: error: for each function it appears in.)
> lirc_client.c:186: warning: implicit declaration of function `socket'
> lirc_client.c:186: error: `SOCK_STREAM' undeclared (first use in this 
> function)
> lirc_client.c:194: warning: implicit declaration of function `connect'
> lirc_client.c:139: warning: unused variable `addr'
> lirc_client.c: In function `lirc_mode':
> lirc_client.c:474: warning: implicit declaration of function `strcasecmp'
> lirc_client.c:158: warning: redundant redeclaration of 'strdup'
> lirc_client.c:158: warning: previous implicit declaration of 'strdup' 
> was here
> lirc_client.c:516: warning: assignment makes pointer from integer 
> without a cast
>
> lirc_client.c:158: warning: redundant redeclaration of 'strdup'
> lirc_client.c:158: warning: previous implicit declaration of 'strdup' 
> was here
> lirc_client.c:569: warning: assignment makes pointer from integer 
> without a cast
>
> lirc_client.c: In function `lirc_flags':
> lirc_client.c:474: warning: redundant redeclaration of 'strcasecmp'
> lirc_client.c:474: warning: previous implicit declaration of 
> 'strcasecmp' was he
> re
> lirc_client.c: In function `lirc_getfilename':
> lirc_client.c:158: warning: redundant redeclaration of 'strdup'
> lirc_client.c:158: warning: previous implicit declaration of 'strdup' 
> was here
> lirc_client.c:735: warning: assignment makes pointer from integer 
> without a cast
>
> lirc_client.c: In function `lirc_open':
> lirc_client.c:158: warning: redundant redeclaration of 'strdup'
> lirc_client.c:158: warning: previous implicit declaration of 'strdup' 
> was here
> lirc_client.c:800: warning: assignment makes pointer from integer 
> without a cast
>
> lirc_client.c: In function `lirc_readconfig':
> lirc_client.c:862: error: storage size of 'addr' isn't known
> lirc_client.c:883: error: `AF_UNIX' undeclared (first use in this function)
> lirc_client.c:186: warning: redundant redeclaration of 'socket'
> lirc_client.c:186: warning: previous implicit declaration of 'socket' 
> was here
> lirc_client.c:889: error: `SOCK_STREAM' undeclared (first use in this 
> function)
> lirc_client.c:194: warning: redundant redeclaration of 'connect'
> lirc_client.c:194: warning: previous implicit declaration of 'connect' 
> was here
> lirc_client.c:929: warning: implicit declaration of function `WEXITSTATUS'
> lirc_client.c:194: warning: redundant redeclaration of 'connect'
> lirc_client.c:194: warning: previous implicit declaration of 'connect' 
> was here
> lirc_client.c:862: warning: unused variable `addr'
> lirc_client.c: In function `lirc_readconfig_only_internal':
> lirc_client.c:158: warning: redundant redeclaration of 'strdup'
> lirc_client.c:158: warning: previous implicit declaration of 'strdup' 
> was here
> lirc_client.c:1026: warning: assignment makes pointer from integer 
> without a cas
> t
> lirc_client.c:474: warning: redundant redeclaration of 'strcasecmp'
> lirc_client.c:474: warning: previous implicit declaration of 
> 'strcasecmp' was he
> re
> lirc_client.c:158: warning: redundant redeclaration of 'strdup'
> lirc_client.c:158: warning: previous implicit declaration of 'strdup' 
> was here
> lirc_client.c:1146: warning: assignment makes pointer from integer 
> without a cas
> t
> lirc_client.c:474: warning: redundant redeclaration of 'strcasecmp'
> lirc_client.c:474: warning: previous implicit declaration of 
> 'strcasecmp' was he
> re
> lirc_client.c:1213: warning: assignment makes pointer from integer 
> without a cas
> t
> lirc_client.c:158: warning: redundant redeclaration of 'strdup'
> lirc_client.c:158: warning: previous implicit declaration of 'strdup' 
> was here
> lirc_client.c:1351: warning: pointer/integer type mismatch in 
> conditional expres
> sion
> lirc_client.c: In function `lirc_startupmode':
> lirc_client.c:474: warning: redundant redeclaration of 'strcasecmp'
> lirc_client.c:474: warning: previous implicit declaration of 
> 'strcasecmp' was he
> re
> lirc_client.c:474: warning: redundant redeclaration of 'strcasecmp'
> lirc_client.c:474: warning: previous implicit declaration of 
> 'strcasecmp' was he
> re
> lirc_client.c: In function `lirc_clearmode':
> lirc_client.c:474: warning: redundant redeclaration of 'strcasecmp'
> lirc_client.c:474: warning: previous implicit declaration of 
> 'strcasecmp' was he
> re
> lirc_client.c: In function `lirc_execute':
> lirc_client.c:158: warning: redundant redeclaration of 'strdup'
> lirc_client.c:158: warning: previous implicit declaration of 'strdup' 
> was here
> lirc_client.c:1525: warning: assignment makes pointer from integer 
> without a cas
> t
> lirc_client.c:474: warning: redundant redeclaration of 'strcasecmp'
> lirc_client.c:474: warning: previous implicit declaration of 
> 'strcasecmp' was he
> re
> lirc_client.c: In function `lirc_iscode':
> lirc_client.c:474: warning: redundant redeclaration of 'strcasecmp'
> lirc_client.c:474: warning: previous implicit declaration of 
> 'strcasecmp' was he
> re
> lirc_client.c:474: warning: redundant redeclaration of 'strcasecmp'
> lirc_client.c:474: warning: previous implicit declaration of 
> 'strcasecmp' was he
> re
> lirc_client.c:474: warning: redundant redeclaration of 'strcasecmp'
> lirc_client.c:474: warning: previous implicit declaration of 
> 'strcasecmp' was he
> re
> lirc_client.c: In function `lirc_code2char_internal':
> lirc_client.c:158: warning: redundant redeclaration of 'strdup'
> lirc_client.c:158: warning: previous implicit declaration of 'strdup' 
> was here
> lirc_client.c:1727: warning: assignment makes pointer from integer 
> without a cas
> t
> lirc_client.c:474: warning: redundant redeclaration of 'strcasecmp'
> lirc_client.c:474: warning: previous implicit declaration of 
> 'strcasecmp' was he
> re
> lirc_client.c: In function `lirc_nextcode':
> lirc_client.c:158: warning: redundant redeclaration of 'strdup'
> lirc_client.c:158: warning: previous implicit declaration of 'strdup' 
> was here
> lirc_client.c:1856: warning: assignment makes pointer from integer 
> without a cas
> t
> lirc_client.c: In function `lirc_setmode':
> lirc_client.c:158: warning: redundant redeclaration of 'strdup'
> lirc_client.c:158: warning: previous implicit declaration of 'strdup' 
> was here
> lirc_client.c:1934: warning: pointer/integer type mismatch in 
> conditional expres
> sion
> lirc_client.c: In function `lirc_read_string':
> lirc_client.c:1945: error: `fd_set' undeclared (first use in this function)
> lirc_client.c:1945: error: syntax error before "fds"
> lirc_client.c:1946: error: storage size of 'tv' isn't known
> lirc_client.c:1973: warning: implicit declaration of function `FD_ZERO'
> lirc_client.c:1973: error: `fds' undeclared (first use in this function)
> lirc_client.c:1974: warning: implicit declaration of function `FD_SET'
> lirc_client.c:1979: warning: implicit declaration of function `select'
> lirc_client.c:1946: warning: unused variable `tv'
> lirc_client.c: In function `lirc_send_command':
> lirc_client.c:474: warning: redundant redeclaration of 'strcasecmp'
> lirc_client.c:474: warning: previous implicit declaration of 
> 'strcasecmp' was he
> re
> lirc_client.c:2064: warning: implicit declaration of function `strncasecmp'
> lirc_client.c:474: warning: redundant redeclaration of 'strcasecmp'
> lirc_client.c:474: warning: previous implicit declaration of 
> 'strcasecmp' was he
> re
> lirc_client.c:474: warning: redundant redeclaration of 'strcasecmp'
> lirc_client.c:474: warning: previous implicit declaration of 
> 'strcasecmp' was he
> re
> lirc_client.c:474: warning: redundant redeclaration of 'strcasecmp'
> lirc_client.c:474: warning: previous implicit declaration of 
> 'strcasecmp' was he
> re
> make[2]: *** [lirc_client.o] Error 1
> make[2]: Leaving directory `/u/mythtv/mythtv/libs/libmythui'
> make[1]: *** [sub-libmythui-make_default-ordered] Error 2
> make[1]: Leaving directory `/u/mythtv/mythtv/libs'
> make: *** [sub-libs-make_default-ordered] Error 2
> EFFECT FAILED (newer -> shell): mtime of file 
> (U:/mythtv/mythtv/libs/libmyth/lib
> myth-0.22.dll) should be greater than file 
> (U:/mythtv/mythtv/last_build.txt).
> [0]  [1232031282]
>
> Those files where introduced as a fix of issue #6041 in revision 19519. 
> Should I add this to/reopen issue #6041 or should I open a new ticket 
> for this?
>
> Kind regards,
>
> Jonathan
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>
>   



More information about the mythtv-dev mailing list