#11607: Linking ffplay fails
-------------------------------------+-------------------------------------
             Reporter:  Ferdi        |                     Type:  defect
  Scholten                           |
               Status:  new          |                 Priority:  normal
            Component:  ffplay       |                  Version:  git-
                                     |  master
             Keywords:  ffplay       |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug: Linking ffplay fails with the followng error:

 {{{
 mold: error: undefined symbol: pl_log_create_351
 >>> referenced by <artificial>
 >>>               /tmp/cc87cOGI.ltrans0.ltrans.o:(create.lto_priv.0)
 collect2: error: ld returned 1 exit status
 make: *** [Makefile:140: ffplay_g] Error 1
 make: *** Waiting for unfinished jobs....

 }}}

 How to reproduce:
 Build FFmpeg with the following config:


 {{{
 ./configure \
   --prefix="$HOME/ffmpeg_build" \
   --pkg-config-flags="--static" \
   --extra-cflags="-I$HOME/ffmpeg_build/include -I/usr/local/cuda/include"
 \
   --extra-ldflags="-L$HOME/ffmpeg_build/lib -L/usr/local/cuda/lib64" \
   --extra-libs="-lpthread -lm" \
   --ld="g++" \
   --bindir="$HOME/bin" \
   --enable-gpl \
   --enable-gnutls \
   --enable-libaom \
   --enable-libass \
   --enable-libfdk-aac \
   --enable-libfreetype \
   --enable-libmp3lame \
   --enable-libopus \
   --enable-libsvtav1 \
   --enable-libdav1d \
   --enable-libvorbis \
   --enable-libvpx \
   --enable-libx264 \
   --enable-libx265 \
   --enable-nonfree \
   --enable-libvmaf \
   --enable-lto \
   --enable-libvpl \
   --enable-vulkan \
   --enable-libshaderc \
   --enable-opencl \
   --enable-vaapi \
   --enable-opengl \
   --enable-openal \
   --enable-libplacebo \
   --enable-shared \
   --disable-debug \
   --disable-avx512 \
   --disable-avx512icl \
   --enable-libdvdnav \
   --enable-libdvdread \
   --enable-cuda-nvcc \
   --enable-libnpp
 }}}


 FFmpeg and FFprobe compile and link fine, FFplay errors on linking causing
 the build to fail.

 The error also happens when linking with ld instead of mold.
 Using GCC 15.1 or 14.2 makes no difference in the outcome, the build
 fails.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11607>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to