* Package: app-misc/irtrans-irserver-6.09.04-r1 * Repository: gentoo * Maintainer: mario.fetka@gmail.com proxy-maint@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox >>> Unpacking source... >>> Unpacking irserver-src-6.09.04.tar.gz to /var/tmp/portage/app-misc/irtrans-irserver-6.09.04-r1/work >>> Unpacking irserver-6.09.04.tar.gz to /var/tmp/portage/app-misc/irtrans-irserver-6.09.04-r1/work >>> Source unpacked in /var/tmp/portage/app-misc/irtrans-irserver-6.09.04-r1/work >>> Preparing source in /var/tmp/portage/app-misc/irtrans-irserver-6.09.04-r1/work ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/app-misc/irtrans-irserver-6.09.04-r1/work ... >>> Source configured. >>> Compiling source in /var/tmp/portage/app-misc/irtrans-irserver-6.09.04-r1/work ... * please use append-cppflags for preprocessor flags make -j1 CXX=x86_64-pc-linux-gnu-g++ CC=x86_64-pc-linux-gnu-gcc 'CFLAGS=-O2 -pipe -march=native -falign-functions=32:25:16 -fno-common -Werror=format-security -Wformat -DLINUX -DMEDIACENTER' 'CXXFLAGS=-O2 -pipe -march=native -falign-functions=32:25:16 -fno-common -Werror=format-security -Wformat -DLINUX -DMEDIACENTER' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 --static' irserver64 x86_64-pc-linux-gnu-gcc -DLINUX -DMEDIACENTER -O2 -pipe -march=native -falign-functions=32:25:16 -fno-common -Werror=format-security -Wformat -DLINUX -DMEDIACENTER -DX64 -m64 -c fileio.c -o x64/fileio.o fileio.c: In function 'ReadIRTransDirectory': fileio.c:137:5: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 137 | close (fd); | ^~~~~ | pclose fileio.c: In function 'ASCIITimingSample': fileio.c:356:22: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'byte *' {aka 'unsigned char *'} [-Wformat=] 356 | sscanf(rp, "%d", &client->ird.ir_length); | ~^ ~~~~~~~~~~~~~~~~~~~~~~ | | | | | byte * {aka unsigned char *} | int * | %hhd fileio.c: In function 'ASCIIFindCommand': fileio.c:477:6: warning: implicit declaration of function 'truncate' [-Wimplicit-function-declaration] 477 | truncate (client->filename,pos); | ^~~~~~~~ fileio.c: In function 'put_mousemovement': fileio.c:1151:31: warning: spurious trailing '%' in format [-Wformat=] 1151 | sprintf (name,"%03d %03d %c%c%",x,y,pnt[20],pnt[21]); | ^ fileio.c: In function 'ConvertLcase': fileio.c:3181:12: warning: implicit declaration of function 'tolower' [-Wimplicit-function-declaration] 3181 | pnt[i] = tolower (pnt[i]); | ^~~~~~~ fileio.c: In function 'DBReferenceLinks': fileio.c:2288:66: warning: '%s' directive writing up to 621 bytes into a region of size between 112 and 210 [-Wformat-overflow=] 2288 | printf (st,"Link Error [%s.%s]: Multistep links not allowed [%s]\n",rem_pnt[cmd_pnt[i].remote].name,cmd_pnt[i].name,cmd_pnt[i].data_cal); | ^~ In file included from /usr/include/stdio.h:867, from fileio.c:47: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 48 and 767 bytes into a destination of size 255 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fileio.c:2282:45: warning: '%s' directive writing up to 621 bytes into a region of size between 133 and 231 [-Wformat-overflow=] 2282 | sprintf (st,"Link Error [%s.%s]: Command %s not found\n",rem_pnt[cmd_pnt[i].remote].name,cmd_pnt[i].name,cmd_pnt[i].data_cal); | ^~ In file included from /usr/include/stdio.h:867, from fileio.c:47: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 36 and 755 bytes into a destination of size 255 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fileio.c:2275:44: warning: '%s' directive writing up to 621 bytes into a region of size between 134 and 232 [-Wformat-overflow=] 2275 | sprintf (st,"Link Error [%s.%s]: Remote %s not found\n",rem_pnt[cmd_pnt[i].remote].name,cmd_pnt[i].name,cmd_pnt[i].data); | ^~ In file included from /usr/include/stdio.h:867, from fileio.c:47: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 35 and 754 bytes into a destination of size 255 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fileio.c: In function 'ASCIIOpenRemote': fileio.c:290:42: warning: '%s' directive writing up to 255 bytes into a region of size 230 [-Wformat-overflow=] 290 | sprintf (st,"Error opening remote file %s [%d]",nm,errno); | ^~ ~~ In file included from /usr/include/stdio.h:867, from fileio.c:47: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 31 and 296 bytes into a destination of size 256 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -DLINUX -DMEDIACENTER -O2 -pipe -march=native -falign-functions=32:25:16 -fno-common -Werror=format-security -Wformat -DLINUX -DMEDIACENTER -DX64 -m64 -c linuxserio.c -o x64/linuxserio.o linuxserio.c: In function 'OpenSerialPort': linuxserio.c:201:6: warning: implicit declaration of function 'flock' [-Wimplicit-function-declaration] 201 | if (flock(hCom, LOCK_EX | LOCK_NB) < 0) { | ^~~~~ x86_64-pc-linux-gnu-gcc -DLINUX -DMEDIACENTER -O2 -pipe -march=native -falign-functions=32:25:16 -fno-common -Werror=format-security -Wformat -DLINUX -DMEDIACENTER -DX64 -m64 -c lowlevel.c -o x64/lowlevel.o lowlevel.c: In function 'ShutdownHandler': lowlevel.c:3197:18: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] 3197 | if (pidfile[0]) unlink (pidfile); | ^~~~~~ lowlevel.c: In function 'get_detail_deviceinfo': lowlevel.c:3806:8: warning: implicit declaration of function 'OpenSerialPortEx' [-Wimplicit-function-declaration] 3806 | res = OpenSerialPortEx (devnode,&(dev->io.comport),0); | ^~~~~~~~~~~~~~~~ lowlevel.c:3818:3: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 3818 | close (dev->io.comport); | ^~~~~ | pclose lowlevel.c: In function 'WriteIRStringEx': lowlevel.c:4850:9: warning: implicit declaration of function 'WriteSerialStringEx'; did you mean 'WriteIRStringEx'? [-Wimplicit-function-declaration] 4850 | return WriteSerialStringEx (dev,pnt,len); | ^~~~~~~~~~~~~~~~~~~ | WriteIRStringEx lowlevel.c: In function 'ReadIRStringEx_ITo': lowlevel.c:4866:10: warning: implicit declaration of function 'ReadSerialStringEx'; did you mean 'ReadSerialStringComio'? [-Wimplicit-function-declaration] 4866 | return (ReadSerialStringEx (dev,pnt,len,timeout)); | ^~~~~~~~~~~~~~~~~~ | ReadSerialStringComio lowlevel.c: In function 'WriteIRString': lowlevel.c:5604:2: warning: implicit declaration of function 'WriteSerialString'; did you mean 'WriteIRString'? [-Wimplicit-function-declaration] 5604 | WriteSerialString (pnt,len); | ^~~~~~~~~~~~~~~~~ | WriteIRString lowlevel.c: In function 'ReadIRString': lowlevel.c:5616:10: warning: implicit declaration of function 'ReadSerialString'; did you mean 'ReadSerialStringComio'? [-Wimplicit-function-declaration] 5616 | return (ReadSerialString (pnt,len,timeout)); | ^~~~~~~~~~~~~~~~ | ReadSerialStringComio lowlevel.c: In function 'OpenComFiles': lowlevel.c:161:38: warning: '%s' directive writing up to 4999 bytes into a region of size 234 [-Wformat-overflow=] 161 | sprintf (st,"COM Port redirection %s opened for Bus %d\n",virt_comfiles[i],bus); | ^~ In file included from /usr/include/stdio.h:867, from lowlevel.c:48: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 40 and 5049 bytes into a destination of size 255 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lowlevel.c:156:52: warning: '%s' directive writing up to 4999 bytes into a region of size 220 [-Wformat-overflow=] 156 | sprintf (st,"Error opening COM Port redirection %s\n",virt_comfiles[i]); | ^~ In file included from /usr/include/stdio.h:867, from lowlevel.c:48: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 37 and 5036 bytes into a destination of size 255 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lowlevel.c: In function 'OpenVirtualComPorts': lowlevel.c:201:34: warning: '%s' directive writing up to 4999 bytes into a region of size 238 [-Wformat-overflow=] 201 | sprintf (st,"Virtual COM Port %s opened for Bus %d\n",virt_comnames[i],bus); | ^~ In file included from /usr/include/stdio.h:867, from lowlevel.c:48: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 36 and 5045 bytes into a destination of size 255 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lowlevel.c:191:48: warning: '%s' directive writing up to 4999 bytes into a region of size 224 [-Wformat-overflow=] 191 | sprintf (st,"Error opening virtual COM Port %s\n",virt_comnames[i]); | ^~ In file included from /usr/include/stdio.h:867, from lowlevel.c:48: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 33 and 5032 bytes into a destination of size 255 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lowlevel.c: In function 'get_devices': lowlevel.c:3470:20: warning: '%s' directive writing up to 255 bytes into a region of size 50 [-Wformat-overflow=] 3470 | sprintf (dst,"%s%d",base,i); | ^~ ~~~~ In file included from /usr/include/stdio.h:867, from lowlevel.c:48: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 2 and 267 bytes into a destination of size 50 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lowlevel.c:3671:27: warning: '%s' directive writing up to 438271 bytes into a region of size 1015 [-Wformat-overflow=] 3671 | sprintf (st,"Name : %s\n",IRDevices[i].name); | ^~ In file included from /usr/include/stdio.h:867, from lowlevel.c:48: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 11 and 438282 bytes into a destination of size 1024 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lowlevel.c: In function 'InitCommunicationEx': lowlevel.c:3224:26: warning: '%s' directive writing up to 438271 bytes into a region of size 246 [-Wformat-overflow=] 3224 | sprintf (msg,"Name : %s\n",IRDevices[i].name); | ^~ In file included from /usr/include/stdio.h:867, from lowlevel.c:48: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 11 and 438282 bytes into a destination of size 255 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -DLINUX -DMEDIACENTER -O2 -pipe -march=native -falign-functions=32:25:16 -fno-common -Werror=format-security -Wformat -DLINUX -DMEDIACENTER -DX64 -m64 -c server.c -o x64/server.o server.c:879:1: warning: return type defaults to 'int' [-Wimplicit-int] 879 | main (int argc,char *argv[]) | ^~~~ server.c: In function 'main': server.c:956:20: warning: implicit declaration of function 'chdir' [-Wimplicit-function-declaration] 956 | if (serverdir[0]) chdir (serverdir); | ^~~~~ server.c: In function 'InitServer': server.c:1485:7: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration] 1485 | if (fork () == 0) { | ^~~~ server.c:1490:4: warning: implicit declaration of function 'setsid' [-Wimplicit-function-declaration] 1490 | setsid (); | ^~~~~~ server.c:1493:24: warning: implicit declaration of function 'getpid'; did you mean '_getpid'? [-Wimplicit-function-declaration] 1493 | fprintf (fp,"%d\n",getpid ()); | ^~~~~~ | _getpid server.c: In function 'RunServer': server.c:1845:11: warning: implicit declaration of function 'build_select_table' [-Wimplicit-function-declaration] 1845 | maxfd = build_select_table (&events); | ^~~~~~~~~~~~~~~~~~ server.c:1879:11: warning: implicit declaration of function 'get_selected_fd' [-Wimplicit-function-declaration] 1879 | evnt = get_selected_fd (&events,&sockfd,&ionum); | ^~~~~~~~~~~~~~~ server.c:1886:8: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 1886 | close (IRDevices[ionum].io.comport); | ^~~~~ | pclose server.c:1889:15: warning: implicit declaration of function 'OpenSerialPortEx' [-Wimplicit-function-declaration] 1889 | res = OpenSerialPortEx (IRDevices[ionum].device_node,&(IRDevices[ionum].io.comport),0); | ^~~~~~~~~~~~~~~~ server.c:1890:18: warning: implicit declaration of function 'sleep'; did you mean 'msSleep'? [-Wimplicit-function-declaration] 1890 | if (res) sleep (10); | ^~~~~ | msSleep server.c: In function 'send_forward': server.c:2641:24: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 2641 | sprintf (msg+2,"%05d",strlen (msg)); | ~~~^ ~~~~~~~~~~~~ | | | | | size_t {aka long unsigned int} | int | %05ld server.c: In function 'ExecuteReceivedCommand': server.c:2741:27: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 2741 | sprintf (msg+2,"%05d",strlen (msg)); | ~~~^ ~~~~~~~~~~~~ | | | | | size_t {aka long unsigned int} | int | %05ld server.c:2761:5: warning: implicit declaration of function 'PostWindowsMessage' [-Wimplicit-function-declaration] 2761 | PostWindowsMessage (rem_num,com_num,name); | ^~~~~~~~~~~~~~~~~~ server.c:2798:26: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 2798 | sprintf (msg+2,"%05d",strlen (msg)); | ~~~^ ~~~~~~~~~~~~ | | | | | size_t {aka long unsigned int} | int | %05ld server.c:2808:34: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 2808 | sprintf (msg,"[%d.%d]: LEN: %d %s\n",bus,(*command & 15),strlen(command+1),command+1); | ~^ ~~~~~~~~~~~~~~~~~ | | | | int size_t {aka long unsigned int} | %ld server.c: In function 'DoExecuteNetCommand': server.c:3730:15: warning: too many arguments for format [-Wformat-extra-args] 3730 | sprintf (st,"Delete %s\n",com->remote,com->command); | ^~~~~~~~~~~~~ server.c:3744:9: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] 3744 | res = unlink (st); | ^~~~~~ server.c:3782:3: warning: implicit declaration of function 'truncate' [-Wimplicit-function-declaration] 3782 | truncate (st,res); | ^~~~~~~~ server.c:4343:9: warning: implicit declaration of function 'CheckIRCode'; did you mean 'CheckIdx'? [-Wimplicit-function-declaration] 4343 | res = CheckIRCode (&sockinfo[client].ird); | ^~~~~~~~~~~ | CheckIdx server.c: In function 'InitServerSocket': server.c:5437:4: warning: implicit declaration of function 'chown' [-Wimplicit-function-declaration] 5437 | chown(LIRCD,s.st_uid,s.st_gid); | ^~~~~ server.c: In function 'process_udp_command': server.c:5604:8: warning: implicit declaration of function 'AnalyzeUDPString' [-Wimplicit-function-declaration] 5604 | res = AnalyzeUDPString (data,&netcom,remote,command,ccf,&netmask,&bus,&led,&port,&wait); | ^~~~~~~~~~~~~~~~ server.c:5658:20: error: format not a string literal and no format arguments [-Werror=format-security] 5658 | sprintf (err, txt); | ^~~ server.c: In function 'process_lirc_command': server.c:2423:37: warning: '%s' directive writing up to 1023 bytes into a region of size 235 [-Wformat-overflow=] 2423 | sprintf (err,"LIRC Command String: %s\n",com); | ^~ ~~~ In file included from /usr/include/stdio.h:867, from server.c:60: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 23 and 1046 bytes into a destination of size 256 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c: In function 'ExecuteReceivedCommand': server.c:2705:30: warning: '%s' directive writing up to 511 bytes into a region of size between 495 and 1017 [-Wformat-overflow=] 2705 | sprintf (msg,"[%d.%d] %s %s\n",bus,(*command & 15),name,rem); | ^~ ~~~ In file included from /usr/include/stdio.h:867, from server.c:60: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 9 and 1042 bytes into a destination of size 1024 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:2708:26: warning: '%s' directive writing up to 511 bytes into a region of size between 500 and 1020 [-Wformat-overflow=] 2708 | sprintf (dat,"%s %02d %s %s%c",num,l_repeat,name,rem,10); | ^~ ~~~~ In file included from /usr/include/stdio.h:867, from server.c:60: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 7 and 1549 bytes into a destination of size 1024 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:2740:41: warning: '%s' directive writing up to 511 bytes into a region of size between 496 and 1007 [-Wformat-overflow=] 2740 | sprintf (msg,"**00000 RCV_COM %s,%s,%d,%d\n",rem,name,bus,*command & 15); | ^~ ~~~~ server.c:2740:21: note: directive argument in the range [0, 15] 2740 | sprintf (msg,"**00000 RCV_COM %s,%s,%d,%d\n",rem,name,bus,*command & 15); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:867, from server.c:60: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 23 and 1056 bytes into a destination of size 1024 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c: In function 'ReadIRDatabase': server.c:2972:49: warning: '%s' directive writing up to 255 bytes into a region of size 226 [-Wformat-overflow=] 2972 | sprintf (msg,"Error opening remote database %s\n",irdb_path); | ^~ ~~~~~~~~~ In file included from /usr/include/stdio.h:867, from server.c:60: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 32 and 287 bytes into a destination of size 256 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:3030:62: warning: '%s' directive writing up to 255 bytes into a region of size between 222 and 232 [-Wformat-overflow=] 3030 | sprintf (msg,"Error %d reading DB-File %s\n",res,di->d_name); | ^~ In file included from /usr/include/stdio.h:867, from server.c:60: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 26 and 291 bytes into a destination of size 256 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c: In function 'InitServer.part.0': server.c:1520:29: warning: '%-20s' directive writing between 20 and 438271 bytes into a region of size between 249 and 250 [-Wformat-overflow=] 1520 | else sprintf (msg,"[%2d]: %-20s %-12s\n",i,IRDevices[i].name,IRDevices[i].version); | ^~~~~ In file included from /usr/include/stdio.h:867, from server.c:60: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 41 or more bytes (assuming 438293) into a destination of size 256 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:1519:56: warning: '%-20s' directive writing between 20 and 438271 bytes into a region of size between 249 and 250 [-Wformat-overflow=] 1519 | else if (IRDevices[i].fw_serno) sprintf (msg,"[%2d]: %-20s %-12s SN: %u\n",i,IRDevices[i].name,IRDevices[i].version,IRDevices[i].fw_serno); | ^~~~~ In file included from /usr/include/stdio.h:867, from server.c:60: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 47 or more bytes (assuming 438299) into a destination of size 256 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:1510:63: warning: '%-10s' directive writing between 10 and 438271 bytes into a region of size between 249 and 250 [-Wformat-overflow=] 1510 | if (IRDevices[i].io.if_type == IF_LAN) sprintf (msg,"[%2d]: %-10s: IR VER: %-8s ETH VER: %-8s SN: %u\n MAC:%02x-%02x-%02x-%02x-%02x-%02x IP Addr: %s %s\n",i, | ^~~~~ server.c:1510:55: note: directive argument in the range [0, 255] 1510 | if (IRDevices[i].io.if_type == IF_LAN) sprintf (msg,"[%2d]: %-10s: IR VER: %-8s ETH VER: %-8s SN: %u\n MAC:%02x-%02x-%02x-%02x-%02x-%02x IP Addr: %s %s\n",i, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:1510:55: note: directive argument in the range [0, 255] server.c:1510:55: note: directive argument in the range [0, 255] server.c:1510:55: note: directive argument in the range [0, 255] server.c:1510:55: note: directive argument in the range [0, 255] server.c:1510:55: note: directive argument in the range [0, 255] In file included from /usr/include/stdio.h:867, from server.c:60: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 123 or more bytes (assuming 438640) into a destination of size 256 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:1531:52: warning: '%s' directive writing up to 254 bytes into a region of size between 115 and 224 [-Wformat-overflow=] 1531 | sprintf (msg,"Relaying to UDP %s:%d using Format %s\n",udp_relay_host,udp_relay_port,udp_relay_format); | ^~ ~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:867, from server.c:60: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 34 and 397 bytes into a destination of size 256 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:1544:41: warning: '%s' directive writing up to 255 bytes into a region of size 233 [-Wformat-overflow=] 1544 | sprintf (msg,"Cannot create PID file %s\n",pidfile); | ^~ ~~~~~~~ In file included from /usr/include/stdio.h:867, from server.c:60: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 25 and 280 bytes into a destination of size 256 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c: In function 'DoExecuteNetCommand': server.c:3867:38: warning: '%s' directive writing up to 415 bytes into a region of size between 148 and 237 [-Wformat-overflow=] 3867 | sprintf (st,"Send Macro [%d] %s - %s [%x - B:%d LED: %s Pause: %d]\n",client,macro->remote,macro->command,macro->adress,(macro->adress >> 19) & (MAX_IR_DEVICES - 1),lst,macro->pause); | ^~ server.c:3867:16: note: using the range [0, 4294967295] for directive argument 3867 | sprintf (st,"Send Macro [%d] %s - %s [%x - B:%d LED: %s Pause: %d]\n",client,macro->remote,macro->command,macro->adress,(macro->adress >> 19) & (MAX_IR_DEVICES - 1),lst,macro->pause); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:3867:16: note: directive argument in the range [0, 255] server.c:3867:16: note: directive argument in the range [0, 65535] In file included from /usr/include/stdio.h:867, from server.c:60: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 47 and 583 bytes into a destination of size 255 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:3798:25: warning: '%s' directive writing up to 1099 bytes into a region of size 246 [-Wformat-overflow=] 3798 | sprintf (st,"Send CCF %s [%x]\n",ccf->ccf_data,ccf->adress); | ^~ server.c:3798:15: note: using the range [0, 4294967295] for directive argument 3798 | sprintf (st,"Send CCF %s [%x]\n",ccf->ccf_data,ccf->adress); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:867, from server.c:60: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 15 and 1121 bytes into a destination of size 255 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:4075:22: warning: '%s' directive writing up to 254 bytes into a region of size 250 [-Wformat-overflow=] 4075 | sprintf (st,"LCD: %s\n%s\n",err,err+100); | ^~ ~~~ In file included from /usr/include/stdio.h:867, from server.c:60: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 8 or more bytes (assuming 262) into a destination of size 255 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c: In function 'ExecuteNetCommand': server.c:3230:34: warning: '%s' directive writing up to 5511 bytes into a region of size 2033 [-Wformat-overflow=] 3230 | sprintf (err,"ASCII Command: %s\n",pnt); | ^~ In file included from /usr/include/stdio.h:867, from server.c:60: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 17 and 5528 bytes into a destination of size 2048 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c: In function 'process_udp_command': server.c:5612:35: warning: '%s' directive writing up to 511 bytes into a region of size between 151 and 240 [-Wformat-overflow=] 5612 | sprintf (txt,"UDP Command: %d %s,%s,%d,%d [%x.%d]\n", netcom,remote,command,bus,led,send_adr->sin_addr.s_addr,port); | ^~ ~~~~~~~ In file included from /usr/include/stdio.h:867, from server.c:60: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 28 and 665 bytes into a destination of size 256 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c: In function 'RunServer': server.c:1939:70: warning: '%s' directive writing up to 249 bytes into a region of size between 248 and 256 [-Wformat-overflow=] 1939 | printf (err,"RS232 Data received from Bus %d [%d-%d] LEN:%d: %s\n",bus,rs232->error_code,rs232->seq_number,rs232->data_len,rs232->data); | ^~ In file included from /usr/include/stdio.h:867, from server.c:60: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 46 and 303 bytes into a destination of size 300 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make: *** [makefile:54: x64/server.o] Error 1 * ERROR: app-misc/irtrans-irserver-6.09.04-r1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=app-misc/irtrans-irserver-6.09.04-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-misc/irtrans-irserver-6.09.04-r1::gentoo'`. * The complete build log is located at '/var/log/portage/app-misc:irtrans-irserver-6.09.04-r1:20200326-192325.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/app-misc/irtrans-irserver-6.09.04-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-misc/irtrans-irserver-6.09.04-r1/temp/environment'. * Working directory: '/var/tmp/portage/app-misc/irtrans-irserver-6.09.04-r1/work' * S: '/var/tmp/portage/app-misc/irtrans-irserver-6.09.04-r1/work'