[PATCH 1/1] Fix build of VLAN_NETLINK.

Jouni Malinen j
Sun Jul 21 03:12:55 PDT 2013


On Sat, May 04, 2013 at 03:53:31PM +0200, michael-dev wrote:
> Am 08.04.2013 22:40, schrieb Johannes Berg:
> >On Mon, 2013-04-08 at 18:18 +0200, michael-dev at fami-braun.de wrote:
> >>--- a/hostapd/Makefile
> >>+++ b/hostapd/Makefile
> >>@@ -129,6 +129,8 @@ ifdef CONFIG_FULL_DYNAMIC_VLAN
> >> OBJS += ../src/ap/vlan_util.o
> >> endif
> >> CFLAGS += -DCONFIG_VLAN_NETLINK
> >>+CFLAGS += -I /usr/include/libnl3
> >>+LIBS += -lnl-3 -lnl-genl-3 -lnl-route-3 -lnl-nf-3 -lnl-cli-3
> >
> >That totally needs to be configurable, but there's probably already an
> >option for it for nl80211.
> 
> The code enabled by this option already depends on libnl-3 headers
> and src/drivers/drivers.mk references /usr/include/libnl3 directly
> as well.
> For example the code uses rtnl_link_set_type, which are undefined in
> libnl-1.1.3 and libnl2 (debian squeeze).
> 
> Would the following be better?

Hmm.. Is this still an open issue? I'm failing to see what would be
needed here since src/drivers/drivers.mak is already adding the libnl3
libraries and the build works for me (on Ubuntu 12.04).

> diff --git a/hostapd/Makefile b/hostapd/Makefile
> @@ -129,6 +129,16 @@ ifdef CONFIG_FULL_DYNAMIC_VLAN
>  CFLAGS += -DCONFIG_VLAN_NETLINK
> +
> +# no LIBNL-1, LIBNL-2 or LIBNL-TINY support
> +ifdef CONFIG_LIBNL32
> +  LIBS += -lnl-3
> +  LIBS += -lnl-genl-3
> +  LIBS += -lnl-route-3
> +  LIBS += -lnl-nf-3
> +  CFLAGS += -I/usr/include/libnl3
> +endif

drivers.mak does not include nl-nf-3 but includes the other changes here
when CONFIG_VLAN_NETLINK and CONFIG_LIBNL32 are defined.


I'm dropping this patch now unless something new comes up with more
details on how the build is broken.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list