Skip to contentSkip to conversation

xtables-addons-1.41, ipset build error with hardened-sources-3.2.2

DISCUSSION Marcin Mirosław 2 participants 3 messages Jan 29, 2012 – Apr 24, 2012

lore
Share & tools
lore
#0 lore raw

Hello,
i've got problem with build xtables-addons-1.41 with kernel hardened-sources-3.2.2. here is log:
CC [M]
/var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/pfxlen.o /var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/pfxlen.c:148:1: warning: data definition has no type or storage class /var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/pfxlen.c:148:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ /var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/pfxlen.c:148:1: warning: parameter names (without types) in function declaration /var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/pfxlen.c:291:1: warning: data definition has no type or storage class /var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/pfxlen.c:291:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ /var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/pfxlen.c:291:1: warning: parameter names (without types) in function declaration /var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/pfxlen.c:312:1: warning: data definition has no type or storage class /var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/pfxlen.c:312:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ /var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/pfxlen.c:312:1: warning: parameter names (without types) in function declaration
CC [M]
/var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/ip_set_bitmap_ip.o
CC [M]
/var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/ip_set_bitmap_ipmac.o /var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/ip_set_getport.c:110:1: warning: data definition has no type or storage class /var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/ip_set_getport.c:110:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ /var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/ip_set_getport.c:110:1: warning: parameter names (without types) in function declaration /var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/ip_set_getport.c: In function ‘ip_set_get_ip6_port’:
/var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/ip_set_getport.c:125:48: error: too many arguments to function ‘ipv6_skip_exthdr’ include/net/ipv6.h:556:12: note: declared here /var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/ip_set_getport.c: At top level:
/var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/ip_set_getport.c:132:1: warning: data definition has no type or storage class /var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/ip_set_getport.c:132:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ /var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/ip_set_getport.c:132:1: warning: parameter names (without types) in function declaration /var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/ip_set_getport.c:161:1: warning: data definition has no type or storage class /var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/ip_set_getport.c:161:1: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ /var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/ip_set_getport.c:161:1: warning: parameter names (without types) in function declaration make[3]: *** [/var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/ip_set_getport.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6] Error 2
make[1]: *** [_module_/var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions] Error 2
make[1]: Leaving directory `/usr/src/linux-3.2.2-hardened-r1'
make: *** [modules] Error 2

Thank you for help.
Marcin

#1 lore raw
Quoted 2 lines · Marcin Mirosław

/var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/pfxlen.c:148:1:
warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’

This is probably because the file does not #include <linux/module.h> (or <linux/export.h> as it has become); it is, however, no longer an issue since ipset-6 is no longer included starting with 1.42.

#2 lore raw

W dniu 2012-04-22 16:49, Jan Engelhardt pisze:

Quoted 9 lines · Marcin Mirosław
Quoted 3 lines

/var/tmp/portage/net-firewall/xtables-addons-1.41/work/xtables-addons-1.41/extensions/ipset-6/pfxlen.c:148:1:
warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’

This is probably because the file does not #include <linux/module.h> (or <linux/export.h> as it has become); it is, however, no longer an issue since ipset-6 is no longer included starting with 1.42.

Hello Jan!
Thanks for information,
Marcin