Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#11874 closed defect (worksforme)

crda fails to build in backfire

Reported by: dev.openwrt.org@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: 10.03.1
Keywords: Cc:

Description

crda is being built automatically for my image but it fails and thus brings down the build process against backfire HEAD.Maybe r31954 should be backported to backfire?

$ make package/crda/compile V=99
[...]
touch /home/rolf/tmp/compile/wrt/backfire/build_dir/linux-brcm-2.4/crda-1.1.1/.configured_
CFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float  -I/home/rolf/tmp/compile/wrt/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include/libnl-tiny -D_GNU_SOURCE -I/home/rolf/tmp/compile/wrt/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include -I/home/rolf/tmp/compile/wrt/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/include -I/home/rolf/tmp/compile/wrt/backfire/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/include " CXXFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float  -I/home/rolf/tmp/compile/wrt/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include/libnl-tiny -D_GNU_SOURCE -I/home/rolf/tmp/compile/wrt/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include -I/home/rolf/tmp/compile/wrt/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/include -I/home/rolf/tmp/compile/wrt/backfire/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/include " LDFLAGS="-L/home/rolf/tmp/compile/wrt/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/lib -L/home/rolf/tmp/compile/wrt/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/lib -L/home/rolf/tmp/compile/wrt/backfire/staging_dir/toolchain-mipsel_gcc-3.4.6_uClibc-0.9.30.1/lib " make -C /home/rolf/tmp/compile/wrt/backfire/build_dir/linux-brcm-2.4/crda-1.1.1/. AR=mipsel-openwrt-linux-uclibc-ar AS="mipsel-openwrt-linux-uclibc-gcc -c -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float" LD=mipsel-openwrt-linux-uclibc-ld NM=mipsel-openwrt-linux-uclibc-nm CC="mipsel-openwrt-linux-uclibc-gcc" GCC="mipsel-openwrt-linux-uclibc-gcc" CXX="mipsel-openwrt-linux-uclibc-g++" RANLIB=mipsel-openwrt-linux-uclibc-ranlib STRIP=mipsel-openwrt-linux-uclibc-strip OBJCOPY=mipsel-openwrt-linux-uclibc-objcopy OBJDUMP=mipsel-openwrt-linux-uclibc-objdump SIZE=mipsel-openwrt-linux-uclibc-size CROSS="mipsel-openwrt-linux-uclibc-" ARCH="mipsel" NL1FOUND="" NL2FOUND=Y NLLIBNAME="libnl-tiny" NLLIBS="-lnl-tiny -lm" REG_BIN="/home/rolf/tmp/compile/wrt/backfire/dl/2011.04.28-regulatory.bin" crda ;
make[3]: Entering directory `/home/rolf/tmp/compile/wrt/backfire/build_dir/linux-brcm-2.4/crda-1.1.1'
  CC   reglib.o
In file included from reglib.h:7,
                 from reglib.c:6:
regdb.h:31: error: syntax error before "__be32"
regdb.h:31: warning: no semicolon at end of struct or union
regdb.h:33: warning: type defaults to `int' in declaration of `version'
regdb.h:33: warning: data definition has no type or storage class
regdb.h:41: error: syntax error before "reg_country_ptr"
regdb.h:41: warning: type defaults to `int' in declaration of `reg_country_ptr'
regdb.h:41: warning: data definition has no type or storage class
regdb.h:42: error: syntax error before "reg_country_num"
regdb.h:42: warning: type defaults to `int' in declaration of `reg_country_num'
regdb.h:42: warning: data definition has no type or storage class
regdb.h:44: error: syntax error before "signature_length"
regdb.h:44: warning: type defaults to `int' in declaration of `signature_length'
regdb.h:44: warning: data definition has no type or storage class
regdb.h:48: error: syntax error before "__be32"
regdb.h:48: warning: no semicolon at end of struct or union
regdb.h:59: error: syntax error before "__be32"
regdb.h:59: warning: no semicolon at end of struct or union
regdb.h:61: warning: type defaults to `int' in declaration of `max_eirp'
regdb.h:61: warning: data definition has no type or storage class
regdb.h:83: error: syntax error before "__be32"
regdb.h:83: warning: no semicolon at end of struct or union
regdb.h:84: warning: type defaults to `int' in declaration of `power_rule_ptr'
regdb.h:84: warning: data definition has no type or storage class
regdb.h:86: error: syntax error before "flags"
regdb.h:86: warning: type defaults to `int' in declaration of `flags'
regdb.h:86: warning: data definition has no type or storage class
regdb.h:90: error: syntax error before "__be32"
regdb.h:90: warning: no semicolon at end of struct or union
regdb.h:94: warning: type defaults to `int' in declaration of `reg_rule_ptrs'
regdb.h:94: warning: data definition has no type or storage class
regdb.h:95: error: syntax error before '}' token
regdb.h:102: error: syntax error before "__be32"
regdb.h:102: warning: no semicolon at end of struct or union
regdb.h: In function `check_db_binary_structs':
regdb.h:119: error: invalid application of `sizeof' to incomplete type `regdb_file_header' 
regdb.h:119: error: size of array `type name' is negative
regdb.h:120: error: invalid application of `sizeof' to incomplete type `regdb_file_freq_range' 
regdb.h:120: error: size of array `type name' is negative
regdb.h:121: error: invalid application of `sizeof' to incomplete type `regdb_file_power_rule' 
regdb.h:121: error: size of array `type name' is negative
regdb.h:122: error: invalid application of `sizeof' to incomplete type `regdb_file_reg_rule' 
regdb.h:122: error: size of array `type name' is negative
regdb.h:123: error: invalid application of `sizeof' to incomplete type `regdb_file_reg_rules_collection' 
regdb.h:123: error: size of array `type name' is negative
regdb.h:124: error: invalid application of `sizeof' to incomplete type `regdb_file_reg_country' 
regdb.h:124: error: size of array `type name' is negative
In file included from reglib.c:6:
reglib.h: At top level:
reglib.h:87: error: syntax error before "__be32"
reglib.c:29: error: syntax error before "__be32"
reglib.c: In function `crda_get_file_ptr':
reglib.c:31: error: `ptr' undeclared (first use in this function)
reglib.c:31: error: (Each undeclared identifier is reported only once
reglib.c:31: error: for each function it appears in.)
reglib.c:33: error: `dblen' undeclared (first use in this function)
reglib.c:33: error: `structlen' undeclared (first use in this function)
reglib.c:38: error: `db' undeclared (first use in this function)
reglib.c: At top level:
regdb.h:94: warning: array 'reg_rule_ptrs' assumed to have one element
make[3]: *** [reglib.o] Error 1
make[3]: Leaving directory `/home/rolf/tmp/compile/wrt/backfire/build_dir/linux-brcm-2.4/crda-1.1.1'
make[2]: *** [/home/rolf/tmp/compile/wrt/backfire/build_dir/linux-brcm-2.4/crda-1.1.1/.built] Error 2
make[2]: Leaving directory `/home/rolf/tmp/compile/wrt/backfire/package/crda'
make[1]: *** [package/crda/compile] Error 2
make[1]: Leaving directory `/home/rolf/tmp/compile/wrt/backfire'
make: *** [package/crda/compile] Error 2

Attachments (0)

Change History (5)

comment:1 Changed 6 years ago by jow

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

The crda package is not supported for Linux 2.4, disabled with r32751

comment:2 Changed 6 years ago by dev.openwrt.org@…

  • Resolution fixed deleted
  • Status changed from closed to reopened

unfortunately, r32751 did not fix this issue and even IGNORE_ERRORS=m does not help

comment:3 Changed 6 years ago by jow

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

Works reliably for me. You probably forgot to run "make defconfig" after the update.

comment:4 Changed 6 years ago by dev.openwrt.org@…

works fine indeed after make defconfig.

thank you very much for the fix and your tireless work in general

comment:5 Changed 4 years ago by jow

  • Milestone changed from Backfire 10.03.2 to Chaos Calmer (trunk)

Milestone Backfire 10.03.2 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.