Hi all,

Here's a patch that made the build succeed for me on a porterbox.
Also see [1] for some related work in Ubuntu.
Please consider the patch if you feel like it :) This would help to keep
dpdk and Suricata in testing.

Cheers
Sascha


[1]
https://www.mail-archive.com/[email protected]/msg6280494.html
diff -Nru rdma-core-63.0/debian/changelog rdma-core-63.0/debian/changelog
--- rdma-core-63.0/debian/changelog     2026-05-06 17:26:34.000000000 +0200
+++ rdma-core-63.0/debian/changelog     2026-06-19 21:44:41.000000000 +0200
@@ -1,3 +1,10 @@
+rdma-core (63.0-2) unstable; urgency=medium
+
+  * Fix duplicate symbols for fcntl64/sendfile64 when building for ARM
+    with _TIME_BITS=64 (closes: #XXXXXX).
+
+ -- Satta <[email protected]>  Fri, 19 Jun 2026 21:44:41 +0200
+
 rdma-core (63.0-1) unstable; urgency=medium
 
   [ Benjamin Drung ]
diff -Nru rdma-core-63.0/debian/patches/fix-arm-lfs64-duplicate-symbols.patch 
rdma-core-63.0/debian/patches/fix-arm-lfs64-duplicate-symbols.patch
--- rdma-core-63.0/debian/patches/fix-arm-lfs64-duplicate-symbols.patch 
1970-01-01 01:00:00.000000000 +0100
+++ rdma-core-63.0/debian/patches/fix-arm-lfs64-duplicate-symbols.patch 
2026-06-19 21:44:41.000000000 +0200
@@ -0,0 +1,37 @@
+Description: Fix duplicate symbols for fcntl64/sendfile64 on ARM with 
_TIME_BITS=64
+Author: Sascha Steinbiss <[email protected]>
+
+--- a/librdmacm/preload.c
++++ b/librdmacm/preload.c
+@@ -1186,6 +1186,7 @@
+ }
+ 
+ #if RDMA_PRELOAD_WRAP_LFS64
++#if !RDMA_PRELOAD_FCNTL64_IN_HEADER
+ int fcntl64(int socket, int cmd, ... /* arg */)
+ {
+       va_list args;
+@@ -1226,6 +1227,7 @@
+       return ret;
+ }
+ #endif
++#endif
+ 
+ int dup(int oldfd)
+ {
+@@ -1311,6 +1313,7 @@
+ }
+ 
+ #if RDMA_PRELOAD_WRAP_LFS64
++#if !RDMA_PRELOAD_SENDFILE64_IN_HEADER
+ ssize_t sendfile64(int out_fd, int in_fd, off64_t *offset64, size_t count)
+ {
+       void *file_addr;
+@@ -1331,6 +1334,7 @@
+       return ret;
+ }
+ #endif
++#endif
+ 
+ int __fxstat(int ver, int socket, struct stat *buf)
+ {
diff -Nru rdma-core-63.0/debian/patches/series 
rdma-core-63.0/debian/patches/series
--- rdma-core-63.0/debian/patches/series        1970-01-01 01:00:00.000000000 
+0100
+++ rdma-core-63.0/debian/patches/series        2026-06-19 21:44:41.000000000 
+0200
@@ -0,0 +1 @@
+fix-arm-lfs64-duplicate-symbols.patch

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to