All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vincent Fu <vincentfu@gmail.com>
To: Damien Le Moal <dlemoal@kernel.org>,
	fio@vger.kernel.org, Jens Axboe <axboe@kernel.dk>
Subject: Re: [PATCH v2] configure: Fix libnfs cflags and libs
Date: Wed, 14 May 2025 06:57:33 -0400	[thread overview]
Message-ID: <4369d6e2-48d4-43cb-965a-b376dc559dad@gmail.com> (raw)
In-Reply-To: <20250514070754.38281-1-dlemoal@kernel.org>

On 5/14/25 3:07 AM, Damien Le Moal wrote:
> libnfs version 16 requires the gnutls library. Without specifying at
> least -lgnutls, builds fail:
> 
>    LINK fio
> /usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/15/../../../../lib64/libnfs.so: undefined reference to `gnutls_certificate_set_x509_trust_dir'
> /usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/15/../../../../lib64/libnfs.so: undefined reference to `gnutls_transport_set_int2'
> ...
> 
> Modify the configure script to add cflags and library options for gnutls
> to correctly build libnfs engine.
> 
> Also make sure that the CI install the gnutls library header files.
> 
> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
> ---
> Changes from v1:
>   * Modified CI install action as suggested by Vincent
> 
>   ci/actions-install.sh | 2 ++
>   configure             | 4 ++--
>   2 files changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/ci/actions-install.sh b/ci/actions-install.sh
> index ad352317..30b815f3 100755
> --- a/ci/actions-install.sh
> +++ b/ci/actions-install.sh
> @@ -32,6 +32,7 @@ DPKGCFG
>           libcunit1-dev
>           libcurl4-openssl-dev
>           libfl-dev
> +	libgnutls28-dev
>           libnuma-dev
>   	libnfs-dev
>           valgrind
> @@ -106,6 +107,7 @@ install_fedora() {
>           bison-devel
>           git
>           flex-devel
> +	gnutls-devel
>           gperftools
>           isa-l-devel
>           kernel-devel
> diff --git a/configure b/configure
> index 715f0602..986eb0a6 100755
> --- a/configure
> +++ b/configure
> @@ -2361,8 +2361,8 @@ print_config "DAOS File System (dfs) Engine" "$dfs"
>   if test "$libnfs" != "no" ; then
>     if $(pkg-config libnfs > /dev/null 2>&1); then
>       libnfs="yes"
> -    libnfs_cflags=$(pkg-config --cflags libnfs)
> -    libnfs_libs=$(pkg-config --libs libnfs)
> +    libnfs_cflags=$(pkg-config --cflags libnfs gnutls)
> +    libnfs_libs=$(pkg-config --libs libnfs gnutls)
>     else
>       if test "$libnfs" = "yes" ; then
>         feature_not_found "libnfs" "libnfs"


Applied. Thanks.

Vincent

      parent reply	other threads:[~2025-05-14 10:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-14  7:07 [PATCH v2] configure: Fix libnfs cflags and libs Damien Le Moal
2025-05-14  7:38 ` fiotestbot
2025-05-14 10:57 ` Vincent Fu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4369d6e2-48d4-43cb-965a-b376dc559dad@gmail.com \
    --to=vincentfu@gmail.com \
    --cc=axboe@kernel.dk \
    --cc=dlemoal@kernel.org \
    --cc=fio@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.