Bug#720809: dvbcut: FTBFS with libav9: avframe.cpp:78:14: error: 'av_free' was not declared in this scope

2013-08-27 Thread Moritz Muehlenhoff
On Sun, Aug 25, 2013 at 01:50:21PM +0200, David Suárez wrote:
 Source: dvbcut
 Version: 0.5.4+svn178-2
 Severity: serious
 Tags: jessie sid
 User: debian...@lists.debian.org
 Usertags: qa-ftbfs-20130825 qa-ftbfs
 Justification: FTBFS on amd64
 
 Hi,
 
 During a rebuild of all packages in sid, your package failed to build on
 amd64.
 
 Related to current libav9 transition (see #706798).
 
 Relevant part (hopefully):
  g++ -g -O2 -Wall -DPACKAGE_NAME=\\ -DPACKAGE_TARNAME=\\ 
  -DPACKAGE_VERSION=\\ -DPACKAGE_STRING=\\ -DPACKAGE_BUGREPORT=\\ 
  -DPACKAGE_URL=\\ -DHAVE_LIB_SWSCALE=1 -DHAVE_LIB_MAD=1 -DHAVE_LIB_A52=1 
  -DHAVE_LIB_AO=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
  -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
  -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_AO_AO_H=1 
  -DHAVE_MAD_H=1 -DHAVE_STDINT_H=1 -DHAVE_A52DEC_A52_H=1 -DHAVE_STDLIB_H=1 
  -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 
  -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -D_FILE_OFFSET_BITS=64 
  -I/usr/include -I/usr/include/libavcodec -I/usr/include/libavformat 
  -I/usr/include/libswscale -I/include -DQT_SHARED -DQT3_SUPPORT 
  -I/usr/include/qt4 -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtCore 
  -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtNetwork 
  -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtXml   -I. -I/usr/include 
  -I/usr/include/libavcodec -I/usr/include/libavformat 
  -I/usr/include/libswscale -I/include -DQT_SHARED -DQT3_SUPPORT 
  -I/usr/include/qt4 -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtCore 
  -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtNetwork 
  -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtXml   -I.  -c -o avframe.o 
  avframe.cpp
  avframe.cpp: In destructor 'avframe::~avframe()':
  avframe.cpp:78:14: error: 'av_free' was not declared in this scope
   av_free(f);
^
  avframe.cpp: In member function 'QImage avframe::getqimage(bool, double)':
  avframe.cpp:126:21: error: 'av_free' was not declared in this scope
 av_free(avframergb);

Patch attached.

Cheers,
Moritz
diff -aur dvbcut-0.5.4+svn178.orig/src/avframe.cpp dvbcut-0.5.4+svn178/src/avframe.cpp
--- dvbcut-0.5.4+svn178.orig/src/avframe.cpp	2013-07-22 18:25:56.0 +0200
+++ dvbcut-0.5.4+svn178/src/avframe.cpp	2013-07-22 18:34:07.53200 +0200
@@ -22,6 +22,7 @@
 #include cstdlib
 #include cstdio
 #include avframe.h
+#include libavutil/mem.h
 
 #ifdef HAVE_LIB_SWSCALE
 avframe::avframe() : tobefreed(0),w(0),h(0),dw(0),pix_fmt(),img_convert_ctx(0)
Move the AV_OPT_TYPE_INT macro before the includes, it's referenced by
the included headers in libav 9

Debian Bug #720805

diff -aur lives-2.0.5~ds0.orig/lives-plugins/plugins/decoders/mpegts_decoder.c lives-2.0.5~ds0/lives-plugins/plugins/decoders/mpegts_decoder.c
--- lives-2.0.5~ds0.orig/lives-plugins/plugins/decoders/mpegts_decoder.c	2013-03-13 04:33:33.0 +0100
+++ lives-2.0.5~ds0/lives-plugins/plugins/decoders/mpegts_decoder.c	2013-07-22 20:31:37.60400 +0200
@@ -52,6 +52,9 @@
 #include ../../../libweed/weed-compat.h
 #endif
 
+#ifndef AV_OPT_TYPE_INT
+#define AV_OPT_TYPE_INT FF_OPT_TYPE_INT
+#endif
 
 #include decplugin.h
 
@@ -69,9 +72,6 @@
 #define offsetof(T, F) ((unsigned int)((char *)((T *)0)-F))
 #endif
 
-#ifndef AV_OPT_TYPE_INT
-#define AV_OPT_TYPE_INT FF_OPT_TYPE_INT
-#endif
 
 
 

___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Bug#720805: Bug#720809: dvbcut: FTBFS with libav9: avframe.cpp:78:14: error: 'av_free' was not declared in this scope

2013-08-27 Thread Sebastian Ramacher
Hi Moritz,

On 2013-08-27 11:40:24, Moritz Muehlenhoff wrote:
 On Sun, Aug 25, 2013 at 01:50:21PM +0200, David Suárez wrote:
  Source: dvbcut
  Version: 0.5.4+svn178-2
  Severity: serious
  Tags: jessie sid
  User: debian...@lists.debian.org
  Usertags: qa-ftbfs-20130825 qa-ftbfs
  Justification: FTBFS on amd64
  
  Hi,
  
  During a rebuild of all packages in sid, your package failed to build on
  amd64.
  
  Related to current libav9 transition (see #706798).
  
  Relevant part (hopefully):
   g++ -g -O2 -Wall -DPACKAGE_NAME=\\ -DPACKAGE_TARNAME=\\ 
   -DPACKAGE_VERSION=\\ -DPACKAGE_STRING=\\ -DPACKAGE_BUGREPORT=\\ 
   -DPACKAGE_URL=\\ -DHAVE_LIB_SWSCALE=1 -DHAVE_LIB_MAD=1 -DHAVE_LIB_A52=1 
   -DHAVE_LIB_AO=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
   -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
   -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_AO_AO_H=1 
   -DHAVE_MAD_H=1 -DHAVE_STDINT_H=1 -DHAVE_A52DEC_A52_H=1 -DHAVE_STDLIB_H=1 
   -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 
   -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -D_FILE_OFFSET_BITS=64 
   -I/usr/include -I/usr/include/libavcodec -I/usr/include/libavformat 
   -I/usr/include/libswscale -I/include -DQT_SHARED -DQT3_SUPPORT 
   -I/usr/include/qt4 -I/usr/include/qt4/Qt3Support 
   -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui 
   -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtSql 
   -I/usr/include/qt4/QtXml   -I. -I/usr/include -I/usr/include/libavcodec 
   -I/usr/include/libavformat -I/usr/include/libswscale -I/include 
   -DQT_SHARED -DQT3_SUPPORT -I/usr/include/qt4 
   -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtCore 
   -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtNetwork 
   -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtXml   -I.  -c -o avframe.o 
   avframe.cpp
   avframe.cpp: In destructor 'avframe::~avframe()':
   avframe.cpp:78:14: error: 'av_free' was not declared in this scope
av_free(f);
 ^
   avframe.cpp: In member function 'QImage avframe::getqimage(bool, double)':
   avframe.cpp:126:21: error: 'av_free' was not declared in this scope
  av_free(avframergb);
 
 Patch attached.
 
 Cheers,
 Moritz

thanks for the patches. Forwarding the patch for lives to #720805:

 Move the AV_OPT_TYPE_INT macro before the includes, it's referenced by
 the included headers in libav 9
 
 Debian Bug #720805
 
 diff -aur 
 lives-2.0.5~ds0.orig/lives-plugins/plugins/decoders/mpegts_decoder.c 
 lives-2.0.5~ds0/lives-plugins/plugins/decoders/mpegts_decoder.c
 --- lives-2.0.5~ds0.orig/lives-plugins/plugins/decoders/mpegts_decoder.c  
 2013-03-13 04:33:33.0 +0100
 +++ lives-2.0.5~ds0/lives-plugins/plugins/decoders/mpegts_decoder.c   
 2013-07-22 20:31:37.60400 +0200
 @@ -52,6 +52,9 @@
  #include ../../../libweed/weed-compat.h
  #endif
  
 +#ifndef AV_OPT_TYPE_INT
 +#define AV_OPT_TYPE_INT FF_OPT_TYPE_INT
 +#endif
  
  #include decplugin.h
  
 @@ -69,9 +72,6 @@
  #define offsetof(T, F) ((unsigned int)((char *)((T *)0)-F))
  #endif
  
 -#ifndef AV_OPT_TYPE_INT
 -#define AV_OPT_TYPE_INT FF_OPT_TYPE_INT
 -#endif
  
  
  
 

Regards
-- 
Sebastian Ramacher


signature.asc
Description: Digital signature
___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Bug#720809: dvbcut: FTBFS with libav9: avframe.cpp:78:14: error: 'av_free' was not declared in this scope

2013-08-25 Thread David Suárez
Source: dvbcut
Version: 0.5.4+svn178-2
Severity: serious
Tags: jessie sid
User: debian...@lists.debian.org
Usertags: qa-ftbfs-20130825 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Related to current libav9 transition (see #706798).

Relevant part (hopefully):
 g++ -g -O2 -Wall -DPACKAGE_NAME=\\ -DPACKAGE_TARNAME=\\ 
 -DPACKAGE_VERSION=\\ -DPACKAGE_STRING=\\ -DPACKAGE_BUGREPORT=\\ 
 -DPACKAGE_URL=\\ -DHAVE_LIB_SWSCALE=1 -DHAVE_LIB_MAD=1 -DHAVE_LIB_A52=1 
 -DHAVE_LIB_AO=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_AO_AO_H=1 
 -DHAVE_MAD_H=1 -DHAVE_STDINT_H=1 -DHAVE_A52DEC_A52_H=1 -DHAVE_STDLIB_H=1 
 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 
 -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -D_FILE_OFFSET_BITS=64 
 -I/usr/include -I/usr/include/libavcodec -I/usr/include/libavformat 
 -I/usr/include/libswscale -I/include -DQT_SHARED -DQT3_SUPPORT 
 -I/usr/include/qt4 -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtCore 
 -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtNetwork 
 -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtXml   -I. -I/usr/include 
 -I/usr/include/libav
 codec -I/usr/include/libavformat -I/usr/include/libswscale -I/include 
-DQT_SHARED -DQT3_SUPPORT -I/usr/include/qt4 -I/usr/include/qt4/Qt3Support 
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtNetwork 
-I/usr/include/qt4/QtSql -I/usr/include/qt4/QtXml   -I.  -c -o avframe.o 
avframe.cpp
 avframe.cpp: In destructor 'avframe::~avframe()':
 avframe.cpp:78:14: error: 'av_free' was not declared in this scope
  av_free(f);
   ^
 avframe.cpp: In member function 'QImage avframe::getqimage(bool, double)':
 avframe.cpp:126:21: error: 'av_free' was not declared in this scope
av_free(avframergb);
  ^
 make[2]: *** [avframe.o] Error 1

The full build log is available from:
   
http://aws-logs.debian.net/ftbfs-logs/2013/08/25/dvbcut_0.5.4+svn178-2_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.

___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers