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

Dave Woodfall dave at slackbuilds.org
Sun Jul 26 15:55:31 UTC 2020


On 26/07/20 05:12,
Pacho t <pacho.torres.reyes at gmail.com> put forth the proposition:
> 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.

Hi,

I cannot replicate this.  It builds OK for me in a clean 14.2 chroot,
with or without the optional deps.

Can you get hold of a full build log plus some info on his OS?

--
Dave
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20200726/1c1d8bf2/attachment.asc>


More information about the SlackBuilds-users mailing list