All of lore.kernel.org
 help / color / mirror / Atom feed
From: Koen Kooi <koen@dominion.thruhere.net>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH 1/2] libnl-1.1: rename to libnl1 and build only static lib
Date: Thu, 24 Mar 2011 10:45:42 +0100	[thread overview]
Message-ID: <imf3s6$rl0$1@dough.gmane.org> (raw)
In-Reply-To: <20110324090223.GC20421@jama.jama.net>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 24-03-11 10:02, Martin Jansa wrote:
> On Thu, Mar 24, 2011 at 09:54:25AM +0100, Koen Kooi wrote:
> On 23-03-11 21:02, Martin Jansa wrote:
>>>> On Wed, Mar 23, 2011 at 08:49:06PM +0100, Koen Kooi wrote:
>>>> Can you regenerate this on top of .dev? I couldn't get it to apply, even
>>>> after renaming files -> libnl-1.1
>>>>
>>>>> Did you try to apply it on top of that 12patch series?
>>>>
>>>>> Or you can apply top 14 from
>>>>> http://gitorious.org/~jama/angstrom/jama-shr-experimental/
> 
> I applied the top 14, clean libnl* and nm, built libnl1 and libnl and I get:
> 
> ps/libip6_manager_la-nm-ip6-manager.Tpo -c nm-ip6-manager.c  -fPIC -DPIC
> -o .libs/libip6_manager_la-nm-ip6-manager.o
> | nm-ip6-manager.c: In function 'process_addr':
> | nm-ip6-manager.c:488:46: error: too few arguments to function
> 'nl_cache_include'
> |
> /OE/angstrom-setup-scripts/build/tmp-angstrom_2008_1/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/netlink/cache.h:64:14:
> note: declared here
> | nm-ip6-manager.c: In function 'process_route':
> | nm-ip6-manager.c:528:47: error: too few arguments to function
> 'nl_cache_include'
> |
> /OE/angstrom-setup-scripts/build/tmp-angstrom_2008_1/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/netlink/cache.h:64:14:
> note: declared here
> | nm-ip6-manager.c: In function 'nm_ip6_manager_get_ip6_config':
> | nm-ip6-manager.c:944:2: warning: passing argument 1 of
> 'nl_cache_refill' from incompatible pointer type
> |
> /OE/angstrom-setup-scripts/build/tmp-angstrom_2008_1/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/netlink/cache.h:56:14:
> note: expected 'struct nl_sock *' but argument is of type 'struct
> nl_handle *'
> | nm-ip6-manager.c:945:2: warning: passing argument 1 of
> 'nl_cache_refill' from incompatible pointer type
> |
> /OE/angstrom-setup-scripts/build/tmp-angstrom_2008_1/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/netlink/cache.h:56:14:
> note: expected 'struct nl_sock *' but argument is of type 'struct
> nl_handle *'
> | nm-ip6-manager.c:960:13: warning: assignment makes pointer from
> integer without a cast
> | nm-ip6-manager.c:985:3: error: too few arguments to function
> 'rtnl_route_get_metric'
> |
> /OE/angstrom-setup-scripts/build/tmp-angstrom_2008_1/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/netlink/route/route.h:83:12:
> note: declared here
> | nm-ip6-manager.c: In function 'nm_ip6_manager_init':
> | nm-ip6-manager.c:1073:2: warning: passing argument 1 of
> 'rtnl_addr_alloc_cache' from incompatible pointer type
> |
> /OE/angstrom-setup-scripts/build/tmp-angstrom_2008_1/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/netlink/route/addr.h:31:12:
> note: expected 'struct nl_sock *' but argument is ofERROR: Function
> 'do_compile' failed (see
> /OE/angstrom-setup-scripts/build/tmp-angstrom_2008_1/work/armv7a-angstrom-linux-gnueabi/networkmanager-0.8.1-r2/temp/log.do_compile.20022
> for further information)
> |  type 'struct nl_handle *'
> | nm-ip6-manager.c:1073:2: error: too few arguments to function
> 'rtnl_addr_alloc_cache'
> |
> /OE/angstrom-setup-scripts/build/tmp-angstrom_2008_1/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/netlink/route/addr.h:31:12:
> note: declared here
> | nm-ip6-manager.c:1074:2: warning: passing argument 1 of
> 'rtnl_route_alloc_cache' from incompatible pointer type
> |
> /OE/angstrom-setup-scripts/build/tmp-angstrom_2008_1/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/netlink/route/route.h:48:12:
> note: expected 'struct nl_sock *' but argument is of type 'struct
> nl_handle *'
> | nm-ip6-manager.c:1074:2: error: too few arguments to function
> 'rtnl_route_alloc_cache'
> |
> /OE/angstrom-setup-scripts/build/tmp-angstrom_2008_1/sysroots/armv7a-angstrom-linux-gnueabi/usr/include/netlink/route/route.h:48:12:
> note: declared here
> | make[4]: *** [libip6_manager_la-nm-ip6-manager.lo] Error 1
> | make[4]: Leaving directory
> `/OE/angstrom-setup-scripts/build/tmp-angstrom_2008_1/work/armv7a-angstrom-linux-gnueabi/networkmanager-0.8.1-r2/NetworkManager-0.8.1/src/ip6-manager'
> | make[3]: *** [all-recursive] Error 1
> | make[3]: Leaving directory
> `/OE/angstrom-setup-scripts/build/tmp-angstrom_2008_1/work/armv7a-angstrom-linux-gnueabi/networkmanager-0.8.1-r2/NetworkManager-0.8.1/src'
> | make[2]: *** [all] Error 2
> | make[2]: Leaving directory
> `/OE/angstrom-setup-scripts/build/tmp-angstrom_2008_1/work/armv7a-angstrom-linux-gnueabi/networkmanager-0.8.1-r2/NetworkManager-0.8.1/src'
> | make[1]: *** [all-recursive] Error 1
> | make[1]: Leaving directory
> `/OE/angstrom-setup-scripts/build/tmp-angstrom_2008_1/work/armv7a-angstrom-linux-gnueabi/networkmanager-0.8.1-r2/NetworkManager-0.8.1'
> | make: *** [all] Error 2
> | + die 'oe_runmake failed'
> | + oefatal 'oe_runmake failed'
> | + echo FATAL: 'oe_runmake failed'
> | FATAL: oe_runmake failed
> | + exit 1
> 
> So there still is a header clash by the looks of it. Did I miss a patch?
> 
>> I've fixed nm only in
>> recipes/networkmanager/networkmanager_git.bb
>> where was
>> DEFAULT_PREFERENCE_angstrom = "1"
>> and highest PV
> 
>> this looks like
>> recipes/networkmanager/networkmanager_0.8.1.bb
>> and exactly same errors like I had with git version (backend subdir will
>> be next to fail)
> 
>> you can add/adapt
>> recipes/networkmanager/networkmanager/0001-respect-libnl-flags-also-in-backends-ip6-manager.patch
>> if you need 0.8.1 too

