Compiling hostapd from git with libnl also from git...
john dowd
jdowdster
Tue Dec 9 08:19:58 PST 2008
Jouni,
Perhaps there's something I don't understand about the release
numbers. The library
libnl 1.1-21 appears to be the latest released to my distro opensuse
11.0. (It's what I see when I go into the "yast" s/w install tool and
check the version). I get the following errors when I link using it:
/usr/lib/libnl-genl.so: undefined reference to `__flags2str'
/usr/lib/libnl-genl.so: undefined reference to `nl_dump_line'
/usr/lib/libnl-genl.so: undefined reference to `nl_cache_alloc_and_fill'
collect2: ld returned 1 exit status
make: *** [hostapd] Error 1
What am I missing here?
Can I use the git API to download the libnl version that I require?
It's very frustrating to trace this stuff since if you do a "google"
search on using master mode for my particular h/w I get a lot of
information that until you really look into it, is in some cases 3
years old and is therefore obsolete. I understood that I required the
latest kernel being used by the wireless development team which is the
2.6.28-rc5 kernel. I then needed the latest hostapd 0.6.6 and the
latest libnl from git.
Can you perhaps lend some clarity to my situation. If you can perhaps
just tell me which hostapd and libnl library versions that I require
it would be really helpful.
Cheers!!
On Mon, Dec 8, 2008 at 3:44 PM, Jouni Malinen <j at w1.fi> wrote:
> On Mon, Dec 08, 2008 at 11:25:36AM -0500, john dowd wrote:
>> I've downloaded the latest from both git repositories. I'm able to
>> compile the libnl library (which would not be your problem anyways)
>> but when I try to compile the hostapd daemon I get the following
>> errors:
>
>> driver_nl80211.c:2036: warning: implicit declaration of function
>> 'nl_handle_alloc_cb'
>> driver_nl80211.c:2047: error: too few arguments to function
>> 'genl_ctrl_alloc_cache'
>> driver_nl80211.c:2482: warning: implicit declaration of function
>> 'nl_handle_destroy'
>
>> Now an "objdump" on the normal libnl libraries (normal meaning, what
>> came with my distro) show that these symbols exist. A search through
>> the libnl git code show's they don't exist. Is there a particular
>> version that I have download?
>
> The latest release (libnl 1.1) seems to work fine. It looks like 2.0 (or
> at least the current git tree) will bring in some incompatible changes
> that are difficult to handle automatically.. For now, I added a
> configuration option (CONFIG_LIBNL20=y in .config) that can be used to
> build against the current libnl git snapshot. This compiles fine (well,
> after resolving couple of libnl build issues), but I have not tested
> whether the code actually works.
>
> --
> Jouni Malinen PGP id EFC895FA
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
>
--
John Dowd
jdowd at slashdevslashnull.org
133 Waverley St.
Ottawa Ont. K2P 0V3
Home: (613)234-7884
Cell: (613)316-7884
More information about the Hostap
mailing list