netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Frank Wunderlich <frank-w@public-files.de>
Cc: netdev@vger.kernel.org
Subject: Re: Crosscompiling iproute2
Date: Tue, 25 May 2021 09:08:46 -0700	[thread overview]
Message-ID: <20210525090846.513dddb1@hermes.local> (raw)
In-Reply-To: <AACFD746-4047-49D5-81B2-C0CD5D037FAB@public-files.de>

On Tue, 25 May 2021 17:56:09 +0200
Frank Wunderlich <frank-w@public-files.de> wrote:

> Am 24. Mai 2021 23:36:20 MESZ schrieb Stephen Hemminger <stephen@networkplumber.org>:
> >On Mon, 24 May 2021 21:06:02 +0200
> >Frank Wunderlich <frank-w@public-files.de> wrote:
> >  
> >> Am 17. Mai 2021 21:36:28 MESZ schrieb Stephen Hemminger  
> ><stephen@networkplumber.org>:  
> >> >On Mon, 17 May 2021 09:44:21 +0200
> >> >This works for me:
> >> >
> >> >make CC="$CC" LD="$LD" HOSTCC=gcc    
> >> 
> >> Hi,
> >> 
> >> Currently have an issue i guess from install. After compile i install  
> >into local directory,pack it and unpack on target system
> >(/usr/local/sbin).tried  
> >> 
> >> https://github.com/frank-w/iproute2/blob/main/crosscompile.sh#L17  
> >  
> >> 
> >> Basic ip commands work,but if i try e.g. this
> >> 
> >> ip link add name lanbr0 type bridge vlan_filtering 1  
> >vlan_default_pvid 500  
> >> 
> >> I get this:
> >> 
> >> Garbage instead of arguments "vlan_filtering ...". Try "ip link  
> >help".  
> >> 
> >> I guess ip tries to call bridge binary from wrong path (tried  
> >$PRFX/usr/local/bin).  
> >> 
> >> regards Frank  
> >
> >No ip command does not call bridge.
> >
> >More likely either your kernel is out of date with the ip command (ie
> >new ip command is asking for
> >something kernel doesn't understand);  
> I use 5.13-rc2 and can use the same command with debians ip command
> 
> >or the iplink_bridge.c was not
> >compiled as part of your compile;
> >or simple PATH issue
> >or your system is not handling dlopen(NULL) correctly.  
> 
> Which lib does ip load when using the vlanfiltering option?
It is doing dlopen of itself, no other library

> 
> >What happens is that the "type" field in ip link triggers the code
> >to use dlopen as form of introspection (see get_link_kind)  
> 
> I can use the command without vlan_filtering option (including type bridge).
> 
> Maybe missing libnml while compile can cause this? had disabled in config.mk and was not reset by make clean,manual delete causes build error,see my last mail
> 
> You can crosscompile only with CC,LD and HOSTCC set?

libmnl is needed to get the error handling and a few other features.


  reply	other threads:[~2021-05-25 16:08 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-16 14:51 Crosscompiling iproute2 Frank Wunderlich
2021-05-16 21:17 ` Stephen Hemminger
2021-05-17  7:44   ` Aw: " Frank Wunderlich
2021-05-17 19:36     ` Stephen Hemminger
2021-05-18 14:19       ` Aw: " Frank Wunderlich
2021-05-24 19:06       ` Frank Wunderlich
2021-05-24 21:36         ` Stephen Hemminger
2021-05-25 15:56           ` Frank Wunderlich
2021-05-25 16:08             ` Stephen Hemminger [this message]
2021-05-25 18:18               ` Aw: " Frank Wunderlich
2021-05-25 21:37                 ` Stephen Hemminger
2021-05-26  7:28                   ` Aw: " Frank Wunderlich
2021-05-25 13:30         ` Frank Wunderlich

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=20210525090846.513dddb1@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=frank-w@public-files.de \
    --cc=netdev@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).