Modify

Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#9830 closed defect (worksforme)

Change 27800 breaks swconfig build on Routerstation Pro

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

git bisect shows that commit 27800 causes the following build breakage:

make[3]: Entering directory `/usr/src/s0be/openwrt/package/swconfig'
CFLAGS="-D_GNU_SOURCE -I/usr/src/s0be/openwrt/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include/libnl-tiny -I/usr/src/s0be/openwrt/build_dir/linux-ar71xx_generic/linux-2.6.39.2/include -I/usr/src/s0be/openwrt/build_dir/linux-ar71xx_generic/linux-2.6.39.2/arch/mips/include -I/usr/src/s0be/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/swconfig -I/usr/src/s0be/openwrt/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include -I/usr/src/s0be/openwrt/staging_dir/target-mips_r2_uClibc-0.9.32/include -I/usr/src/s0be/openwrt/staging_dir/toolchain-mips_r2_gcc-linaro_uClibc-0.9.32/usr/include -I/usr/src/s0be/openwrt/staging_dir/toolchain-mips_r2_gcc-linaro_uClibc-0.9.32/include -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -msoft-float" make -C /usr/src/s0be/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/swconfig AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -msoft-float" LD=mips-openwrt-linux-uclibc-ld NM=mips-openwrt-linux-uclibc-nm CC="mips-openwrt-linux-uclibc-gcc" GCC="mips-openwrt-linux-uclibc-gcc" CXX="mips-openwrt-linux-uclibc-g++" RANLIB=mips-openwrt-linux-uclibc-ranlib STRIP=mips-openwrt-linux-uclibc-strip OBJCOPY=mips-openwrt-linux-uclibc-objcopy OBJDUMP=mips-openwrt-linux-uclibc-objdump SIZE=mips-openwrt-linux-uclibc-size LIBS="-L/usr/src/s0be/openwrt/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib -L/usr/src/s0be/openwrt/staging_dir/target-mips_r2_uClibc-0.9.32/lib -L/usr/src/s0be/openwrt/staging_dir/toolchain-mips_r2_gcc-linaro_uClibc-0.9.32/usr/lib -L/usr/src/s0be/openwrt/staging_dir/toolchain-mips_r2_gcc-linaro_uClibc-0.9.32/lib -lnl-tiny -lm -luci"
make[4]: Entering directory `/usr/src/s0be/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/swconfig'
mips-openwrt-linux-uclibc-gcc -D_GNU_SOURCE -I/usr/src/s0be/openwrt/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include/libnl-tiny -I/usr/src/s0be/openwrt/build_dir/linux-ar71xx_generic/linux-2.6.39.2/include -I/usr/src/s0be/openwrt/build_dir/linux-ar71xx_generic/linux-2.6.39.2/arch/mips/include -I/usr/src/s0be/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/swconfig -I/usr/src/s0be/openwrt/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include -I/usr/src/s0be/openwrt/staging_dir/target-mips_r2_uClibc-0.9.32/include -I/usr/src/s0be/openwrt/staging_dir/toolchain-mips_r2_gcc-linaro_uClibc-0.9.32/usr/include -I/usr/src/s0be/openwrt/staging_dir/toolchain-mips_r2_gcc-linaro_uClibc-0.9.32/include -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -msoft-float -c -o swlib.o swlib.c
In file included from /usr/src/s0be/openwrt/build_dir/linux-ar71xx_generic/linux-2.6.39.2/include/linux/switch.h:20:0,
                 from swlib.c:25:
/usr/src/s0be/openwrt/build_dir/linux-ar71xx_generic/linux-2.6.39.2/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
swlib.c: In function 'add_switch':
swlib.c:592:28: error: 'SWITCH_ATTR_ALIAS' undeclared (first use in this function)
swlib.c:592:28: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [swlib.o] Error 1
make[4]: Leaving directory `/usr/src/s0be/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/swconfig'
make[3]: *** [/usr/src/s0be/openwrt/build_dir/target-mips_r2_uClibc-0.9.32/swconfig/.built] Error 2
make[3]: Leaving directory `/usr/src/s0be/openwrt/package/swconfig'
make[2]: *** [package/swconfig/compile] Error 2
make[2]: Leaving directory `/usr/src/s0be/openwrt'
make[1]: *** [/usr/src/s0be/openwrt/staging_dir/target-mips_r2_uClibc-0.9.32/stamp/.package_compile] Error 2
make[1]: Leaving directory `/usr/src/s0be/openwrt'

Running a quick egrep shows that package being the only one that references SWITCH_ATTR_ALIAS.

I've tried make clean and make dirclean to no avail. Is it possibly something in my .config?

Attachments (0)

Change History (4)

comment:1 Changed 7 years ago by pat@…

Ignore this reply, just doing so to subscribe.

comment:2 Changed 7 years ago by anonymous

On D-Link DIR-825 this problem is present from 27800 too

comment:3 Changed 7 years ago by nbd

  • Resolution set to worksforme
  • Status changed from new to closed

make target/linux/clean; make

comment:4 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.