Modify

Opened 8 years ago

Closed 8 years ago

Last modified 22 months ago

#3336 closed defect (worksforme)

Current trunk (r10845) iptables fails to build

Reported by: nabcore Owned by: developers
Priority: highest Milestone: Barrier Breaker 14.07
Component: packages Version:
Keywords: ar7 iptables Cc:

Description

make[4]: Entering directory `/scratch/openwrt/trunk/build_dir/linux-ar7/iptables-1.4.0'
mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -Wall -Wunused -I/scratch/openwrt/trunk/build_dir/linux-ar7/linux-2.6.24.4/include -I/scratch/openwrt/trunk/build_dir/linux-ar7/linux-2.6.24.4/include -Iinclude/ -DIPTABLES_VERSION=\"1.4.0\"  -fPIC -o extensions/libipt_layer7_sh.o -c extensions/libipt_layer7.c
extensions/libipt_layer7.c: In function 'parse':
extensions/libipt_layer7.c:339: error: 'struct xt_layer7_info' has no member named 'pkt'
extensions/libipt_layer7.c: In function 'print':
extensions/libipt_layer7.c:374: error: 'struct xt_layer7_info' has no member named 'pkt'
make[4]: *** [extensions/libipt_layer7_sh.o] Error 1
make[4]: Leaving directory `/scratch/openwrt/trunk/build_dir/linux-ar7/iptables-1.4.0'
make[3]: *** [/scratch/openwrt/trunk/build_dir/linux-ar7/iptables-1.4.0/.built] Error 2
make[3]: Leaving directory `/scratch/openwrt/trunk/package/iptables'
make[2]: *** [package/iptables/compile] Error 2
make[2]: Leaving directory `/scratch/openwrt/trunk'
make[1]: *** [/scratch/openwrt/trunk/staging_dir/mipsel/stamp/.package_compile] Error 2
make[1]: Leaving directory `/scratch/openwrt/trunk'
make: *** [world] Error 2

Attachments (0)

Change History (4)

comment:1 Changed 8 years ago by nico

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

You have to rebuild your kernel:

$ make target/linux/clean
$ make

comment:2 Changed 8 years ago by anonymous

Works for me too on a X86 build.

comment:3 Changed 8 years ago by nabcore

The sharp amongst you may have noticed that the above was built with a 2.6.24.4 kernel (and not the AR7's trunk version of 2.6.24.2). Yes I've been a bad boy in not making this clear initially; I'd modified ./target/linux/ar7/Makefile's kernel version. Having repeated the same with the trunk default kernel version of 2.6.24.2, the error did not occur.

However, changing the kernel version back to 2.6.24.4 in the AR7 makefile and doing a

make target/linux-clean world

did not generate an error.

I conclude that changing the kernel version in the AR7 makefile triggered some addition cleaning prior to building and thus masqueraded the changing the kernel version back to 2.6.24.2 as being the solution, when in fact the error was probably due to some stale object files.

Apologies, for the false report. This can be closed.

comment:4 Changed 22 months 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.