Opened 4 years ago

Closed 4 years ago

#8378 closed defect (fixed)

various standalone undefined references

Reported by: llogan Owned by:
Priority: normal Component: build system
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Compiling 20c5f4d8358e5dab2eb87e611167987a4840122a:

iec61883 indev

./configure --disable-everything --disable-optimizations --enable-indev=iec61883 --enable-libiec61883 && make
[…]
LD      ffmpeg_g
/usr/bin/ld: libavdevice/libavdevice.a(iec61883.o): in function `iec61883_parse_queue_hdv':
libavdevice/iec61883.c:228: undefined reference to `avpriv_mpegts_parse_packet'
collect2: error: ld returned 1 exit status
make: *** [Makefile:111: ffmpeg_g] Error 1

headphone filter

./configure --disable-everything --disable-autodetect --enable-filter=headphone && make
[…]
LD      ffmpeg_g
/usr/bin/ld: libavfilter/libavfilter.a(af_headphone.o): in function `headphone_fast_convolute':
libavfilter/af_headphone.c:298: undefined reference to `av_fft_permute'
/usr/bin/ld: libavfilter/af_headphone.c:299: undefined reference to `av_fft_calc'
/usr/bin/ld: libavfilter/af_headphone.c:310: undefined reference to `av_fft_permute'
/usr/bin/ld: libavfilter/af_headphone.c:311: undefined reference to `av_fft_calc'
/usr/bin/ld: libavfilter/libavfilter.a(af_headphone.o): in function `convert_coeffs':
libavfilter/af_headphone.c:568: undefined reference to `av_fft_permute'
/usr/bin/ld: libavfilter/af_headphone.c:569: undefined reference to `av_fft_calc'
/usr/bin/ld: libavfilter/af_headphone.c:571: undefined reference to `av_fft_permute'
/usr/bin/ld: libavfilter/af_headphone.c:572: undefined reference to `av_fft_calc'
/usr/bin/ld: libavfilter/af_headphone.c:525: undefined reference to `av_fft_permute'
/usr/bin/ld: libavfilter/af_headphone.c:526: undefined reference to `av_fft_calc'
/usr/bin/ld: libavfilter/af_headphone.c:528: undefined reference to `av_fft_permute'
/usr/bin/ld: libavfilter/af_headphone.c:529: undefined reference to `av_fft_calc'
/usr/bin/ld: libavfilter/af_headphone.c:419: undefined reference to `av_fft_end'
/usr/bin/ld: libavfilter/af_headphone.c:420: undefined reference to `av_fft_end'
/usr/bin/ld: libavfilter/af_headphone.c:421: undefined reference to `av_fft_init'
/usr/bin/ld: libavfilter/af_headphone.c:422: undefined reference to `av_fft_init'
/usr/bin/ld: libavfilter/af_headphone.c:423: undefined reference to `av_fft_end'
/usr/bin/ld: libavfilter/af_headphone.c:424: undefined reference to `av_fft_end'
/usr/bin/ld: libavfilter/af_headphone.c:425: undefined reference to `av_fft_init'
/usr/bin/ld: libavfilter/af_headphone.c:426: undefined reference to `av_fft_init'
/usr/bin/ld: libavfilter/libavfilter.a(af_headphone.o): in function `uninit':
libavfilter/af_headphone.c:817: undefined reference to `av_fft_end'
/usr/bin/ld: libavfilter/af_headphone.c:818: undefined reference to `av_fft_end'
/usr/bin/ld: libavfilter/af_headphone.c:819: undefined reference to `av_fft_end'
/usr/bin/ld: libavfilter/af_headphone.c:820: undefined reference to `av_fft_end'
collect2: error: ld returned 1 exit status
make: *** [Makefile:111: ffmpeg_g] Error 1

showspatial filter

 ./configure --disable-everything --disable-autodetect --enable-filter=showspatial && make
[…]
LD      ffmpeg_g
/usr/bin/ld: libavfilter/libavfilter.a(avf_showspatial.o): in function `run_channel_fft':
libavfilter/avf_showspatial.c:146: undefined reference to `av_fft_permute'
/usr/bin/ld: libavfilter/avf_showspatial.c:147: undefined reference to `av_fft_calc'
/usr/bin/ld: libavfilter/libavfilter.a(avf_showspatial.o): in function `config_output':
libavfilter/avf_showspatial.c:176: undefined reference to `av_fft_end'
/usr/bin/ld: libavfilter/avf_showspatial.c:176: undefined reference to `av_fft_end'
/usr/bin/ld: libavfilter/avf_showspatial.c:180: undefined reference to `av_fft_init'
/usr/bin/ld: libavfilter/avf_showspatial.c:180: undefined reference to `av_fft_init'
/usr/bin/ld: libavfilter/libavfilter.a(avf_showspatial.o): in function `uninit':
libavfilter/avf_showspatial.c:97: undefined reference to `av_fft_end'
/usr/bin/ld: libavfilter/avf_showspatial.c:97: undefined reference to `av_fft_end'
/usr/bin/ld: libavfilter/avf_showspatial.c:99: undefined reference to `av_fft_end'
/usr/bin/ld: libavfilter/avf_showspatial.c:99: undefined reference to `av_fft_end'
collect2: error: ld returned 1 exit status
make: *** [Makefile:111: ffmpeg_g] Error 1

sln demuxer

./configure --disable-everything --enable-demuxer=sln && make
[…]
LD      ffmpeg_g
/usr/bin/ld: libavformat/libavformat.a(allformats.o): in function `av_format_init_next':
libavformat/allformats.c:574: undefined reference to `ff_sln_demuxer'
/usr/bin/ld: libavformat/libavformat.a(allformats.o): in function `av_demuxer_iterate':
libavformat/allformats.c:530: undefined reference to `ff_sln_demuxer'
collect2: error: ld returned 1 exit status
make: *** [Makefile:111: ffmpeg_g] Error 1

Change History (2)

in reply to:  description comment:1 by Carl Eugen Hoyos, 4 years ago

Replying to llogan:

iec61883 indev

./configure --disable-everything --disable-optimizations --enable-indev=iec61883 --enable-libiec61883 && make
[…]
LD      ffmpeg_g
/usr/bin/ld: libavdevice/libavdevice.a(iec61883.o): in function `iec61883_parse_queue_hdv':
libavdevice/iec61883.c:228: undefined reference to `avpriv_mpegts_parse_packet'
collect2: error: ld returned 1 exit status
make: *** [Makefile:111: ffmpeg_g] Error 1

I am tempted not to fix this as dead code elimination is a requirement even for --disable-optimizations, others fixed in 8038a87d49563acd385c335b57c68705bac5d95c, ce8faea9fddbe84c50bf6e17dacf8b541e965e17 and 56f25c11a9e88cbe2958d9dd1ebf5773c7f3e4a8

comment:2 by llogan, 4 years ago

Resolution: fixed
Status: newclosed

Considering this ticket to be fixed. Feel free to re-open for iec61883 if you want.

Note: See TracTickets for help on using tickets.