Source: vice
Version: 2.4.dfsg-1
Severity: normal

If vice is built against libav 9, the ffmpeg output driver is no longer
built:
| checking for FFMPEG support... via pkg-config
| checking for FFMPEG_AV... yes
| checking libavformat/avformat.h usability... yes
| checking libavformat/avformat.h presence... yes
| checking for libavformat/avformat.h... yes
| checking for FFMPEG_SWSCALE... no. trying img_convert
| checking for img_convert in -lavcodec... no

Adding libswscale-dev to Build-Depends makes the configure script detect
swscale, however the build later fails with:
| gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -I../../src 
-I../../src/arch/unix -pthread -I/usr/include/gtk-2.0 
-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 
-I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 
-I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 
-I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libdrm 
-I/usr/include/harfbuzz   -pthread -I/usr/include/gtk-2.0 
-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 
-I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include 
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 
-I/usr/include/libdrm -I/usr/include/atk-1.0 -I/usr/include/harfbuzz 
-I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include   -pthread 
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include 
-I/usr/include/pango-1.0 -I/usr/include/gtk-2.0 -I/usr/include/gio-unix-2.0/ 
-I/usr/include/cairo -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include 
-I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pixman-1 
-I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libdrm 
-I/usr/include/harfbuzz -I/usr/include/vte-0.0      -g -O3   -Wall -Wno-inline 
-MT ffmpeglib.o -MD -MP -MF .deps/ffmpeglib.Tpo -c -o ffmpeglib.o ffmpeglib.c
| In file included from ffmpegdrv.c:35:0:
| ffmpeglib.h:83:55: error: unknown type name 'AVFormatParameters'
|  typedef int (*av_set_parameters_t) (AVFormatContext*, AVFormatParameters*);
|                                                        ^
| ffmpeglib.h:87:29: error: unknown type name 'ByteIOContext'
|  typedef int (*url_fopen_t) (ByteIOContext**, const char*, int);
|                              ^
| ffmpeglib.h:88:30: error: unknown type name 'ByteIOContext'
|  typedef int (*url_fclose_t) (ByteIOContext*);
|                               ^
| ffmpeglib.h:121:5: error: unknown type name 'av_set_parameters_t'
|      av_set_parameters_t         p_av_set_parameters;
|      ^
| ffmpeglib.h:125:5: error: unknown type name 'url_fopen_t'
|      url_fopen_t                 p_url_fopen;
|      ^
| ffmpeglib.h:126:5: error: unknown type name 'url_fclose_t'
|      url_fclose_t                p_url_fclose;
|      ^
| ffmpegdrv.c: In function 'ffmpegmovie_init_audio':
| ffmpegdrv.c:346:21: error: 'SAMPLE_FMT_S16' undeclared (first use in this 
function)
|      c->sample_fmt = SAMPLE_FMT_S16;
|                      ^
| ffmpegdrv.c:346:21: note: each undeclared identifier is reported only once 
for each function it appears in
| ffmpegdrv.c: In function 'ffmpegdrv_init_file':
| ffmpegdrv.c:616:10: error: invalid type argument of unary '*' (have 'int')
|      if ((*ffmpeglib.p_av_set_parameters)(ffmpegdrv_oc, NULL) < 0) {
|           ^
| ffmpegdrv.c:635:14: error: invalid type argument of unary '*' (have 'int')
|          if ((*ffmpeglib.p_url_fopen)(&ffmpegdrv_oc->pb, 
ffmpegdrv_oc->filename,
|               ^
| ffmpegdrv.c:636:29: error: 'URL_WRONLY' undeclared (first use in this 
function)
|                              URL_WRONLY) < 0) 
|                              ^
| ffmpegdrv.c: In function 'ffmpegdrv_close':
| ffmpegdrv.c:727:14: error: invalid type argument of unary '*' (have 'int')
|              (*ffmpeglib.p_url_fclose)(ffmpegdrv_oc->pb);
|               ^
| make[4]: *** [ffmpegdrv.o] Error 1
| make[4]: *** Waiting for unfinished jobs....
| In file included from ffmpeglib.c:32:0:
| ../../src/gfxoutputdrv/ffmpeglib.h:83:55: error: unknown type name 
'AVFormatParameters'
|  typedef int (*av_set_parameters_t) (AVFormatContext*, AVFormatParameters*);
|                                                        ^
| ../../src/gfxoutputdrv/ffmpeglib.h:87:29: error: unknown type name 
'ByteIOContext'
|  typedef int (*url_fopen_t) (ByteIOContext**, const char*, int);
|                              ^
| ../../src/gfxoutputdrv/ffmpeglib.h:88:30: error: unknown type name 
'ByteIOContext'
|  typedef int (*url_fclose_t) (ByteIOContext*);
|                               ^
| ../../src/gfxoutputdrv/ffmpeglib.h:121:5: error: unknown type name 
'av_set_parameters_t'
|      av_set_parameters_t         p_av_set_parameters;
|      ^
| ../../src/gfxoutputdrv/ffmpeglib.h:125:5: error: unknown type name 
'url_fopen_t'
|      url_fopen_t                 p_url_fopen;
|      ^
| ../../src/gfxoutputdrv/ffmpeglib.h:126:5: error: unknown type name 
'url_fclose_t'
|      url_fclose_t                p_url_fclose;
|      ^
| ffmpeglib.c: In function 'load_avformat':
| ffmpeglib.c:211:37: error: 'av_set_parameters_t' undeclared (first use in 
this function)
|          GET_SYMBOL_AND_TEST_AVFORMAT(av_set_parameters);
|                                      ^
| ffmpeglib.c:211:37: note: each undeclared identifier is reported only once 
for each function it appears in
| ffmpeglib.c:211:58: error: expected ';' before 'vice_dynlib_symbol'
|          GET_SYMBOL_AND_TEST_AVFORMAT(av_set_parameters);
|                                                           ^
| ffmpeglib.c:215:29: error: 'url_fopen_t' undeclared (first use in this 
function)
|          GET_SYMBOL_AND_TEST_AVFORMAT(url_fopen);
|                              ^
| ffmpeglib.c:215:42: error: expected ';' before 'vice_dynlib_symbol'
|          GET_SYMBOL_AND_TEST_AVFORMAT(url_fopen);
|                                           ^
| ffmpeglib.c:216:30: error: 'url_fclose_t' undeclared (first use in this 
function)
|          GET_SYMBOL_AND_TEST_AVFORMAT(url_fclose);
|                               ^
| ffmpeglib.c:216:44: error: expected ';' before 'vice_dynlib_symbol'
|          GET_SYMBOL_AND_TEST_AVFORMAT(url_fclose);
|                                             ^
| ffmpeglib.c: In function 'free_avformat':
| ffmpeglib.c:243:30: warning: assignment makes integer from pointer without a 
cast [enabled by default]
|      lib->p_av_set_parameters = NULL;
|                               ^
| ffmpeglib.c:247:22: warning: assignment makes integer from pointer without a 
cast [enabled by default]
|      lib->p_url_fopen = NULL;
|                       ^
| ffmpeglib.c:248:23: warning: assignment makes integer from pointer without a 
cast [enabled by default]
|      lib->p_url_fclose = NULL;
|                      ^

This looks like #693641.

Regards
-- 
Sebastian Ramacher

Attachment: signature.asc
Description: Digital signature

Reply via email to