Modify

Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#7730 closed defect (fixed)

xtables-addons-1.28 fails to compile

Reported by: Bjorn T <spamgoeshere@…> Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: xtables-addons Cc:

Description

Hi,

I've been attempting to compile OpenWrt from trunk (r22576).

I've been getting compile errors from xtables-addons, specifically...

make -f ../Makefile.iptrules all;

make[7]: Entering directory `/home/bjorn/openwrt/0810/trunk/build_dir/linux-brcm47xx/xtables-addons-1.28/extensions'

mipsel-openwrt-linux-uclibc-gcc -Wp,-MMD,./.libxt_CHAOS.oo.d,-MT,libxt_CHAOS.oo -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64     -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations    -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes     -Winline -pipe -DXTABLES_LIBDIR=\"/usr/lib/iptables\"   -I../include -I/home/bjorn/openwrt/0810/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/usr//include   -DPIC -fPIC -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float  -o libxt_CHAOS.oo -c libxt_CHAOS.c;

libxt_CHAOS.c:99: warning: implicit declaration of function 'ALIGN'
libxt_CHAOS.c:99: error: initializer element is not constant
libxt_CHAOS.c:99: error: (near initialization for 'chaos_tg_reg.size')
libxt_CHAOS.c:100: error: initializer element is not constant
libxt_CHAOS.c:100: error: (near initialization for 'chaos_tg_reg.userspacesize')

Google tells me this is a bug in kernel and headers for 2.6.34 that was fixed in 2.6.35.

Applying the patch at http://kerneltrap.org/mailarchive/linux-kernel/2010/4/14/4558210 to both kernel and toolchain/kernel-headers allows compilation to succeed. I haven't tested the resulting binary yet.

Attachments (0)

Change History (3)

comment:1 Changed 7 years ago by nico

  • Milestone changed from Backfire 10.03.1 to Kamikaze

backfire is not affected...

comment:2 Changed 7 years ago by jow

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

Should be fixed with 1.29 update

comment:3 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.