The branch main has been updated by markj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=73e8fe62466a8ae5576473d9be4c6df9a6eedab0

commit 73e8fe62466a8ae5576473d9be4c6df9a6eedab0
Author:     Mark Johnston <[email protected]>
AuthorDate: 2025-12-03 14:26:50 +0000
Commit:     Mark Johnston <[email protected]>
CommitDate: 2025-12-03 14:33:53 +0000

    libpcap: Fix dependency definitions for libpcap
    
    Commit 35dd53a9e132 ("librdmacm/libibverbs: Statically bound libbnxtre.so.1 
to rping")
    causes a build failure, since src.libnames.mk declares a depencency on
    libbnxtre.so, but the libpcap Makefile and prebuild lib dependencies
    were not updated accordingly.  Fix the declarations.
    
    Fixes:  35dd53a9e132 ("librdmacm/libibverbs: Statically bound 
libbnxtre.so.1 to rping")
    Reviewed by:    ssaxena
    Differential Revision:  https://reviews.freebsd.org/D54048
---
 Makefile.inc1        | 2 ++
 lib/libpcap/Makefile | 1 +
 2 files changed, 3 insertions(+)

diff --git a/Makefile.inc1 b/Makefile.inc1
index 1d617601ece2..0f1e66a89da8 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -3358,10 +3358,12 @@ _prebuild_libs+= \
        lib/ofed/libibmad \
        lib/ofed/libibumad \
        lib/ofed/complib \
+       lib/ofed/libbnxtre \
        lib/ofed/libmlx5
 
 lib/ofed/libibmad__L:  lib/ofed/libibumad__L
 lib/ofed/complib__L:   lib/libthr__L
+lib/ofed/libbnxt__L:   lib/ofed/libibverbs__L lib/libthr__L
 lib/ofed/libmlx5__L:   lib/ofed/libibverbs__L lib/libthr__L
 .endif
 
diff --git a/lib/libpcap/Makefile b/lib/libpcap/Makefile
index c4bd175b502a..7f8d8e65d79c 100644
--- a/lib/libpcap/Makefile
+++ b/lib/libpcap/Makefile
@@ -151,6 +151,7 @@ CFLAGS+= -DPCAP_SUPPORT_NETMAP
 .if ${MK_OFED} != "no"
 SRCS+= pcap-rdmasniff.c
 LIBADD+= ibverbs
+LIBADD+= bnxtre
 LIBADD+= mlx5
 CFLAGS+= -DPCAP_SUPPORT_RDMASNIFF
 .endif

Reply via email to