That worked!

I will adapt it since I'd like this to go into 2011.03-maintenance as well.

Patch is here:
http://dominion.thruhere.net/koen/angstrom/0001-networkmanager-0.8.1-fix-build-against-libl-using-th.patch

For the whole series:

Acked-by: Koen Kooi <koen@dominion.thruhere.net>

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFNixLGMkyGM64RGpERAihzAJ9RVZzfyPnOYyEGM0K5AcmIsXz/BQCaA39i
MoqqmxpHxqlyUNj8pQCocBk=
=leDh
-----END PGP SIGNATURE-----




  reply	other threads:[~2011-03-24 10:08 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-18 14:00 [PATCH 01/12] libnl: rename libnl2 to libnl as used in openembedded-core Martin Jansa
2011-03-18 14:00 ` [PATCH 02/12] libnl: don't use /usr/include/libnl2 anymore Martin Jansa
2011-03-18 14:00 ` [PATCH 03/12] libnl: add RREPLACES libnl2 for upgradable path Martin Jansa
2011-03-18 14:18   ` Martin Jansa
2011-03-18 15:54   ` Phil Blundell
2011-03-21  9:37     ` Martin Jansa
2011-03-18 14:00 ` [PATCH 04/12] libnl_git: remove fix-pktloc-dep-race.patch from this version Martin Jansa
2011-03-23 10:44   ` Stefan Schmidt
2011-03-23 11:33     ` Martin Jansa
2011-03-18 14:00 ` [PATCH 05/12] libnl: add libnl.inc and use INC_PR Martin Jansa
2011-03-18 14:00 ` [PATCH 06/12] SHR: drop blacklist entries for libnl, now when libnl2 is used by default Martin Jansa
2011-03-18 14:00 ` [PATCH 07/12] libfsobasics: depend only on libnl(-2.0) not libnl2(-2.0) Martin Jansa
2011-03-18 14:00 ` [PATCH 08/12] hostap-daemon: " Martin Jansa
2011-03-18 14:00 ` [PATCH 09/12] iw: " Martin Jansa
2011-03-18 14:00 ` [PATCH 10/12] ti-wifi-utils: " Martin Jansa
2011-03-18 14:00 ` [PATCH 11/12] wpa-supplicant-0.7: " Martin Jansa
2011-03-18 14:00 ` [PATCH 12/12] connman: " Martin Jansa
2011-03-23 10:47 ` [PATCH 01/12] libnl: rename libnl2 to libnl as used in openembedded-core Stefan Schmidt
2011-03-23 11:24   ` Martin Jansa
2011-03-23 11:41     ` Koen Kooi
2011-03-23 16:25       ` Martin Jansa
2011-03-23 16:57         ` [PATCH 1/2] libnl-1.1: rename to libnl1 and build only static lib Martin Jansa
2011-03-23 16:57           ` [PATCH 2/2] networkmanager_git: fix build with static libnl1 Martin Jansa
2011-03-23 19:49           ` [PATCH 1/2] libnl-1.1: rename to libnl1 and build only static lib Koen Kooi
2011-03-23 20:02             ` Martin Jansa
2011-03-24  8:54               ` Koen Kooi
2011-03-24  9:02                 ` Martin Jansa
2011-03-24  9:45                   ` Koen Kooi [this message]
2011-03-24  2:45       ` [PATCH 01/12] libnl: rename libnl2 to libnl as used in openembedded-core Khem Raj
2011-03-24 11:01 ` Koen Kooi
2011-03-24 12:03   ` Koen Kooi

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='imf3s6$rl0$1@dough.gmane.org' \
    --to=koen@dominion.thruhere.net \
    --cc=openembedded-devel@lists.openembedded.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.