Patch for the source:
diff -Naur src/libbgpstream-2.3.0/common/libpatricia/patricia.h src-modified/libbgpstream-2.3.0/common/libpatricia/patricia.h
--- src/libbgpstream-2.3.0/common/libpatricia/patricia.h 2023-10-11 11:12:06.000000000 +0200
+++ src-modified/libbgpstream-2.3.0/common/libpatricia/patricia.h 2025-07-15 15:32:23.731481548 +0200
@@ -18,7 +18,7 @@
#define HAVE_IPV6
/* typedef unsigned int u_int; */
-typedef void (*void_fn_t)();
+typedef void (*void_fn_t)(void *arg1, ...);
/* { from defs.h */
#define prefix_touchar(prefix) ((u_char *)&(prefix)->add.sin)
#define MAXLINE 1024
To correct the build process, use the following patch:
diff '--color=auto' --unified --recursive --text src/libbgpstream-2.2.0/configure src.new/libbgpstream-2.2.0/configure
--- src/libbgpstream-2.2.0/configure 2021-04-16 23:22:22.000000000 +0200
+++ src.new/libbgpstream-2.2.0/configure 2022-12-03 15:46:44.855037976 +0100
@@ -13433,6 +13433,7 @@
pthread_yield_func=unknown
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
+#define _GNU_SOURCE
#include <pthread.h>
static void routine(void *a) { a = 0; }
static void *start_routine(void *a) { return a; }
and add these lines to PKGBUILD
-source=("https://github.com/CAIDA/libbgpstream/releases/download/v${pkgver}/libbgpstream-${pkgver}.tar.gz")
-md5sums=('19fdcc3514fbd639a2ea5ea0b154a6f4')
+source=("https://github.com/CAIDA/libbgpstream/releases/download/v${pkgver}/libbgpstream-${pkgver}.tar.gz" "configure.patch")
+md5sums=('19fdcc3514fbd639a2ea5ea0b154a6f4' '6b1a5c65736375b23388339589965567')
+
+prepare() {
+ cd "libbgpstream-$pkgver"
+ patch --forward --strip=2 --input="${srcdir}/configure.patch"
+}
Source: https://github.com/CAIDA/libbgpstream/issues/227
Installed gcc version is 11.2.0
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking for pthread_yield... no
checking for pthread_yeild_np... no
configure: error: could not find pthread_yield function
==> ERROR: A failure occurred in build().
Aborting...
-> error making: bgpstream