bugGNU Octave - Bugs: bug #55803, [octave forge] (video) Compilation...

 
 

bug #55803: [octave forge] (video) Compilation fails due to non existent libavcodec macros

Submitter:  Rafael Laboissière <rlaboiss>
Submitted:  Fri 01 Mar 2019 04:58:11 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * other Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 01 Mar 2019 06:02:15 PM UTC, comment #1: 

Thanks, this is a duplicate of bug #53801. The patch you attached looks similar to the patch I posted on that bug report, but it includes a couple more macro renames in unreleased changes in the hg repository.

Mike Miller <mtmiller>
Group Member
Fri 01 Mar 2019 04:58:11 PM UTC, original submission:  

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.

Rafael Laboissière <rlaboiss>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #46384:  libavcodec-macros.patch added by rlaboiss (596B - text/x-patch)

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rlaboiss (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-01 mtmiller StatusNone Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #53801
    2019-03-01 rlaboiss Attached File- Added libavcodec-macros.patch, #46384

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code