Opened 3 years ago

Closed 3 years ago

#9582 closed defect (fixed)

MP3 demuxer/decoder linker error

Reported by: Andreas Unterweger Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: MP3
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Since commit 33e6d57f01dd4742a2e25ac5fa072b487d9d02ce, enabling MP3 demuxing/decoding yields a linker error when building.

How to reproduce (minimally):

./configure --disable-everything --enable-libmp3lame --enable-decoder=mp3 --enable-demuxer=mp3 --disable-doc --enable-protocol=file

This yields

/usr/bin/ld: libavcodec/libavcodec.a(mpegaudiodec_fixed.o): in function `mp_decode_layer2':
/home/stud/ffmpeg-orig/libavcodec/mpegaudiodec_template.c:474: undefined reference to `ff_mpa_sblimit_table'
/usr/bin/ld: /home/stud/ffmpeg-orig/libavcodec/mpegaudiodec_template.c:475: undefined reference to `ff_mpa_alloc_tables'
/usr/bin/ld: /home/stud/ffmpeg-orig/libavcodec/mpegaudiodec_template.c:559: undefined reference to `ff_mpa_quant_bits'
/usr/bin/ld: /home/stud/ffmpeg-orig/libavcodec/mpegaudiodec_template.c:559: undefined reference to `ff_mpa_quant_bits'
/usr/bin/ld: /home/stud/ffmpeg-orig/libavcodec/mpegaudiodec_template.c:565: undefined reference to `ff_mpa_quant_steps'
/usr/bin/ld: /home/stud/ffmpeg-orig/libavcodec/mpegaudiodec_template.c:598: undefined reference to `ff_mpa_quant_bits'
/usr/bin/ld: /home/stud/ffmpeg-orig/libavcodec/mpegaudiodec_template.c:602: undefined reference to `ff_mpa_quant_steps'
/usr/bin/ld: /home/stud/ffmpeg-orig/libavcodec/mpegaudiodec_template.c:565: undefined reference to `ff_mpa_quant_steps'
/usr/bin/ld: libavcodec/libavcodec.a(mpegaudiodec_common.o): in function `mpegaudiodec_common_init_static':
/home/stud/ffmpeg-orig/libavcodec/mpegaudiodec_common.c:461: undefined reference to `ff_mpa_quant_bits'
/usr/bin/ld: /home/stud/ffmpeg-orig/libavcodec/mpegaudiodec_common.c:465: undefined reference to `ff_mpa_quant_steps'
collect2: error: ld returned 1 exit status
make: *** [Makefile:127: ffmpeg_g] Error 1

Change History (2)

comment:1 by Andreas Unterweger, 3 years ago

Component: undeterminedavcodec

comment:2 by mkver, 3 years ago

Resolution: fixed
Status: newclosed

Already fixed in 07fd34aca744d6ae64cd4756943ce508ee0f9973. Reopen if you can still reproduce this on master or on release/5.0 (I just checked it again and it worked for me).

Note: See TracTickets for help on using tickets.