[Slackbuilds-users] Fwd: Slackware Slackbuilds tvheadend ver 3.4patch1 Compilation error.

Pacho t pacho.torres.reyes at gmail.com
Sun Jul 26 10:12:22 UTC 2020


Thanks in advance for reviewing this.

---------- Forwarded message ---------
From: Pacho t <pacho.torres.reyes at gmail.com>
Date: Sun, Jul 26, 2020 at 5:09 AM
Subject: Slackware Slackbuilds tvheadend ver 3.4patch1 Compilation error.
To: <w_calandrini at hotmail.com>


Hi William.

I was trying to install this tvheadend on my box.

I got this compilation error:

-----
Tvheadend Data Directory:
  /usr/share/tvheadend

CC              build.linux/src/main.o
/tmp/SBo/tvheadend-3.4patch1/src/main.c: In function ‘tvhlogv’:
/tmp/SBo/tvheadend-3.4patch1/src/main.c:805:38: error: ‘%s’ directive
output may be truncated writing up to 2047 bytes into a region of size
between 1984 and 2047 [-Werror=format-truncation=]
  805 |     snprintf(buf2, sizeof(buf2), "%s %s", t, buf);
      |                                      ^~      ~~~
/tmp/SBo/tvheadend-3.4patch1/src/main.c:805:5: note: ‘snprintf’ output
between 2 and 2112 bytes into a destination of size 2048
  805 |     snprintf(buf2, sizeof(buf2), "%s %s", t, buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:255: build.linux/src/main.o] Error 1
----

Seems to be a warning treated as error. I was including:  -Wno-error
directive to avoid this in SLKCFLAGS in tvheadend.SlackBuild and other
possible places with no sucess.

I do not have experience in compiling C source code. Please review this and
let me know If I can do something from my side.

Thanks in advance for your help.

Francisco.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20200726/3fcbb639/attachment.htm>


More information about the SlackBuilds-users mailing list