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

William PC w_calandrini at hotmail.com
Mon Jul 27 19:41:50 UTC 2020


Hi,

I installed it some two months ago without compiling problems. The only issue that I knew is the configurating files for new installations.
Can you tell me the Slackware version including architecture that you are using ?

Regards,

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

From: Pacho t<mailto:pacho.torres.reyes at gmail.com>
Sent: Sunday, July 26, 2020 5:47 AM
To: slackbuilds-users at slackbuilds.org<mailto:slackbuilds-users at slackbuilds.org>
Subject: [Slackbuilds-users] Fwd: Slackware Slackbuilds tvheadend ver 3.4patch1 Compilation error.

Thanks in advance for reviewing this.

---------- Forwarded message ---------
From: Pacho t <pacho.torres.reyes at gmail.com<mailto: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<mailto: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/20200727/c2b03c99/attachment-0001.htm>


More information about the SlackBuilds-users mailing list