FWIW: I'm having trouble with this too. I tried this on Ubuntu 10.04
last night.
I downloaded the latest libnl3 from the author's website and compiled it.
cmake then found all the libraries. However, when I issue the "make"
I get a bunch of similar errors about being unable to find the header files:

"/usr/include/libnl3/netlink/genl/genl.h:15:29: fatal error:
netlink/netlink.h: No such file or directory
...."

I tried all the suggestions mentioned above.

On Thu, Nov 1, 2012 at 9:05 AM, Doug Burks <[email protected]> wrote:
> On Wed, Oct 31, 2012 at 2:32 PM, Daniel Borkmann <[email protected]> 
> wrote:
>> On Wed, Oct 31, 2012 at 4:06 PM, Doug Burks <[email protected]> wrote:
>>> On Wed, Oct 31, 2012 at 11:04 AM, Daniel Borkmann
>>> <[email protected]> wrote:
>>>> How I hate cmake ... and without the first slash?
>>>
>>> Like this?
>>>   PATH_SUFFIXES usr/include/libnl3
>>>
>>> Same result:
>>> -- Could NOT find Libnl (missing:  LIBNL_INCLUDE_DIR)
>>> libnl is missing on target. Skipping netsniff-ng build.
>>
>> Hmm... this sucks. What I did on Debian stable was that I compiled the
>> tarball from scratch. With configure prefix "usr".
>>
>> Then, it worked. But I just noticed there is also an issue that came
>> up during libnl3 port where netsniff-ng with --rfraw exits with
>> "Waiting for netlink ack failed!". I'll look into that when I'm back
>> home after my flight.
>
> I spent some time playing with this but didn't have any luck.
>
> In googling around, I found that Wireshark uses (used) cmake and libnl3:
> http://anonsvn.wireshark.org/wireshark/trunk/cmake/modules/FindNL.cmake
>
> I tried modifying that file to try to fit what netsniff-ng needs, but
> couldn't get it to work.  I also noticed that the current Wireshark
> tarball no longer contains this file, so maybe they had issues with
> libnl3 and moved on to something else?
>
> Thanks,
> --
> Doug Burks
> http://securityonion.blogspot.com
>
> --
>
>

-- 


Reply via email to