Skip to content
Snippets Groups Projects
Commit 7f219b68 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

configure: don't allow embedded libbpf if reallocarray not available

It's needed for Debian Stretch and Ubuntu Xenial
parent 8d63b44f
Branches
Tags
No related merge requests found
Pipeline #63650 passed with stages
in 14 minutes and 55 seconds
......@@ -209,10 +209,15 @@ AC_ARG_ENABLE([xdp],
AS_CASE([$enable_xdp],
[auto],[PKG_CHECK_MODULES([libbpf],[libbpf >= 0.0.6],[enable_xdp=yes],[enable_xdp=no])],
[yes],[PKG_CHECK_MODULES([libelf],[libelf],[
enable_xdp=embedded
embedded_libbpf_CFLAGS="-I\$(top_srcdir)/src/contrib/libbpf/include -I\$(top_srcdir)/src/contrib/libbpf/include/uapi"
embedded_libbpf_LIBS=$libelf_LIBS
libbpf_CFLAGS="-I\$(top_srcdir)/src/contrib/libbpf -I\$(top_srcdir)/src/contrib/libbpf/include/uapi"
AC_CHECK_FUNC([reallocarray],[
enable_xdp=embedded
embedded_libbpf_CFLAGS="-I\$(top_srcdir)/src/contrib/libbpf/include -I\$(top_srcdir)/src/contrib/libbpf/include/uapi"
embedded_libbpf_LIBS=$libelf_LIBS
libbpf_CFLAGS="-I\$(top_srcdir)/src/contrib/libbpf -I\$(top_srcdir)/src/contrib/libbpf/include/uapi"
],[
enable_xdp=no
AC_MSG_WARN([reallocarray not available])
])
],[AC_MSG_ERROR([libelf is required])])],
[no],[],
[*],[AC_MSG_ERROR([Invalid value of --enable-xdp.]
......
libknot.so.11 libknot11 #MINVER#
KNOT_DB_LMDB_DUPSORT@Base 3.0.0-1
KNOT_DB_LMDB_INTEGERKEY@Base 3.0.0-1
KNOT_DB_LMDB_MAPASYNC@Base 3.0.0-1
KNOT_DB_LMDB_NOSYNC@Base 3.0.0-1
KNOT_DB_LMDB_NOTLS@Base 3.0.0-1
KNOT_DB_LMDB_RDONLY@Base 3.0.0-1
KNOT_DB_LMDB_WRITEMAP@Base 3.0.0-1
KNOT_DUMP_STYLE_DEFAULT@Base 3.0.0-1
knot_ctl_accept@Base 3.0.0-1
knot_ctl_alloc@Base 3.0.0-1
knot_ctl_bind@Base 3.0.0-1
knot_ctl_close@Base 3.0.0-1
knot_ctl_connect@Base 3.0.0-1
knot_ctl_free@Base 3.0.0-1
knot_ctl_receive@Base 3.0.0-1
knot_ctl_send@Base 3.0.0-1
knot_ctl_set_timeout@Base 3.0.0-1
knot_ctl_unbind@Base 3.0.0-1
knot_db_lmdb_api@Base 3.0.0-1
knot_db_lmdb_del_exact@Base 3.0.0-1
knot_db_lmdb_get_mapsize@Base 3.0.0-1
knot_db_lmdb_get_path@Base 3.0.0-1
knot_db_lmdb_get_usage@Base 3.0.0-1
knot_db_lmdb_iter_del@Base 3.0.0-1
knot_db_lmdb_txn_begin@Base 3.0.0-1
knot_db_trie_api@Base 3.0.0-1
knot_dname_cmp@Base 3.0.0-1
knot_dname_copy@Base 3.0.0-1
knot_dname_free@Base 3.0.0-1
knot_dname_from_str@Base 3.0.0-1
knot_dname_in_bailiwick@Base 3.0.0-1
knot_dname_is_equal@Base 3.0.0-1
knot_dname_labels@Base 3.0.0-1
knot_dname_lf@Base 3.0.0-1
knot_dname_matched_labels@Base 3.0.0-1
knot_dname_prefixlen@Base 3.0.0-1
knot_dname_realsize@Base 3.0.0-1
knot_dname_replace_suffix@Base 3.0.0-1
knot_dname_size@Base 3.0.0-1
knot_dname_store@Base 3.0.0-1
knot_dname_to_lower@Base 3.0.0-1
knot_dname_to_str@Base 3.0.0-1
knot_dname_to_wire@Base 3.0.0-1
knot_dname_unpack@Base 3.0.0-1
knot_dname_wire_check@Base 3.0.0-1
knot_dnssec_alg_names@Base 3.0.0-1
knot_edns_add_option@Base 3.0.0-1
knot_edns_alignment_size@Base 3.0.0-1
knot_edns_chain_parse@Base 3.0.0-1
knot_edns_chain_size@Base 3.0.0-1
knot_edns_chain_write@Base 3.0.0-1
knot_edns_client_subnet_get_addr@Base 3.0.0-1
knot_edns_client_subnet_parse@Base 3.0.0-1
knot_edns_client_subnet_set_addr@Base 3.0.0-1
knot_edns_client_subnet_size@Base 3.0.0-1
knot_edns_client_subnet_write@Base 3.0.0-1
knot_edns_cookie_client_check@Base 3.0.0-1
knot_edns_cookie_client_generate@Base 3.0.0-1
knot_edns_cookie_parse@Base 3.0.0-1
knot_edns_cookie_server_check@Base 3.0.0-1
knot_edns_cookie_server_generate@Base 3.0.0-1
knot_edns_cookie_size@Base 3.0.0-1
knot_edns_cookie_write@Base 3.0.0-1
knot_edns_get_ext_rcode@Base 3.0.0-1
knot_edns_get_option@Base 3.0.0-1
knot_edns_get_options@Base 3.0.0-1
knot_edns_get_version@Base 3.0.0-1
knot_edns_init@Base 3.0.0-1
knot_edns_keepalive_parse@Base 3.0.0-1
knot_edns_keepalive_size@Base 3.0.0-1
knot_edns_keepalive_write@Base 3.0.0-1
knot_edns_reserve_option@Base 3.0.0-1
knot_edns_set_ext_rcode@Base 3.0.0-1
knot_edns_set_version@Base 3.0.0-1
knot_error_from_libdnssec@Base 3.0.0-1
knot_get_obsolete_rdata_descriptor@Base 3.0.0-1
knot_get_rdata_descriptor@Base 3.0.0-1
knot_naptr_header_size@Base 3.0.0-1
knot_opcode_names@Base 3.0.0-1
knot_opt_code_to_string@Base 3.0.0-1
knot_pkt_begin@Base 3.0.0-1
knot_pkt_clear@Base 3.0.0-1
knot_pkt_copy@Base 3.0.0-1
knot_pkt_ext_rcode@Base 3.0.0-1
knot_pkt_ext_rcode_name@Base 3.0.0-1
knot_pkt_free@Base 3.0.0-1
knot_pkt_init_response@Base 3.0.0-1
knot_pkt_new@Base 3.0.0-1
knot_pkt_parse@Base 3.0.0-1
knot_pkt_parse_question@Base 3.0.0-1
knot_pkt_put_question@Base 3.0.0-1
knot_pkt_put_rotate@Base 3.0.0-1
knot_pkt_reclaim@Base 3.0.0-1
knot_pkt_reserve@Base 3.0.0-1
knot_rcode_names@Base 3.0.0-1
knot_rdataset_add@Base 3.0.0-1
knot_rdataset_at@Base 3.0.0-1
knot_rdataset_clear@Base 3.0.0-1
knot_rdataset_copy@Base 3.0.0-1
knot_rdataset_eq@Base 3.0.0-1
knot_rdataset_intersect@Base 3.0.0-1
knot_rdataset_member@Base 3.0.0-1
knot_rdataset_merge@Base 3.0.0-1
knot_rdataset_subtract@Base 3.0.0-1
knot_rrclass_from_string@Base 3.0.0-1
knot_rrclass_to_string@Base 3.0.0-1
knot_rrset_add_rdata@Base 3.0.0-1
knot_rrset_clear@Base 3.0.0-1
knot_rrset_copy@Base 3.0.0-1
knot_rrset_equal@Base 3.0.0-1
knot_rrset_free@Base 3.0.0-1
knot_rrset_is_nsec3rel@Base 3.0.0-1
knot_rrset_new@Base 3.0.0-1
knot_rrset_rr_from_wire@Base 3.0.0-1
knot_rrset_rr_to_canonical@Base 3.0.0-1
knot_rrset_size@Base 3.0.0-1
knot_rrset_to_wire_extra@Base 3.0.0-1
knot_rrset_txt_dump@Base 3.0.0-1
knot_rrset_txt_dump_data@Base 3.0.0-1
knot_rrset_txt_dump_header@Base 3.0.0-1
knot_rrtype_additional_needed@Base 3.0.0-1
knot_rrtype_from_string@Base 3.0.0-1
knot_rrtype_is_dnssec@Base 3.0.0-1
knot_rrtype_is_metatype@Base 3.0.0-1
knot_rrtype_should_be_lowercased@Base 3.0.0-1
knot_rrtype_to_string@Base 3.0.0-1
knot_strerror@Base 3.0.0-1
knot_tsig_add@Base 3.0.0-1
knot_tsig_append@Base 3.0.0-1
knot_tsig_client_check@Base 3.0.0-1
knot_tsig_client_check_next@Base 3.0.0-1
knot_tsig_create_rdata@Base 3.0.0-1
knot_tsig_key_copy@Base 3.0.0-1
knot_tsig_key_deinit@Base 3.0.0-1
knot_tsig_key_init@Base 3.0.0-1
knot_tsig_key_init_file@Base 3.0.0-1
knot_tsig_key_init_str@Base 3.0.0-1
knot_tsig_rcode_names@Base 3.0.0-1
knot_tsig_rdata_alg@Base 3.0.0-1
knot_tsig_rdata_alg_name@Base 3.0.0-1
knot_tsig_rdata_error@Base 3.0.0-1
knot_tsig_rdata_fudge@Base 3.0.0-1
knot_tsig_rdata_is_ok@Base 3.0.0-1
knot_tsig_rdata_mac@Base 3.0.0-1
knot_tsig_rdata_mac_length@Base 3.0.0-1
knot_tsig_rdata_orig_id@Base 3.0.0-1
knot_tsig_rdata_other_data@Base 3.0.0-1
knot_tsig_rdata_other_data_length@Base 3.0.0-1
knot_tsig_rdata_set_fudge@Base 3.0.0-1
knot_tsig_rdata_set_mac@Base 3.0.0-1
knot_tsig_rdata_set_orig_id@Base 3.0.0-1
knot_tsig_rdata_set_other_data@Base 3.0.0-1
knot_tsig_rdata_set_time_signed@Base 3.0.0-1
knot_tsig_rdata_time_signed@Base 3.0.0-1
knot_tsig_rdata_tsig_timers_length@Base 3.0.0-1
knot_tsig_rdata_tsig_variables_length@Base 3.0.0-1
knot_tsig_server_check@Base 3.0.0-1
knot_tsig_sign@Base 3.0.0-1
knot_tsig_sign_next@Base 3.0.0-1
knot_tsig_wire_maxsize@Base 3.0.0-1
knot_tsig_wire_size@Base 3.0.0-1
yp_addr@Base 3.0.0-1
yp_addr_noport@Base 3.0.0-1
yp_addr_noport_to_bin@Base 3.0.0-1
yp_addr_noport_to_txt@Base 3.0.0-1
yp_addr_range_to_bin@Base 3.0.0-1
yp_addr_range_to_txt@Base 3.0.0-1
yp_addr_to_bin@Base 3.0.0-1
yp_addr_to_txt@Base 3.0.0-1
yp_base64_to_bin@Base 3.0.0-1
yp_base64_to_txt@Base 3.0.0-1
yp_bool_to_bin@Base 3.0.0-1
yp_bool_to_txt@Base 3.0.0-1
yp_deinit@Base 3.0.0-1
yp_dname_to_bin@Base 3.0.0-1
yp_dname_to_txt@Base 3.0.0-1
yp_format_id@Base 3.0.0-1
yp_format_key0@Base 3.0.0-1
yp_format_key1@Base 3.0.0-1
yp_hex_to_bin@Base 3.0.0-1
yp_hex_to_txt@Base 3.0.0-1
yp_init@Base 3.0.0-1
yp_int_to_bin@Base 3.0.0-1
yp_int_to_txt@Base 3.0.0-1
yp_item_to_bin@Base 3.0.0-1
yp_item_to_txt@Base 3.0.0-1
yp_option_to_bin@Base 3.0.0-1
yp_option_to_txt@Base 3.0.0-1
yp_parse@Base 3.0.0-1
yp_schema_check_deinit@Base 3.0.0-1
yp_schema_check_init@Base 3.0.0-1
yp_schema_check_parser@Base 3.0.0-1
yp_schema_check_str@Base 3.0.0-1
yp_schema_copy@Base 3.0.0-1
yp_schema_find@Base 3.0.0-1
yp_schema_free@Base 3.0.0-1
yp_schema_merge@Base 3.0.0-1
yp_schema_purge_dynamic@Base 3.0.0-1
yp_set_input_file@Base 3.0.0-1
yp_set_input_string@Base 3.0.0-1
yp_str_to_bin@Base 3.0.0-1
yp_str_to_txt@Base 3.0.0-1
#!/bin/sh
echo "xdp-gun not available"
......@@ -63,6 +63,11 @@ override_dh_auto_install-arch:
dh_auto_install -- install
# rename knot.sample.conf to knot.conf
mv $(CURDIR)/debian/tmp/etc/knot/knot.sample.conf $(CURDIR)/debian/tmp/etc/knot/knot.conf
# Some workarounds for Debian Stretch and Ubuntu Xenial
if [ ! -f $(CURDIR)/debian/tmp/usr/bin/xdp-gun ]; then \
cp -f $(CURDIR)/debian/noxdp/xdp-gun $(CURDIR)/debian/tmp/usr/bin/xdp-gun; \
cp -f $(CURDIR)/debian/noxdp/libknot11.symbols $(CURDIR)/debian/libknot11.symbols; \
fi
override_dh_auto_install-indep:
dh_auto_install -- install-html
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment