Re: [Powertop] [PATCH] Fix trying to use libnl-2.0 when only libnl-3.0 is installed

Kok, Auke-jan H <auke-jan.h.kok at intel.com>
Newsgroups dev.linux.lists.powertop
Message-ID <CABsxX9KTNi9sXTtBGgMo5=HYwwtcEqM=Gc1sFTRwzEMWuNwQvA@mail.gmail.com>
On Sat, May 12, 2012 at 8:50 AM, Vinicius Costa Gomes <vcgomes(a)gmail.com>wrote:

> From: Vinicius Costa Gomes <vinicius.gomes(a)openbossa.org>
>
> When using libnl-3.0 we need to link with libnl-genl also, if not, we
> get a lot of undefined symbols.
> ---
>  configure.ac |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac
> index 2d56684..3579b6e 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -56,7 +56,7 @@ PKG_CHECK_MODULES([LIBZ], [zlib],[],[
>
>  has_libnl_ver=0
>  PKG_CHECK_MODULES([LIBNL], [libnl-1], [has_libnl_ver=1], [
> -       AC_SEARCH_LIBS([nl_socket_alloc], [nl], [has_libnl_ver=2], [
> +       AC_SEARCH_LIBS([nl_socket_alloc], [libnl-2.0], [has_libnl_ver=2], [


are you sure you want the linker to check for -llibnl-2.0? that means it's
going to try to find a "liblibnl-2.0.so" (note the double "lib" here).

Auke
attachment.html (text/html, 1.6 KB)
<br><br><div class="gmail_quote">On Sat, May 12, 2012 at 8:50 AM, Vinicius Costa Gomes <span dir="ltr">&lt;<a href="mailto:[email protected]" target="_blank">[email protected]</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
From: Vinicius Costa Gomes &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;<br>
<br>
When using libnl-3.0 we need to link with libnl-genl also, if not, we<br>
get a lot of undefined symbols.<br>
---<br>
 <a href="http://configure.ac" target="_blank">configure.ac</a> |    2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/<a href="http://configure.ac" target="_blank">configure.ac</a> b/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
index 2d56684..3579b6e 100644<br>
--- a/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
+++ b/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
@@ -56,7 +56,7 @@ PKG_CHECK_MODULES([LIBZ], [zlib],[],[<br>
<br>
 has_libnl_ver=0<br>
 PKG_CHECK_MODULES([LIBNL], [libnl-1], [has_libnl_ver=1], [<br>
-       AC_SEARCH_LIBS([nl_socket_alloc], [nl], [has_libnl_ver=2], [<br>
+       AC_SEARCH_LIBS([nl_socket_alloc], [libnl-2.0], [has_libnl_ver=2], [</blockquote><div><br></div><div>are you sure you want the linker to check for -llibnl-2.0? that means it&#39;s going to try to find a &quot;<a href="http://liblibnl-2.0.so">liblibnl-2.0.so</a>&quot; (note the double &quot;lib&quot; here).</div>
<div><br></div><div>Auke</div><div><br></div></div><br>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.