Bug#721026: renpy: FTBFS with libav 9: error: unknown type name 'ByteIOContext'

Sebastian Ramacher sramacher at debian.org
Tue Aug 27 10:36:32 UTC 2013


Source: renpy
Version: 6.13.12-1
Severity: serious
Tags: sid jessie
Control: block 706798 by -1

renpy FTBFS against libav 9:
| x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I. -I/usr/include -I/usr/include/SDL -I/usr/include/freetype2 -I/usr/include/python2.7 -c ffdecode.c -o build/temp.linux-x86_64-2.7/ffdecode.o -Wno-unused-function
| ffdecode.c:197:5: error: unknown type name 'ByteIOContext'
|      ByteIOContext *io_context;
|      ^
| ffdecode.c:245:32: error: 'FF_ER_CAREFUL' undeclared here (not in a function)
|  static int error_recognition = FF_ER_CAREFUL;
|                                 ^
| ffdecode.c:287:1: error: unknown type name 'ByteIOContext'
|  static ByteIOContext *rwops_open(SDL_RWops *rw) {
|  ^
| ffdecode.c: In function 'rwops_open':
| ffdecode.c:290:5: error: unknown type name 'ByteIOContext'
|      ByteIOContext *rv = av_alloc_put_byte(
|      ^
| ffdecode.c:290:5: warning: implicit declaration of function 'av_alloc_put_byte' [-Wimplicit-function-declaration]
| ffdecode.c:290:25: warning: initialization makes pointer from integer without a cast [enabled by default]
|      ByteIOContext *rv = av_alloc_put_byte(
|                          ^
| ffdecode.c: In function 'video_thread':
| ffdecode.c:1315:9: warning: variable 'len1' set but not used [-Wunused-but-set-variable]
|      int len1, got_picture;
|          ^
| ffdecode.c: In function 'subtitle_thread':
| ffdecode.c:1374:9: warning: variable 'len1' set but not used [-Wunused-but-set-variable]
|      int len1, got_subtitle;
|          ^
| ffdecode.c: In function 'audio_decode_frame':
| ffdecode.c:1539:13: warning: 'avcodec_decode_audio3' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3608) [-Wdeprecated-declarations]
|              len1 = avcodec_decode_audio3(dec,
|              ^
| ffdecode.c:1561:59: error: 'SAMPLE_FMT_S16' undeclared (first use in this function)
|                  (dec->channels != 2 || dec->sample_fmt != SAMPLE_FMT_S16)) {
|                                                            ^
| ffdecode.c:1561:59: note: each undeclared identifier is reported only once for each function it appears in
| ffdecode.c:1563:17: warning: 'av_audio_resample_init' is deprecated (declared at /usr/include/libavcodec/avcodec.h:4109) [-Wdeprecated-declarations]
|                  is->reformat_ctx = av_audio_resample_init(
|                  ^
| ffdecode.c:1584:17: warning: implicit declaration of function 'av_get_bits_per_sample_format' [-Wimplicit-function-declaration]
|                  int len = data_size / (av_get_bits_per_sample_format(dec->sample_fmt) / 8);
|                  ^
| ffdecode.c:1587:17: warning: 'audio_resample' is deprecated (declared at /usr/include/libavcodec/avcodec.h:4117) [-Wdeprecated-declarations]
|                  len = audio_resample(is->reformat_ctx, (short *) is->audio_buf2, (short *) is->audio_buf1, len);
|                  ^
| ffdecode.c: In function 'stream_component_open':
| ffdecode.c:1812:5: warning: 'lowres' is deprecated (declared at /usr/include/libavcodec/avcodec.h:2718) [-Wdeprecated-declarations]
|      enc->lowres = lowres;
|      ^
| ffdecode.c:1819:8: error: 'AVCodecContext' has no member named 'error_recognition'
|      enc->error_recognition= error_recognition;
|         ^
| ffdecode.c:1828:5: warning: implicit declaration of function 'avcodec_open' [-Wimplicit-function-declaration]
|      err = avcodec_open(enc, codec);
|      ^
| ffdecode.c:1837:9: warning: implicit declaration of function 'avcodec_thread_init' [-Wimplicit-function-declaration]
|          avcodec_thread_init(enc, thread_count);
|          ^
| ffdecode.c: In function 'stream_component_close':
| ffdecode.c:1896:13: warning: 'audio_resample_close' is deprecated (declared at /usr/include/libavcodec/avcodec.h:4126) [-Wdeprecated-declarations]
|              audio_resample_close(is->reformat_ctx);
|              ^
| ffdecode.c: In function 'dump_stream_info':
| ffdecode.c:1956:5: error: unknown type name 'AVMetadataTag'
|      AVMetadataTag *tag = NULL;
|      ^
| ffdecode.c:1957:5: warning: implicit declaration of function 'av_metadata_get' [-Wimplicit-function-declaration]
|      while ((tag=av_metadata_get(s->metadata,"",tag,AV_METADATA_IGNORE_SUFFIX)))
|      ^
| ffdecode.c:1957:52: error: 'AV_METADATA_IGNORE_SUFFIX' undeclared (first use in this function)
|      while ((tag=av_metadata_get(s->metadata,"",tag,AV_METADATA_IGNORE_SUFFIX)))
|                                                     ^
| ffdecode.c:1958:40: error: request for member 'key' in something not a structure or union
|          fprintf(stderr, "%s: %s\n", tag->key, tag->value);
|                                         ^
| ffdecode.c:1958:50: error: request for member 'value' in something not a structure or union
|          fprintf(stderr, "%s: %s\n", tag->key, tag->value);
|                                                   ^
| ffdecode.c: In function 'decode_thread':
| ffdecode.c:1971:5: error: unknown type name 'AVFormatParameters'
|      AVFormatParameters params, *ap = ¶ms;
|      ^
| ffdecode.c:1975:5: error: unknown type name 'ByteIOContext'
|      ByteIOContext *pb;
|      ^
| ffdecode.c:1995:7: error: request for member 'width' in something not a structure or union
|      ap->width = frame_width;
|        ^
| ffdecode.c:1996:7: error: request for member 'height' in something not a structure or union
|      ap->height= frame_height;
|        ^
| ffdecode.c:1997:7: error: request for member 'time_base' in something not a structure or union
|      ap->time_base= (AVRational){1, 25};
|        ^
| ffdecode.c:1998:7: error: request for member 'pix_fmt' in something not a structure or union
|      ap->pix_fmt = frame_pix_fmt;
|        ^
| ffdecode.c:2010:13: warning: implicit declaration of function 'get_buffer' [-Wimplicit-function-declaration]
|              pd->buf_size = get_buffer(pb, pd->buf, probe_size);
|              ^
| ffdecode.c:2014:13: warning: implicit declaration of function 'url_fseek' [-Wimplicit-function-declaration]
|              if (url_fseek(pb, 0, SEEK_SET) < 0) {
|              ^
| ffdecode.c:2032:5: warning: implicit declaration of function 'av_open_input_stream' [-Wimplicit-function-declaration]
|      err = av_open_input_stream(
|      ^
| ffdecode.c:2053:5: warning: implicit declaration of function 'av_find_stream_info' [-Wimplicit-function-declaration]
|      err = av_find_stream_info(ic);
|      ^
| ffdecode.c:2104:9: warning: implicit declaration of function 'dump_format' [-Wimplicit-function-declaration]
|          dump_format(ic, 0, is->filename, 0);
|          ^
| ffdecode.c:2214:9: warning: implicit declaration of function 'url_feof' [-Wimplicit-function-declaration]
|          if(url_feof(ic->pb)) {
|          ^
| ffdecode.c:2273:9: warning: implicit declaration of function 'av_close_input_stream' [-Wimplicit-function-declaration]
|          av_close_input_stream(is->ic);
|          ^
| ffdecode.c:2281:27: error: request for member 'buffer' in something not a structure or union
|      av_free(is->io_context->buffer);
|                            ^
| ffdecode.c:1976:9: warning: variable 'signalled_start' set but not used [-Wunused-but-set-variable]
|      int signalled_start = 0;
|          ^
| In file included from ffdecode.c:22:0:
| ffdecode.c: At top level:
| /usr/include/python2.7/pygame/pygame.h:678:14: warning: 'PyGAME_C_API' defined but not used [-Wunused-variable]
|  static void* PyGAME_C_API[PYGAMEAPI_TOTALSLOTS] = { NULL };
|               ^
| ffdecode.c:230:12: warning: 'seek_by_bytes' defined but not used [-Wunused-variable]
|  static int seek_by_bytes;
|             ^
| error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
| make: *** [build-python2.7] Error 1

The full build log is available from
http://people.debian.org/~sramacher/logs/renpy_6.13.12-1_amd64-20130826-1836.log

-- 
Sebastian Ramacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20130827/b215b425/attachment.sig>


More information about the Pkg-games-devel mailing list