|
| From: | Rafael Laboissiere |
| Subject: | [Octave-bug-tracker] [bug #55803] [octave forge] (video) Compilation fails due to non existent libavcodec macros |
| Date: | Fri, 1 Mar 2019 11:58:13 -0500 (EST) |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.53 Safari/537.36 |
URL:
<https://savannah.gnu.org/bugs/?55803>
Summary: [octave forge] (video) Compilation fails due to non
existent libavcodec macros
Project: GNU Octave
Submitted by: rlaboiss
Submitted on: Fri 01 Mar 2019 04:58:11 PM UTC
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Build Failure
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: other
Operating System: GNU/Linux
_______________________________________________________
Details:
When compiling the video package on a Debian GNU/Linux unstable system against
libavcodec-dev 4.1-1, the following failure happens:
make[1]: Entering directory
'/var/data/rlaboiss/debian/PKGS/octave-video/octave-video/src'
/usr/bin/mkoctfile --verbose -Wall -v -Wno-deprecated-declarations -c
-DHAVE_CONFIG_H AVHandler.cc -o AVHandler.o -Wdate-time -D_FORTIFY_SOURCE=2 -g
-O2
-fdebug-prefix-map=/var/data/rlaboiss/debian/PKGS/octave-video/octave-video=.
-fstack-protector-strong -Wformat -Werror=format-security
g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC
-I/usr/include/octave-4.4.1/octave/.. -I/usr/include/octave-4.4.1/octave
-pthread -fopenmp -g -O2
-fdebug-prefix-map=/var/data/rlaboiss/debian/PKGS/octave-video/octave-video=.
-fstack-protector-strong -Wformat -Werror=format-security -g -Wall
-Wno-deprecated-declarations -Wdate-time -O2
-fdebug-prefix-map=/var/data/rlaboiss/debian/PKGS/octave-video/octave-video=.
-fstack-protector-strong -Wformat -Werror=format-security -DHAVE_CONFIG_H
-D_FORTIFY_SOURCE=2 AVHandler.cc -o AVHandler.o
AVHandler.cc: In member function ‘int AVHandler::setup_read()’:
AVHandler.cc:246:29: error: ‘CODEC_CAP_TRUNCATED’ was not declared in this
scope
if (codec->capabilities & CODEC_CAP_TRUNCATED)
^~~~~~~~~~~~~~~~~~~
AVHandler.cc:246:29: note: suggested alternative:
‘AV_CODEC_CAP_TRUNCATED’
if (codec->capabilities & CODEC_CAP_TRUNCATED)
^~~~~~~~~~~~~~~~~~~
AV_CODEC_CAP_TRUNCATED
AVHandler.cc:247:30: error: ‘CODEC_FLAG_TRUNCATED’ was not declared in
this scope
vstream->codec->flags |= CODEC_FLAG_TRUNCATED;
^~~~~~~~~~~~~~~~~~~~
AVHandler.cc:247:30: note: suggested alternative:
‘AV_CODEC_FLAG_TRUNCATED’
vstream->codec->flags |= CODEC_FLAG_TRUNCATED;
^~~~~~~~~~~~~~~~~~~~
AV_CODEC_FLAG_TRUNCATED
AVHandler.cc: In member function ‘int AVHandler::read_frame(unsigned
int)’:
AVHandler.cc:358:37: warning: comparison of integer expressions of different
signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘int64_t’
{aka ‘long int’} [-Wsign-compare]
if ((uint64_t)vstream->start_time != AV_NOPTS_VALUE)
^
make[1]: *** [Makefile:17: AVHandler.o] Error 1
The patch attached to this bug report fixes the problem.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 01 Mar 2019 04:58:11 PM UTC Name: libavcodec-macros.patch Size:
596B By: rlaboiss
<http://savannah.gnu.org/bugs/download.php?file_id=46384>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55803>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |