Modify

Opened 2 years ago

Last modified 2 years ago

#20662 new defect

iproute2 libnl-tiny errors on UCLIBC-NG (ar71xx)

Reported by: anonymous Owned by: developers
Priority: high Milestone:
Component: packages Version: Trunk
Keywords: Cc:

Description

mips-openwrt-linux-uclibc-gcc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -Wformat=2 -O2 -Os -pipe -mno-branch-likely -march=74kc -mtune=74kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections -I../include -I/mnt/storage/openwrt-cc/trunk/staging_dir/target-mips_34kc_uClibc-1.0.6/usr/include/libnl-tiny -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DNO_SHARED_LIBS -DCONFDIR=\"/etc/iproute2\" -D_GNU_SOURCE -DIPROUTE2_TINY -fpic -c -o utils.o utils.c
In file included from utils.c:34:0:
../include/namespace.h:34:19: error: static declaration of 'setns' follows non-static declaration

static inline int setns(int fd, int nstype)


In file included from /mnt/storage/openwrt-cc/trunk/staging_dir/toolchain-mips_34kc_gcc-5.2.0_uClibc-1.0.6/include/sched.h:34:0,

from ../include/namespace.h:4,
from utils.c:34:

/mnt/storage/openwrt-cc/trunk/staging_dir/toolchain-mips_34kc_gcc-5.2.0_uClibc-1.0.6/include/bits/sched.h:91:12: note: previous declaration of 'setns' was here

extern int setns (int fd, int nstype) THROW;


make[4]: * [utils.o] Error 1

Attachments (0)

Change History (2)

comment:1 Changed 2 years ago by anonymous

any particular reason why you're using uclibc-ng instead of musl?

comment:2 Changed 2 years ago by anonymous

try add: TARGET_CFLAGS += -DHAVE_SETNS

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.