From nobody Sun Jan 02 15:44:24 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 377D51914D8C for ; Sun, 2 Jan 2022 15:44:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JRjqC6Rysz3L7J for ; Sun, 2 Jan 2022 15:44:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BEAE414878 for ; Sun, 2 Jan 2022 15:44:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 202FiNSs072023 for ; Sun, 2 Jan 2022 15:44:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 202FiNag072022 for bugs@FreeBSD.org; Sun, 2 Jan 2022 15:44:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 257222] Cannot use libzfs.h from user space programs due to missing libnvpair.h and other dependencies Date: Sun, 02 Jan 2022 15:44:24 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: grembo@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_severity bug_status cc resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641138263; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/Wag9NruUOhwQXz4FJ8HD2eGrY79zLPUyziEpVXPFzQ=; b=faRzttG0yTIaTRUAGIaYh9fuaM5gaqRw60gwRhmUKDs4oqaM0vs5osLoLRuSKnrLkwFyBd btkQYc8urjtw75ZH70QCAESMss3O6v3cnDMr0c1BDfxl2iXDlzTWOnu2qlzDIPQeglYiB5 vlTrCo6d0gR5xoce1L+up8kZ+NWSvykG86sqPCWQzeTbCyMQmb9Aoz93EThPo0e3BwCJfE Pq5IB8nkKSmMFV+0sUKIRFHoOKM0W9f7I1CvF6QvXgzdApOypFZKnmCjRyfpzovSu1cJx1 29RVPk6JQCMUuxsxZwmw/GsrBQSY/r79j55u/i4Y7OAEVj3YXQaffQpaqf9RFw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641138263; a=rsa-sha256; cv=none; b=j50I7lXBRN5ZxNv2FMnCHGXtbAOBGs5f7ID+ZHrSqE3Eg8PPokoSBlohAyIck1j8uB/mOe ifJBnfxWDnWDLV6XE4kGZTtrmpSf9JsibkufdkD4b9atH//TbR21TKCL3pk2mDUf5cOmV/ J0azJJ6BjNoP8R3COSrMEllw5jCJ4//0cEOw1ptCIc4UTj+ViAzcP0mZ/SV1ZNufTQVXjL UxvCYsXgS3PsFzNK6ZuTee0wLJFj1a7Q4dI5EROwK2zWJ7dU5TLj1w1+M16zPqXWlFfZKB nMRzCO29uoiBMKPTObRzg47rAX6za9pmLmakG4mINw8FewVeUmTnHOEbpNIcRA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257222 Michael Gmelin changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Affects Only Me |Affects Some People Status|Closed |Open CC| |grembo@FreeBSD.org Resolution|Works As Intended |--- --- Comment #2 from Michael Gmelin --- (In reply to Alan Somers from comment #1) Re-opening, as even if using libzfs_core.h kernel sources are required, so = all the problems described by the bug author still exist. This is how /usr/include/libzfs_core.h begins: ``` #ifndef _LIBZFS_CORE_H #define _LIBZFS_CORE_H #include ``` Minimal example: ``` $ cat >test.c < int main() { } EOF $ cc test.c /usr/include/libzfs_core.h:32:10: fatal error: 'libnvpair.h' file not found #include ^~~~~~~~~~~~~ 1 error generated. $ find / -name libnvpair.h /usr/src/sys/contrib/openzfs/include/libnvpair.h Try adding it to the search path: $ cc -I/usr/src/sys/contrib/openzfs/include test.c tons of errors, many more include paths required... ``` --=20 You are receiving this mail because: You are the assignee for the bug.=