Opened 8 years ago

Closed 8 years ago

#7215 closed defect (worksforme)

swconfig build failed since r20939: 'SWITCH_ATTR_CPU_PORT' undeclared

Reported by: achaoge@… Owned by: developers
Priority: high Milestone: Backfire 10.03.1
Component: packages Version: Trunk
Keywords: Cc:


the build error info:


mips-openwrt-linux-uclibc-gcc -D_GNU_SOURCE -I/home/gaochao/tmp/openwrt/trunk/staging_dir/target-mips_r2_uClibc- -I/home/gaochao/tmp/openwrt/trunk/build_dir/linux-ar71xx/linux- -I/home/gaochao/tmp/openwrt/trunk/build_dir/linux-ar71xx/linux- -I/home/gaochao/tmp/openwrt/trunk/build_dir/target-mips_r2_uClibc- -I/home/gaochao/tmp/openwrt/trunk/staging_dir/target-mips_r2_uClibc- -I/home/gaochao/tmp/openwrt/trunk/staging_dir/target-mips_r2_uClibc- -I/home/gaochao/tmp/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc- -I/home/gaochao/tmp/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc- -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -c -o swlib.o swlib.c

swlib.c: In function 'add_switch':

swlib.c:589: error: 'SWITCH_ATTR_CPU_PORT' undeclared (first use in this function)

swlib.c:589: error: (Each undeclared identifier is reported only once

swlib.c:589: error: for each function it appears in.)

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


Attachments (0)

Change History (2)

comment:1 Changed 8 years ago by anonymous

make package/swconfig/clean
make target/linux/clean

and try again

comment:2 Changed 8 years ago by jow

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

The solution above will fix this.

Add Comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.