[PATCH 4/7] driver_nl80211: rewrite neigh code to not depend on libnl3-route

Ziga Seilnacht zseilnacht at plume.com
Wed Apr 17 00:40:33 PDT 2024


Felix Fietkau <nbd () nbd ! name> wrote:
> [PATCH 4/7] driver_nl80211: rewrite neigh code to not depend on libnl3-route
>
> Removes an unnecessary dependency and also makes the code smaller
>
> Signed-off-by: Felix Fietkau <nbd at nbd.name>
> ---

Hello,

Commit a210fdb1c717b23b0d691b54d9b7be6f7bcf7799 breaks hostapd build
configuration with
CONFIG_FULL_DYNAMIC_VLAN=y CONFIG_VLAN_NETLINK=y for me. Those two options are
also enabled in Debian's hostapd config.

The build fails with:

/usr/bin/ld: /build-cache/hostap/build/hostapd/src/ap/vlan_util.o: in
function `vlan_add':
/build-cache/hostap/hostapd/../src/ap/vlan_util.c:59: undefined
reference to `rtnl_link_get_kernel'
/usr/bin/ld: /build-cache/hostap/hostapd/../src/ap/vlan_util.c:66:
undefined reference to `rtnl_link_get_ifindex'
/usr/bin/ld: /build-cache/hostap/hostapd/../src/ap/vlan_util.c:67:
undefined reference to `rtnl_link_put'
/usr/bin/ld: /build-cache/hostap/hostapd/../src/ap/vlan_util.c:70:
undefined reference to `rtnl_link_get_kernel'
/usr/bin/ld: /build-cache/hostap/hostapd/../src/ap/vlan_util.c:81:
undefined reference to `rtnl_link_alloc'
/usr/bin/ld: /build-cache/hostap/hostapd/../src/ap/vlan_util.c:87:
undefined reference to `rtnl_link_set_type'
/usr/bin/ld: /build-cache/hostap/hostapd/../src/ap/vlan_util.c:94:
undefined reference to `rtnl_link_set_link'
/usr/bin/ld: /build-cache/hostap/hostapd/../src/ap/vlan_util.c:95:
undefined reference to `rtnl_link_set_name'
/usr/bin/ld: /build-cache/hostap/hostapd/../src/ap/vlan_util.c:97:
undefined reference to `rtnl_link_vlan_set_id'
/usr/bin/ld: /build-cache/hostap/hostapd/../src/ap/vlan_util.c:104:
undefined reference to `rtnl_link_add'
/usr/bin/ld: /build-cache/hostap/hostapd/../src/ap/vlan_util.c:117:
undefined reference to `rtnl_link_put'
/usr/bin/ld: /build-cache/hostap/hostapd/../src/ap/vlan_util.c:73:
undefined reference to `rtnl_link_put'
/usr/bin/ld: /build-cache/hostap/hostapd/../src/ap/vlan_util.c:117:
undefined reference to `rtnl_link_put'
/usr/bin/ld: /build-cache/hostap/build/hostapd/src/ap/vlan_util.o: in
function `vlan_rem':
/build-cache/hostap/hostapd/../src/ap/vlan_util.c:145: undefined
reference to `rtnl_link_get_kernel'
/usr/bin/ld: /build-cache/hostap/hostapd/../src/ap/vlan_util.c:153:
undefined reference to `rtnl_link_delete'
/usr/bin/ld: /build-cache/hostap/hostapd/../src/ap/vlan_util.c:164:
undefined reference to `rtnl_link_put'
/usr/bin/ld: /build-cache/hostap/hostapd/../src/ap/vlan_util.c:164:
undefined reference to `rtnl_link_put'
collect2: error: ld returned 1 exit status
make: *** [Makefile:1310: hostapd] Error 1

Looks like the makefile changes from that commit might need to be changed?

Best regards,
Ziga Seilnacht

-- 
This email and any attachments thereto may contain private, confidential, 
and privileged material for the sole use of the intended recipient. Any 
review, copying, or distribution of this email (or any attachments thereto) 
by others is strictly prohibited. If you are not the intended recipient, 
please contact the sender immediately and permanently delete the original 
and any copies of this email and any attachments thereto.



More information about the Hostap mailing list