Wireshark-bugs: [Wireshark-bugs] [Bug 10444] make is failing - collect2: error: ld returned 1 ex

Date: Thu, 04 Sep 2014 18:12:36 +0000

changed bug 10444


What Removed Added
Status UNCONFIRMED INCOMPLETE
Ever confirmed   1

Comment # 3 on bug 10444 from
(In reply to Sharan from comment #1)
> Created attachment 13035 [details]
> ./configure output

checking whether to use libnl for various network interface purposes... yes
checking for LIBNL3... no
checking for LIBNL2... yes
checking for LIBNL1... no

So whatever libnl it found, it thinks it's major version 2 of the library. 
It's interesting to note that

    http://www.infradead.org/~tgr/libnl/

does not talk about version 2 on the front page; perhaps they considered it to
have been a mistake.  The release archive page:

    http://www.infradead.org/~tgr/libnl/files/

lists libnl-2.0.tar.gz, but no other 2.x versions; however, it lists several
1.x and 3.x versions, so perhaps they abandoned version 2 and moved on to
version 3.

The libnl source *does* include genlmsg_put(). However, the main page for the
library says

    The interfaces are split into several small libraries to not force
applications to link against a single, bloated library.

    libnl
        Core library implementing the fundamentals required to use the netlink
protocol such as socket handling, message construction and parsing, and sending
and receiving of data. This library is kept small and minimalistic. Other
libraries of the suite depend on this library.

    libnl-route
        API to the configuration interfaces of the NETLINK_ROUTE family
including network interfaces, routes, addresses, neighbours, and traffic
control.

    libnl-genl
        API to the generic netlink protocol, an extended version of the netlink
protocol.

    libnl-nf
        API to netlink based netfilter configuration and monitoring interfaces
(conntrack, log, queue)

so it might be that to use those routines you need to link with libnl *and*
libnl-genl, which isn't being done.

The configure script uses pkg-config to determine whether the system has any
version of libnl and, if so, what libraries you need to link with.  However, it
appears to assume that only libnl3 has multiple sublibraries.

What do:

    pkg-config --list-all | egrep libnl

    ls /usr/local/lib/libnl*

    ls /usr/lib/libnl*

print?


You are receiving this mail because:
  • You are watching all bug changes.