[Pkg-zfsonlinux-devel] Bug#1095855: libzfslinux-dev: pkg-config --cflags libzfs (or libzfs_core) always fails now with "Package libtirpc was not found in the pkg-config search path." (same for zlib)

наб nabijaczleweli at nabijaczleweli.xyz
Thu Feb 13 00:01:42 GMT 2025


Package: libzfslinux-dev
Version: 2.2.7-2
Severity: serious
Tags: patch
Justification: Policy 3.5

Dear Maintainer,

When rebuilding fzifdso on current sid, I noticed the following error:
  + make
  Package libtirpc was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libtirpc.pc'
  to the PKG_CONFIG_PATH environment variable
  Package 'libtirpc', required by 'libzfs_core', not found
  Package 'zlib', required by 'libzfs_core', not found
  Package 'libtirpc', required by 'libzfs_core', not found
  Package 'zlib', required by 'libzfs_core', not found
  g++ -g -O3 -std=c++17 -fno-exceptions -fno-rtti -Wall -Wextra -pipe -fPIC  -flto -MD -DFZIFDSO_VERSION='"0.4.0-5-g6a94604"' -c -o out/build/obj/bin/zfs-fido2-add-backup.o src/bin/zfs-fido2-add-backup.cpp
  In file included from src/bin/zfs-fido2-add-backup.cpp:8:
  src/bin/../main.hpp:9:10: fatal error: libzfs.h: No such file or directory
      9 | #include <libzfs.h>
        |          ^~~~~~~~~~
  compilation terminated.
(https://builds.sr.ht/~nabijaczleweli/job/1428746#task-build-gcc-1).

I've narrowed this down to a
  pkg-config --cflags libzfs libzfs_core
invocation.

Installing libtirpc-dev and zlib1g-dev fixed this and let fzifdso build.

Attaching patch that fixes this by adding them to Depends:,
also in the form of an MR at
  https://salsa.debian.org/zfsonlinux-team/zfs/-/merge_requests/47

Best,
наб

-- System Information:
Debian Release: 12.9
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-27-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libzfslinux-dev depends on:
pn  libblkid-dev         <none>
ii  libnvpair3linux      2.1.11-1+deb12u1
ii  libssl-dev           3.0.15-1~deb12u1
ii  libuutil3linux       2.1.11-1+deb12u1
ii  libzfs4linux         2.1.11-1+deb12u1
pn  libzfsbootenv1linux  <none>
ii  libzpool5linux       2.1.11-1+deb12u1

libzfslinux-dev recommends no packages.

libzfslinux-dev suggests no packages.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-zfsonlinux-devel/attachments/20250213/57245038/attachment.sig>


More information about the Pkg-zfsonlinux-devel mailing list