tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
multimedia/libdvdread w/dvdcss: build failure
hi-
I'm doing an update and have discovered that multimedia/libdvdread
with the dvdcss option enabled no longer builds. I think the issue
was introduced when the package was updated to to build libdvdread-7.1.1
with meson (used to build libdvdread-6.1.2 with autoconfig).
The meson config generates this suspect warning:
WARNING: Found pkg-config '/usr/local/src/pkgsrc/multimedia/libdvdread/work/.tools/bin/pkg-config' but it failed when ran
Found pkg-config: NO
Run-time dependency libdvdcss found: NO (tried pkg-config)
and the build then fails with errors like:
undefined reference to `dvdcss_close'
The libdvscss package is installed:
# pkg_info |fgrep dvdcss
libdvdcss-1.4.3 Simple library designed for accessing DVDs
and if I roll multimedia/libdvdread back to build libdvdread-6.1.2
with autoconfig, then it builds just fine.
Full logs from my macbook below.
Any suggestions on how to fix this?
thanks,
chuck
# pwd
/usr/local/src/pkgsrc/multimedia/libdvdread
# bmake
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for libdvdread-7.1.1.tar.xz
=> Checksum SHA512 OK for libdvdread-7.1.1.tar.xz
===> Installing dependencies for libdvdread-7.1.1
==========================================================================
The supported build options for libdvdread are:
dvdcss
The currently selected options are:
dvdcss
You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable. Its current value is shown:
PKG_OPTIONS.libdvdread = dvdcss
==========================================================================
=> Tool dependency meson>=0: found meson-1.12.0nb1
=> Tool dependency libtool-base>=2.4.2nb9: found libtool-base-2.4.7nb1
=> Tool dependency mktools-[0-9]*: found mktools-20250213
=> Tool dependency xz>=4.999.9betanb1: found xz-5.8.4
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Full dependency libdvdcss>=1.3.99: found libdvdcss-1.4.3
===> Skipping vulnerability checks.
WARNING: No /usr/local/pkg.2609/var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/local/pkg.2609/sbin/pkg_admin -K /usr/local/pkg.2609/var/db/pkg fetch-pkg-vulnerabilities'.
===> Overriding tools for libdvdread-7.1.1
===> Extracting for libdvdread-7.1.1
===> Patching for libdvdread-7.1.1
===> Creating toolchain wrappers for libdvdread-7.1.1
===> Configuring for libdvdread-7.1.1
=> Creating meson native file
The Meson build system
Version: 1.12.0
Source dir: /usr/local/src/pkgsrc/multimedia/libdvdread/work/libdvdread-7.1.1
Build dir: /usr/local/src/pkgsrc/multimedia/libdvdread/work/libdvdread-7.1.1/output
Build type: native build
Project name: libdvdread
Project version: 7.1.1
C compiler for the host machine: clang (clang 21.0.0 "Apple clang version 21.0.0 (clang-2100.3.34.2)")
C linker for the host machine: clang ld64 27037.1
Host machine cpu family: aarch64
Host machine cpu: aarch64
Has header "sys/param.h" : YES
Has header "limits.h" : YES
Has header "dirent.h" : YES
Compiler for C supports function attribute unused: YES
Checking for function "strerror_r" : YES
Checking if "_Static_assert" compiles: YES
WARNING: Found pkg-config '/usr/local/src/pkgsrc/multimedia/libdvdread/work/.tools/bin/pkg-config' but it failed when ran
Found pkg-config: NO
Run-time dependency libdvdcss found: NO (tried pkg-config)
Checking for function "dlopen" : YES
Compiler for C supports arguments -Wsign-compare: YES
Compiler for C supports arguments -Wundef: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Wvolatile-register-var: YES
Compiler for C supports arguments -Wformat: YES
Compiler for C supports arguments -Wformat-security: YES
Compiler for C supports arguments -Wduplicated-branches: NO
Compiler for C supports arguments -Wduplicated-cond: NO
Compiler for C supports arguments -Wbad-function-cast: YES
Compiler for C supports arguments -Wwrite-strings: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Winit-self: YES
Compiler for C supports arguments -Wlogical-op: NO
Compiler for C supports arguments -Wshadow=local: NO
Compiler for C supports arguments -Wmultistatement-macros: NO
Configuring config.h using configuration
Configuring version.h using configuration
WARNING: Found pkg-config '/usr/local/src/pkgsrc/multimedia/libdvdread/work/.tools/bin/pkg-config' but it failed when ran
Found pkg-config: NO
Build targets in project: 2
libdvdread 7.1.1
User defined options
Native files: /usr/local/src/pkgsrc/multimedia/libdvdread/work/.meson_native
buildtype : plain
libdir : lib
libexecdir : libexec
mandir : man
prefix : /usr/local/pkg.2609
sysconfdir : /usr/local/pkg.2609/etc
wrap_mode : nodownload
Found ninja-1.13.2 at /usr/local/pkg.2609/bin/ninja
=> Modifying libtool scripts to use pkgsrc libtool
=> Modifying libtool scripts to use pkgsrc depcomp
===> Building for libdvdread-7.1.1
ninja: Entering directory `output'
[3/13] Compiling C object src/libdvdread.8.dylib.p/dvd_reader.c.o
../src/dvd_reader.c:562:19: warning: unused variable 'fe' [-Wunused-variable]
562 | struct fstab* fe;
| ^~
1 warning generated.
[6/13] Compiling C object src/libdvdread.8.dylib.p/ifo_read.c.o
../src/ifo_read.c:772:18: warning: no previous prototype for function 'ifoFree_UD_PGCIT' [-Wmissing-prototypes]
772 | DVDREAD_API void ifoFree_UD_PGCIT(ifo_handle_t *ifofile) {
| ^
../src/ifo_read.c:772:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
772 | DVDREAD_API void ifoFree_UD_PGCIT(ifo_handle_t *ifofile) {
| ^
| static
1 warning generated.
[11/13] Compiling C object src/libdvdread.8.dylib.p/file_file_posix.c.o
../src/file/file_posix.c:140:14: warning: 'readdir_r' is deprecated: This function cannot be used safely as it does not take into account the variability of {NAME_MAX}. It is highly recommended that you use readdir(3) instead. [-Wdeprecated-declarations]
140 | result = readdir_r((DIR*)dir, &e, &p_e);
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/dirent.h:114:1: note: 'readdir_r' has been explicitly marked deprecated here
114 | __deprecated_msg("This function cannot be used safely as it does not take into account the variability of {NAME_MAX}. It is highly recommended that you use readdir(3) instead.")
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:227:48: note: expanded from macro '__deprecated_msg'
227 | #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
| ^
1 warning generated.
[12/13] Linking target src/libdvdread.8.dylib
FAILED: [code=1] src/libdvdread.8.dylib
clang -o src/libdvdread.8.dylib src/libdvdread.8.dylib.p/bitreader.c.o src/libdvdread.8.dylib.p/dvd_input.c.o src/libdvdread.8.dylib.p/dvd_reader.c.o src/libdvdread.8.dylib.p/dvd_udf.c.o src/libdvdread.8.dylib.p/ifo_print.c.o src/libdvdread.8.dylib.p/ifo_read.c.o src/libdvdread.8.dylib.p/logger.c.o src/libdvdread.8.dylib.p/md5.c.o src/libdvdread.8.dylib.p/nav_print.c.o src/libdvdread.8.dylib.p/nav_read.c.o src/libdvdread.8.dylib.p/file_file_posix.c.o -L/usr/local/pkg.2609/lib -I/usr/local/pkg.2609/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -shared -Wl,-install_name,@rpath/libdvdread.8.dylib,-compatibility_version,8,-current_version,8 -O2 -DHAVE_DVDCSS_DVDCSS_H=1
Undefined symbols for architecture arm64:
"_dvdcss_close", referenced from:
_css_close in dvd_input.c.o
"_dvdcss_open", referenced from:
_css_open in dvd_input.c.o
"_dvdcss_open_stream", referenced from:
_css_open in dvd_input.c.o
"_dvdcss_read", referenced from:
_css_read in dvd_input.c.o
"_dvdcss_seek", referenced from:
_css_seek in dvd_input.c.o
_css_title in dvd_input.c.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
*** Error code 1
Stop.
bmake[1]: stopped making "all" in /usr/local/src/pkgsrc/multimedia/libdvdread
*** Error code 1
Stop.
bmake: stopped making "all" in /usr/local/src/pkgsrc/multimedia/libdvdread
#
# pkg_info | fgrep dvdcss
libdvdcss-1.4.3 Simple library designed for accessing DVDs
#
[[ If I roll back the changes to libdvdread to build libdvdread-6.1.2,
then it works ... ]]
# cvs update -D01-Aug-2026 .
? work
cvs update: Updating .
P Makefile
P PLIST
U distinfo
#
# bmake clean
===> Cleaning for libdvdread-6.1.2
# bmake
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for libdvdread-6.1.2.tar.bz2
=> Checksum SHA512 OK for libdvdread-6.1.2.tar.bz2
===> Installing dependencies for libdvdread-6.1.2
==========================================================================
The supported build options for libdvdread are:
dvdcss
The currently selected options are:
dvdcss
You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable. Its current value is shown:
PKG_OPTIONS.libdvdread = dvdcss
==========================================================================
=> Tool dependency libtool-base>=2.4.2nb9: found libtool-base-2.4.7nb1
=> Tool dependency mktools-[0-9]*: found mktools-20250213
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Full dependency libdvdcss>=1.3.99: found libdvdcss-1.4.3
===> Skipping vulnerability checks.
WARNING: No /usr/local/pkg.2609/var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/local/pkg.2609/sbin/pkg_admin -K /usr/local/pkg.2609/var/db/pkg fetch-pkg-vulnerabilities'.
===> Overriding tools for libdvdread-6.1.2
===> Extracting for libdvdread-6.1.2
===> Patching for libdvdread-6.1.2
===> Creating toolchain wrappers for libdvdread-6.1.2
===> Configuring for libdvdread-6.1.2
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
checking build system type... aarch64-apple-darwin27
checking host system type... aarch64-apple-darwin27
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/pkg.2609/bin/gmkdir -p
checking for gawk... /usr/local/pkg.2609/bin/nawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports nested variables... (cached) yes
checking how to print strings... print -r
checking whether make supports the include directive... yes (GNU style)
checking for aarch64-apple-darwin27-gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking whether clang understands -c and -o together... yes
checking dependency style of clang... gcc3
checking for a sed that does not truncate output... /usr/local/pkg.2609/bin/nbsed
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for fgrep... /usr/bin/grep -F
checking for ld used by clang... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... (cached) 1048576
checking how to convert aarch64-apple-darwin27 file names to aarch64-apple-darwin27 format... func_convert_file_noop
checking how to convert aarch64-apple-darwin27 file names to toolchain format... func_convert_file_noop
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for aarch64-apple-darwin27-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for aarch64-apple-darwin27-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... print -r --
checking for aarch64-apple-darwin27-ar... no
checking for ar... ar
checking for archiver @FILE support... no
checking for aarch64-apple-darwin27-strip... no
checking for strip... strip
checking for aarch64-apple-darwin27-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from clang object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for aarch64-apple-darwin27-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for aarch64-apple-darwin27-dsymutil... no
checking for dsymutil... dsymutil
checking for aarch64-apple-darwin27-nmedit... no
checking for nmedit... nmedit
checking for aarch64-apple-darwin27-lipo... no
checking for lipo... lipo
checking for aarch64-apple-darwin27-otool... no
checking for otool... otool
checking for aarch64-apple-darwin27-otool64... no
checking for otool64... no
checking for -single_module linker flag... ld: warning: -single_module is obsolete
no
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... clang -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if clang supports -fno-rtti -fno-exceptions... yes
checking for clang option to produce PIC... -fno-common -DPIC
checking if clang PIC flag -fno-common -DPIC works... yes
checking if clang static flag -static works... no
checking if clang supports -c -o file.o... rm: conftest*: No such file or directory
yes
checking if clang supports -c -o file.o... (cached) yes
checking whether the clang linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin27 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for clang option to accept ISO C99... none needed
checking for sys/param.h... yes
checking for limits.h... yes
checking for dlfcn.h... (cached) yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether byte ordering is bigendian... no
checking pkg-config is at least version 0.9.0... no
checking for library containing dlopen... none required
checking if clang supports -Wall flag... yes
checking if clang supports -Wsign-compare flag... yes
checking if clang supports -Wextra flag... yes
checking for doxygen... /usr/local/pkg.2609/bin/doxygen
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/doxygen.cfg
config.status: creating misc/dvdread.pc
config.status: creating src/dvdread/version.h
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
rm: libtoolT: No such file or directory
=> Modifying libtool scripts to use pkgsrc libtool
=> Modifying libtool scripts to use pkgsrc depcomp
===> Building for libdvdread-6.1.2
/usr/local/pkg.2609/bin/bmake all-am
CC src/bitreader.lo
[[ edited out a bunch of compiler warnings etc. ]]
52 warnings generated.
CCLD libdvdread.la
#
#
Home |
Main Index |
Thread Index |
Old Index