Bug #6207
Build error on Alpin Linux
0%
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
Updated by Flole Systems about 2 years ago
- Status changed from New to Invalid
No proper version information.
Updated by saen acro about 2 years 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.
Updated by Flole Systems about 2 years ago
- Status changed from Invalid to New
- Found in version changed from latest to 5f9404117f59ad1f5aa7ca542ce39d9e064e8209
Updated by Oliver Schinagl over 1 year ago
I think we can close this; as my container work (almost finished) also builds on Alpine.
Updated by saen acro over 1 year ago
Oliver Schinagl wrote:
I think we can close this; as my container work (almost finished) also builds on Alpine.
Report is from bear metal installed OS on embedded PC,
no docker pseudo virtualization
same bug exist yet
CC src/input.o
CC src/httpc.o
CC src/rtsp.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:340:27: note: format string is defined here
340 | #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:340:27: note: format string is defined here
340 | #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:340:27: note: format string is defined here
340 | #define PRItime_t "ld"
cc1: all warnings being treated as errors
make: *** [Makefile:719: /opt/tvheadend/build.linux/src/rtsp.o] Error 1
Updated by Flole Systems over 1 year ago
Most likely related to the architecture it's being built on.
Updated by saen acro over 1 year ago
Architecture is x86 32bit
Linux wafer 5.15.96-0-lts #1-Alpine SMP Sun, 26 Feb 2023 15:14:12 +0000 i686 GNU/Linux
Updated by Oliver Schinagl over 1 year ago
can you try latest master; should all be fixed now (or very soon :p, I think we are waiting for some CI work before merging the actual fix)
Updated by saen acro over 1 year ago
Oliver Schinagl wrote:
can you try latest master; should all be fixed now (or very soon :p, I think we are waiting for some CI work before merging the actual fix)
Yes this time compilation pass.
Updated by saen acro over 1 year ago
but there is some other problem
2023-08-07 22:19:49.655 [ INFO] main: Log started
2023-08-07 22:19:49.655 [ INFO] config: Using configuration from '/root/.config/hts'
2023-08-07 22:19:49.660 [ INFO] http: Starting HTTP server 0.0.0.0:9981
2023-08-07 22:19:49.660 [ INFO] htsp: Starting HTSP server 0.0.0.0:9982
2023-08-07 22:19:50.192 [ INFO] config: loaded
2023-08-07 22:19:50.198 [ ALERT] profile: no default streaming profile! reinstall data files
2023-08-07 22:19:50.202 [ INFO] config: scanfile (re)initialization with path <none>
Aborted
Updated by saen acro about 1 year ago
@ Flole Systems
don't hurry up to close case
it's not 100% fixed yet.
Running as forked (-f) return error 403
make without bundle not run see above
just bundle in terminal work.
Updated by Flole Systems about 1 year ago
The original issue is solved, if you believe you found another bug then open a new bug report for it.