Project

General

Profile

Bug #6207

Build error on Alpin Linux

Added by saen acro 4 months ago. Updated 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
2022-10-07
Due date:
% Done:

0%

Estimated time:
Found in version:
5f9404117f59ad1f5aa7ca542ce39d9e064e8209
Affected Versions:

Description

OS Alpine Linux v3.16 i686
Configuration used

./configure \ 
--disable-ffmpeg_static \ 
--disable-libfdkaac_static \ 
--disable-libtheora_static \ 
--disable-libopus_static \ 
--disable-libvorbis_static \ 
--disable-libvpx_static \ 
--disable-libx264_static \ 
--disable-libx265_static \ 
--disable-libfdkaac \ 
--enable-libopus \ 
--enable-libvorbis \ 
--enable-libvpx \ 
--enable-libx264 \ 
--enable-libx265 \ 
--disable-avahi \ 
--disable-dbus_1 \ 
--disable-bintray_cache \ 
--disable-execinfo \ 
--disable-hdhomerun_static \ 
--disable-hdhomerun_client \ 
--disable-libav \ 
--enable-pngquant \ 
--enable-trace \ 
--enable-vaapi \ 
--infodir=/usr/share/info \ 
--localstatedir=/var \ 
--mandir=/usr/share/man \ 
--prefix=/usr \ 
--python=python3 \ 
--sysconfdir=/config &&  make

there is error in src/rtsp.c

CC              src/rtsp.o
CC              src/download.o
CC              src/fsmonitor.o
src/rtsp.c: In function 'rtsp_describe_decode':
src/rtsp.c:292:23: error: format '%ld' expects argument of type 'long int *', but argument 3 has type 'time_t *' {aka 'long long int *'} [-Werror=format=]
  292 |         sscanf(p + 8, "npt=%" PRItime_t "-%" PRItime_t, &hc->hc_rtsp_range_start,
      |                       ^~~~~~~                           ~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                         |
      |                                                         time_t * {aka long long int *}
In file included from src/rtsp.c:21:
src/tvheadend.h:338:27: note: format string is defined here
  338 | #define PRItime_t       "ld" 
src/rtsp.c:292:23: error: format '%ld' expects argument of type 'long int *', but argument 4 has type 'time_t *' {aka 'long long int *'} [-Werror=format=]
  292 |         sscanf(p + 8, "npt=%" PRItime_t "-%" PRItime_t, &hc->hc_rtsp_range_start,
      |                       ^~~~~~~
  293 |             &hc->hc_rtsp_range_end);
      |             ~~~~~~~~~~~~~~~~~~~~~~
      |             |
      |             time_t * {aka long long int *}
In file included from src/rtsp.c:21:
src/tvheadend.h:338:27: note: format string is defined here
  338 | #define PRItime_t       "ld" 
src/rtsp.c: In function 'rtsp_set_position':
src/rtsp.c:333:30: error: format '%ld' expects argument of type 'long int', but argument 4 has type 'time_t' {aka 'long long int'} [-Werror=format=]
  333 |   snprintf(buf, sizeof(buf), "npt=%" PRItime_t "-", position);
      |                              ^~~~~~~                ~~~~~~~~
      |                                                     |
      |                                                     time_t {aka long long int}
In file included from src/rtsp.c:21:
src/tvheadend.h:338:27: note: format string is defined here
  338 | #define PRItime_t       "ld" 
cc1: all warnings being treated as errors
make: *** [Makefile:717: /opt/tvheadend/build.linux/src/rtsp.o] Error 1
make: *** Waiting for unfinished jobs....

History

#1

Updated by Flole Systems 4 months ago

  • Status changed from New to Invalid

No proper version information.

#2

Updated by saen acro 4 months ago

Flole Systems wrote:

No proper version information.

Latest github code from 7-oct-2022
Version can be seen when compilation finish, but it cannot finish.

src/rtsp.c code is not changed for two years,
but newer compilator are updated.

#3

Updated by Flole Systems 4 months ago

  • Status changed from Invalid to New
  • Found in version changed from latest to 5f9404117f59ad1f5aa7ca542ce39d9e064e8209

Also available in: Atom PDF