From: Patrick McCarty <patrick.mccarty at linux.intel.com>
To: powertop@lists.01.org
Subject: Re: [Powertop] [Powertop ]compiling issue and running issue
Date: Wed, 31 Oct 2012 14:03:02 -0700 [thread overview]
Message-ID: <20121031210302.GA555@linux.intel.com> (raw)
In-Reply-To: CAGLu0vNFFArQ4oLhBaApRNgN=3zrmNm9G-qWgdiEoTjw4b6o=A@mail.gmail.com
[-- Attachment #1: Type: text/plain, Size: 1456 bytes --]
On Wed, Oct 31, 2012 at 10:11:13PM +0800, Austin Zhang wrote:
> Hi,
>
> I am trying to compile powertop on my box: ubuntu 12.04, X86-64.
>
> (1)compiling issue
>
> Here, my system didn’t install libnl-1, but I installed libnl2 (under /usr/lib)
> and libnl-3 (under /lib).
>
> Then when ‘./configure’, I got:
>
> checking for LIBNL... no
>
> configure: error: Package requirements (libnl-1) were not met:
>
> No package 'libnl-1' found
>
> so seemed the below logic in configure.ac doesn’t work
>
> ……
>
> has_libnl_ver=0
>
> PKG_CHECK_MODULES([LIBNL], [libnl-3.0 libnl-genl-3.0], [
>
> has_libnl_ver=3], [
>
> AC_SEARCH_LIBS([nl_socket_alloc], [nl-3 nl-genl-3], [
>
> has_libnl_ver=3], [
>
> AC_SEARCH_LIBS([nl_socket_alloc], [nl], [
>
> has_libnl_ver=2], [
>
> PKG_CHECK_MODULES([LIBNL], [libnl-1], [has_libnl_ver=
> 1], [])])])])
>
> ……
Based on the file lists you sent in a followup post, it appears that
Ubuntu uses a different naming convention for these libraries, so
AC_SEARCH_LIBS will not find the function it needs in either libnl-3 or
libnl-genl-3, since they don't exist.
Is there a -devel package you can install that provides a pkgconfig
file for libnl-3?
-Patrick
next reply other threads:[~2012-10-31 21:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-31 21:03 Patrick McCarty [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-11-01 17:14 [Powertop] [Powertop ]compiling issue and running issue Austin Zhang
2012-11-01 4:23 Austin Zhang
2012-10-31 16:31 Austin Zhang
2012-10-31 16:25 Austin Zhang
2012-10-31 16:18 Austin Zhang
2012-10-31 15:24 Arjan van de Ven
2012-10-31 14:16 Sergey Senozhatsky
2012-10-31 14:11 Austin Zhang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121031210302.GA555@linux.intel.com \
--to=powertop@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.