diff options
| author | Khawaja Shaheryar <behzadshaheryar@gmail.com> | 2024-02-13 20:13:49 +0500 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-02-21 19:59:51 -0800 |
| commit | 26511bb42a0965dbeafd9efc8d00a52e26dc2c11 (patch) | |
| tree | 3e71e50ed90e3c250c5f33518c823b799d1863d9 | |
| parent | 7c5f04f8b53c5c991bb7a81667179bb389222309 (diff) | |
| download | meta-openembedded-26511bb42a0965dbeafd9efc8d00a52e26dc2c11.tar.gz | |
libdaq: add recipe
I am adding this recipe as snort3 depends on it.
snort3 recipe will be provided in next commit.
See more: https://github.com/snort3/libdaq
Signed-off-by: Khawaja Shaheryar <behzadshaheryar@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-networking/recipes-connectivity/daq/libdaq/0001-example-Use-lm-for-the-fst-module.patch | 32 | ||||
| -rw-r--r-- | meta-networking/recipes-connectivity/daq/libdaq_git.bb | 18 |
2 files changed, 50 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/daq/libdaq/0001-example-Use-lm-for-the-fst-module.patch b/meta-networking/recipes-connectivity/daq/libdaq/0001-example-Use-lm-for-the-fst-module.patch new file mode 100644 index 0000000000..7147c042a1 --- /dev/null +++ b/meta-networking/recipes-connectivity/daq/libdaq/0001-example-Use-lm-for-the-fst-module.patch | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | From 9357da2a5a829f7a0620e6c19835a65b7b02a8fb Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khawaja Shaheryar <behzadshaheryar@gmail.com> | ||
| 3 | Date: Tue, 20 Feb 2024 21:03:26 +0500 | ||
| 4 | Subject: [PATCH] example: Use -lm for the fst module | ||
| 5 | |||
| 6 | If -lm is not passed in Makefile.am, the following is seen | ||
| 7 | | arm-yoe-linux-gnueabi-ld.lld: error: undefined symbol: ceilf | ||
| 8 | | >>> referenced by math.h:632 (/usr/include/c++/v1/math.h:632) | ||
| 9 | | >>> libdaq_static_fst_la-daq_fst.o:(std::__1::pair<std::__1::__hash_iterator<std::__1::__hash_node<std::__1::__hash_value_type<FstKey, FstNode*>, void*>*>, bool> std::__1::__hash_table<std::__1::__hash_value_type<FstKey, FstNode*>, std::__1::__unordered_map_hasher<FstKey, std::__1::__hash_value_type<FstKey, FstNode*>, FstKeyHash, std::__1::equal_to<FstKey>, true>, std::__1::__unordered_map_equal<FstKey, std::__1::__hash_value_type<FstKey, FstNode*>, std::__1::equal_to<FstKey>, FstKeyHash, true>, std::__1::allocator<std::__1::__hash_value_type<FstKey, FstNode*>>>::__emplace_unique_key_args<FstKey, std::__1::pair<FstKey const, FstNode*>>(FstKey const&, std::__1::pair<FstKey const, FstNode*>&&)) in archive ../modules/fst/.libs/libdaq_static_fst.a | ||
| 10 | |||
| 11 | Upstream-Status: Pending | ||
| 12 | |||
| 13 | Signed-off-by: Khawaja Shaheryar <behzadshaheryar@gmail.com> | ||
| 14 | --- | ||
| 15 | example/Makefile.am | 1 + | ||
| 16 | 1 file changed, 1 insertion(+) | ||
| 17 | |||
| 18 | diff --git a/example/Makefile.am b/example/Makefile.am | ||
| 19 | index 0d5ca31..1eaa9e8 100644 | ||
| 20 | --- a/example/Makefile.am | ||
| 21 | +++ b/example/Makefile.am | ||
| 22 | @@ -31,6 +31,7 @@ endif | ||
| 23 | if BUILD_FST_MODULE | ||
| 24 | daqtest_static_CFLAGS += -DBUILD_FST_MODULE | ||
| 25 | daqtest_static_LDADD += ${top_builddir}/modules/fst/libdaq_static_fst.la $(DAQ_FST_LIBS) | ||
| 26 | +daqtest_static_LDFLAGS += -lm | ||
| 27 | endif | ||
| 28 | if BUILD_NETMAP_MODULE | ||
| 29 | daqtest_static_CFLAGS += -DBUILD_NETMAP_MODULE | ||
| 30 | -- | ||
| 31 | 2.34.1 | ||
| 32 | |||
diff --git a/meta-networking/recipes-connectivity/daq/libdaq_git.bb b/meta-networking/recipes-connectivity/daq/libdaq_git.bb new file mode 100644 index 0000000000..19346124bf --- /dev/null +++ b/meta-networking/recipes-connectivity/daq/libdaq_git.bb | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | SUMMARY = "LibDAQ: The Data AcQuisition Library" | ||
| 2 | DESCRIPTION = "LibDAQ is a pluggable abstraction layer for interacting with a data source (traditionally a network interface or network data plane)." | ||
| 3 | HOMEPAGE = "http://www.snort.org" | ||
| 4 | SECTION = "libs" | ||
| 5 | LICENSE = "GPL-2.0-only" | ||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=79258250506422d064560a7b95b2d53e" | ||
| 7 | |||
| 8 | DEPENDS = "libdnet libpcap" | ||
| 9 | |||
| 10 | inherit autotools pkgconfig | ||
| 11 | |||
| 12 | SRC_URI = "git://github.com/snort3/libdaq.git;protocol=https;branch=master \ | ||
| 13 | file://0001-example-Use-lm-for-the-fst-module.patch" | ||
| 14 | SRCREV = "c757aaae5a70d5bbb3239c5a16bca217a5aca651" | ||
| 15 | |||
| 16 | S = "${WORKDIR}/git" | ||
| 17 | |||
| 18 | FILES:${PN} += "${libdir}/daq/*.so" | ||
