Opened 4 months ago

Closed 4 months ago

#70160 closed defect (fixed)

ffmpeg configure failure: ERROR: zvbi-0.2 not found using pkg-config

Reported by: barracuda156 Owned by: barracuda156
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc: dbevans (David B. Evans), mascguy (Christopher Nielsen)
Port: ffmpeg, zvbi

Description

This is the default ffmpeg from the master:

--->  Configuring ffmpeg
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/work/ffmpeg-4.4.4" && ./configure --prefix=/opt/local --cc="/opt/local/bin/gcc-mp-13" --mandir=/opt/local/share/man --disable-audiotoolbox --disable-indev=jack --disable-libjack --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --disable-opencl --disable-outdev=xv --disable-sdl2 --disable-securetransport --disable-videotoolbox --enable-avfilter --enable-avresample --enable-fontconfig --enable-gnutls --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libfribidi --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libzimg --enable-libzvbi --enable-lzma --enable-pthreads --enable-shared --enable-swscale --enable-zlib --disable-filter=coreimage --disable-filter=coreimagesrc --disable-indev=avfoundation --enable-libaom --enable-libsvtav1 --arch=ppc --enable-gpl --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxvid --enable-postproc 
ERROR: zvbi-0.2 not found using pkg-config

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/work/ffmpeg-4.4.4" && ./configure --prefix=/opt/local --cc="/opt/local/bin/gcc-mp-13" --mandir=/opt/local/share/man --disable-audiotoolbox --disable-indev=jack --disable-libjack --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --disable-opencl --disable-outdev=xv --disable-sdl2 --disable-securetransport --disable-videotoolbox --enable-avfilter --enable-avresample --enable-fontconfig --enable-gnutls --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libfribidi --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libzimg --enable-libzvbi --enable-lzma --enable-pthreads --enable-shared --enable-swscale --enable-zlib --disable-filter=coreimage --disable-filter=coreimagesrc --disable-indev=avfoundation --enable-libaom --enable-libsvtav1 --arch=ppc --enable-gpl --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxvid --enable-postproc 
Exit code: 1

I think I have seen this before but got it fixed somehow. Maybe we need to force a modern compiler for zvbi?

Attachments (1)

zvbi_ffmpeg.log (25.0 KB) - added by barracuda156 4 months ago.

Download all attachments as: .zip

Change History (6)

Changed 4 months ago by barracuda156

Attachment: zvbi_ffmpeg.log added

comment:1 Changed 4 months ago by ryandesign (Ryan Carsten Schmidt)

It's not immediately clear to me what the problem would be. ffmpeg does depend on pkgconfig and zvbi. zvbi does install zvbi-0.2.pc. Please attach the config.log.

comment:2 in reply to:  1 Changed 4 months ago by barracuda156

Replying to ryandesign:

It's not immediately clear to me what the problem would be. ffmpeg does depend on pkgconfig and zvbi. zvbi does install zvbi-0.2.pc. Please attach the config.log.

Ah, I guess this: #64212

Why does it have to be _not_ disabled for any platform? MacPorts avoids rpaths, AFAIK, and they are known not to work correctly on numerous instances. (I shouldn't assume that the condition was left exclusively to ensure it is not fixed for 10.6 on ppc, lol.)

Version 1, edited 4 months ago by barracuda156 (previous) (next) (diff)

comment:3 Changed 4 months ago by ryandesign (Ryan Carsten Schmidt)

Ah yes. zvbi has -R/opt/local/lib in its zvbi-0.2.pc on 10.6 and later.

I agree with disabling rpath unconditionally, provided the build still succeeds on newer OS versions.

comment:4 Changed 4 months ago by kencu (Ken)

this software should not use the “-R” flag at all on darwin.

https://stackoverflow.com/questions/7860024/what-does-the-gcc-r-parameter-do

zvbi has moved to https://github.com/zapping-vbi/zvbi and has had many updates since our version.

perhaps newer versions don’t use that “-R” flag any longer…

comment:5 Changed 4 months ago by barracuda156

Owner: set to barracuda156
Resolution: fixed
Status: newclosed

In d0b60dfa3119629926260f4f30ea6961308d0ee6/macports-ports (master):

zvbi: disable rpath

Fixes: #70160
See: #64212

Note: See TracTickets for help on using tickets.