Opened 7 days ago

Closed 6 days ago

#7489 closed defect (worksforme)

build of examples fails with avio_dir_cmd.o: In function `list_op': avio_dir_cmd.c:(.text+0x167): undefined reference to `avio_open_dir'

Reported by: cortexembed Owned by:
Priority: minor Component: documentation
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

CC doc/examples/avio_dir_cmd.o
LD doc/examples/avio_dir_cmd_g
doc/examples/avio_dir_cmd.o: In function `list_op':
avio_dir_cmd.c:(.text+0x167): undefined reference to `avio_open_dir'
avio_dir_cmd.c:(.text+0x232): undefined reference to `avio_read_dir'
avio_dir_cmd.c:(.text+0x455): undefined reference to `avio_free_directory_entry'
avio_dir_cmd.c:(.text+0x471): undefined reference to `avio_close_dir'
doc/examples/avio_dir_cmd.o: In function `del_op':
avio_dir_cmd.c:(.text+0x4c1): undefined reference to `avpriv_io_delete'
doc/examples/avio_dir_cmd.o: In function `move_op':
avio_dir_cmd.c:(.text+0x591): undefined reference to `avpriv_io_move'
doc/examples/avio_dir_cmd.o: In function `main':
avio_dir_cmd.c:(.text+0x6e2): undefined reference to `avformat_network_init'
avio_dir_cmd.c:(.text+0x841): undefined reference to `avformat_network_deinit'
collect2: error: ld returned 1 exit status

./configure --disable-runtime-cpudetect --disable-swscale-alpha --disable-autodetect --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-avdevice --disable-swresample --disable-swscale --disable-postproc --disable-avfilter --disable-pthreads --disable-w32threads --disable-os2threads --disable-network --disable-encoders --disable-hwaccels --disable-muxers --disable-demuxers --enable-demuxer=h264 --disable-protocols --disable-indevs --disable-outdevs --disable-devices --disable-filters --disable-alsa --disable-appkit --disable-avfoundation --disable-bzlib --disable-coreimage --disable-iconv --disable-lzma --disable-sndio --disable-schannel --disable-sdl2 --disable-securetransport --disable-xlib --disable-zlib --disable-amf --disable-audiotoolbox --disable-cuvid --disable-d3d11va --disable-dxva2 --disable-ffnvcodec --disable-nvdec --disable-nvenc --disable-v4l2-m2m --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-symver --disable-asm --disable-altivec --disable-vsx --disable-power8 --disable-amd3dnow --disable-amd3dnowext --disable-mmx --disable-mmxext --disable-sse --disable-sse2 --disable-sse3 --disable-ssse3 --disable-sse4 --disable-sse42 --disable-avx --disable-xop --disable-fma3 --disable-fma4 --disable-avx2 --disable-avx512 --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-vfp --disable-inline-asm --disable-x86asm --disable-mipsdsp --disable-mipsdspr2 --disable-msa --disable-mipsfpu --disable-mmi --disable-fast-unaligned --disable-debug --disable-optimizations --disable-stripping --disable-random --enable-decoder=h264 --enable-parser=h264

Change History (3)

comment:1 Changed 7 days ago by cehoyos

  • Resolution set to worksforme
  • Status changed from new to closed
$ ./configure && make doc/examples/avio_dir_cmd

...

CC      doc/examples/avio_dir_cmd.o
LD      doc/examples/avio_dir_cmd_g
STRIP   doc/examples/avio_dir_cmd

comment:2 Changed 6 days ago by cortexembed

  • Resolution worksforme deleted
  • Status changed from closed to reopened

With your suggestion of course it completes, but this does not solve the problem. I do cross-compiling ffmpeg for a very limited embeddeded enviroment. Please try ./configure with my parameters again.

Please try:

./configure --disable-runtime-cpudetect --disable-swscale-alpha --disable-autodetect --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-avdevice --disable-swresample --disable-swscale --disable-postproc --disable-avfilter --disable-pthreads --disable-w32threads --disable-os2threads --disable-network --disable-encoders --disable-hwaccels --disable-muxers --disable-demuxers --enable-demuxer=h264 --disable-protocols --disable-indevs --disable-outdevs --disable-devices --disable-filters --disable-alsa --disable-appkit --disable-avfoundation --disable-bzlib --disable-coreimage --disable-iconv --disable-lzma --disable-sndio --disable-schannel --disable-sdl2 --disable-securetransport --disable-xlib --disable-zlib --disable-amf --disable-audiotoolbox --disable-cuvid --disable-d3d11va --disable-dxva2 --disable-ffnvcodec --disable-nvdec --disable-nvenc --disable-v4l2-m2m --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-symver --disable-asm --disable-altivec --disable-vsx --disable-power8 --disable-amd3dnow --disable-amd3dnowext --disable-mmx --disable-mmxext --disable-sse --disable-sse2 --disable-sse3 --disable-ssse3 --disable-sse4 --disable-sse42 --disable-avx --disable-xop --disable-fma3 --disable-fma4 --disable-avx2 --disable-avx512 --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-vfp --disable-inline-asm --disable-x86asm --disable-mipsdsp --disable-mipsdspr2 --disable-msa --disable-mipsfpu --disable-mmi --disable-fast-unaligned --disable-debug --disable-optimizations --disable-stripping --disable-random --enable-decoder=h264 --enable-parser=h264 && make doc/examples/avio_dir_cmd

There it fails.

comment:3 Changed 6 days ago by cehoyos

  • Resolution set to worksforme
  • Status changed from reopened to closed

Please note that your configure line makes no sense (for no target), ask on the user mailing list for build support.

./configure --disable-runtime-cpudetect --disable-swscale-alpha --disable-autodetect --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-avdevice --disable-swresample --disable-swscale --disable-postproc --disable-avfilter --disable-pthreads --disable-w32threads --disable-os2threads --disable-network --disable-encoders --disable-hwaccels --disable-muxers --disable-demuxers --enable-demuxer=h264 --disable-protocols --disable-indevs --disable-outdevs --disable-devices --disable-filters --disable-alsa --disable-appkit --disable-avfoundation --disable-bzlib --disable-coreimage --disable-iconv --disable-lzma --disable-sndio --disable-schannel --disable-sdl2 --disable-securetransport --disable-xlib --disable-zlib --disable-amf --disable-audiotoolbox --disable-cuvid --disable-d3d11va --disable-dxva2 --disable-ffnvcodec --disable-nvdec --disable-nvenc --disable-v4l2-m2m --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-symver --disable-asm --disable-altivec --disable-vsx --disable-power8 --disable-amd3dnow --disable-amd3dnowext --disable-mmx --disable-mmxext --disable-sse --disable-sse2 --disable-sse3 --disable-ssse3 --disable-sse4 --disable-sse42 --disable-avx --disable-xop --disable-fma3 --disable-fma4 --disable-avx2 --disable-avx512 --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-vfp --disable-inline-asm --disable-x86asm --disable-mipsdsp --disable-mipsdspr2 --disable-msa --disable-mipsfpu --disable-mmi --disable-fast-unaligned --disable-debug --disable-optimizations --disable-stripping --disable-random --enable-decoder=h264 --enable-parser=h264 && make doc/examples/avio_dir_cmd

...

LD      doc/examples/avio_dir_cmd_g
CP      doc/examples/avio_dir_cmd
STRIP   doc/examples/avio_dir_cmd
skipping strip doc/examples/avio_dir_cmd
Note: See TracTickets for help on using tickets.