Unable to compile iproute2

536 views
Skip to first unread message

jlanza

unread,
Feb 10, 2012, 6:44:23 AM2/10/12
to Android Building
Hi,

I'm trying to compile iproute2 package for my nexus S but I'm unable
to do so.

Here is the procedure:
$ source build/envsetup.sh
$ cd external/iproute2
$ mm
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.4
TARGET_PRODUCT=full_crespo
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GRJ22
============================================
make: Entering directory `/home/jlanza/android/android-git-2.3.4_r1-
jlanza'
build/core/Makefile:21: warning: overriding commands for target `out/
target/product/crespo/system/etc/permissions/
android.software.live_wallpaper.xml'
build/core/Makefile:21: warning: ignoring old commands for target
`out/
target/product/crespo/system/etc/permissions/
android.software.live_wallpaper.xml'
No private recovery resources for TARGET_DEVICE crespo
make: *** No rule to make target `out/target/product/crespo/obj/lib/
libc.so', needed by `out/target/product/crespo/obj/SHARED_LIBRARIES/
libiprouteutil_intermediates/LINKED/libiprouteutil.so'. Stop.
make: Leaving directory `/home/jlanza/android/android-git-2.3.4_r1-
jlanza'

Any idea on how to solve the problem?

Jorge Lanza

unread,
Feb 10, 2012, 7:22:59 AM2/10/12
to Android Building
The issue is that I want to compile the ip command, and I get lot of errors.

I have tried using the busybox ip, but not all the features are available (ip tunnels ip6ip6 for instance)

Thanks.

Ying Wang

unread,
Feb 13, 2012, 5:11:47 PM2/13/12
to android-...@googlegroups.com
You have to do a full build before you can run mm or mmm.
To build only the "ip" command, run "make showcommands ip"

--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

jlanza

unread,
Feb 16, 2012, 5:44:13 AM2/16/12
to Ying Wang, Android Building
I've tried this but I get the following error :
external/iproute2/ip/iplink_vlan.c: In function 'vlan_parse_qos_map':
external/iproute2/ip/iplink_vlan.c:49: warning: pointer of type 'void
*' used in arithmetic
external/iproute2/ip/iplink_vlan.c:68: warning: pointer of type 'void
*' used in arithmetic
external/iproute2/ip/iplink_vlan.c:68: warning: pointer of type 'void
*' used in subtraction
external/iproute2/ip/iplink_vlan.c: In function 'vlan_parse_opt':
external/iproute2/ip/iplink_vlan.c:78: warning: missing initializer
external/iproute2/ip/iplink_vlan.c:78: warning: (near initialization
for 'flags.mask')
external/iproute2/ip/iplink_vlan.c:89: error: 'VLAN_FLAG_REORDER_HDR'
undeclared (first use in this function)
external/iproute2/ip/iplink_vlan.c:89: error: (Each undeclared
identifier is reported only once
external/iproute2/ip/iplink_vlan.c:89: error: for each function it
appears in.)
external/iproute2/ip/iplink_vlan.c:98: error: 'VLAN_FLAG_GVRP'
undeclared (first use in this function)
external/iproute2/ip/iplink_vlan.c:75: warning: unused parameter 'lu'
external/iproute2/ip/iplink_vlan.c: In function 'vlan_print_flags':
external/iproute2/ip/iplink_vlan.c:157: error: 'VLAN_FLAG_REORDER_HDR'
undeclared (first use in this function)
external/iproute2/ip/iplink_vlan.c:158: error: 'VLAN_FLAG_GVRP'
undeclared (first use in this function)
external/iproute2/ip/iplink_vlan.c: In function 'vlan_print_opt':

It seems that most of the flags are not defined in header files.


On Feb 13, 11:11 pm, Ying Wang <wangy...@android.com> wrote:
> You have to do a full build before you can run mm or mmm.
> To build only the "ip" command, run "make showcommands ip"
>
>
>
>
>
>
>
> On Fri, Feb 10, 2012 at 4:22 AM, Jorge Lanza <jlanza....@gmail.com> wrote:
> > The issue is that I want to compile the ip command, and I get lot of
> > errors.
>
> > I have tried using the busybox ip, but not all the features are available
> > (ip tunnels ip6ip6 for instance)
>
> > Thanks.
>

AMIT CHAUHAN

unread,
May 11, 2020, 2:04:57 PM5/11/20
to Android Building
Hi All,

I am also want to compile and push external/openssh.

Not able to do that.

with command
#mmm external/openssh
everything works fine, but not working with changes in .mk files.

1. ./build/make/target/product/base_system.mk:268: external/openssh \
2. ./vendor/qcom/proprietary/android-perf/learning-module/Android.mk:12: external/openssh \
3. ./build/make/target/product/cfi-common.mk:24: external/openssh \
Reply all
Reply to author
Forward
0 new messages