Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 325257 - sys-kernel/linux-headers-2.6.34: ALIGN() is not exported in userspace headers
Summary: sys-kernel/linux-headers-2.6.34: ALIGN() is not exported in userspace headers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords: Inclusion
: 332153 332579 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-06-23 19:20 UTC by Reuben Martin
Modified: 2010-08-23 09:25 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,9.53 KB, text/plain)
2010-07-01 14:50 UTC, Michael Weber (RETIRED)
Details
environment (environment,144.99 KB, text/plain)
2010-07-01 14:51 UTC, Michael Weber (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Reuben Martin 2010-06-23 19:20:09 UTC
Something amiss in the kernel headers.


ibxt_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’)
make[3]: *** [libxt_CHAOS.oo] Error 1
make[3]: *** Waiting for unfinished jobs....
libxt_LOGMARK.c:104: warning: implicit declaration of function ‘ALIGN’
libxt_LOGMARK.c:104: error: initializer element is not constant
libxt_LOGMARK.c:104: error: (near initialization for ‘logmark_tg_reg.size’)
libxt_LOGMARK.c:105: error: initializer element is not constant
libxt_LOGMARK.c:105: error: (near initialization for ‘logmark_tg_reg.userspacesize’)
make[3]: *** [libxt_LOGMARK.oo] Error 1
libxt_IPMARK.c:156: warning: implicit declaration of function ‘ALIGN’
libxt_IPMARK.c:156: error: initializer element is not constant
libxt_IPMARK.c:156: error: (near initialization for ‘ipmark_tg_reg.size’)
libxt_IPMARK.c:157: error: initializer element is not constant
libxt_IPMARK.c:157: error: (near initialization for ‘ipmark_tg_reg.userspacesize’)
make[3]: *** [libxt_IPMARK.oo] Error 1
libxt_RAWDNAT.c:158: warning: implicit declaration of function ‘ALIGN’
libxt_RAWDNAT.c:158: error: initializer element is not constant
libxt_RAWDNAT.c:158: error: (near initialization for ‘rawdnat_tg4_reg.size’)
libxt_RAWDNAT.c:159: error: initializer element is not constant
libxt_RAWDNAT.c:159: error: (near initialization for ‘rawdnat_tg4_reg.userspacesize’)
libxt_RAWDNAT.c:173: error: initializer element is not constant
libxt_RAWDNAT.c:173: error: (near initialization for ‘rawdnat_tg6_reg.size’)
libxt_RAWDNAT.c:174: error: initializer element is not constant
libxt_RAWDNAT.c:174: error: (near initialization for ‘rawdnat_tg6_reg.userspacesize’)
make[3]: *** [libxt_RAWDNAT.oo] Error 1
libxt_RAWSNAT.c:158: warning: implicit declaration of function ‘ALIGN’
libxt_RAWSNAT.c:158: error: initializer element is not constant
libxt_RAWSNAT.c:158: error: (near initialization for ‘rawsnat_tg4_reg.size’)
libxt_RAWSNAT.c:159: error: initializer element is not constant
libxt_RAWSNAT.c:159: error: (near initialization for ‘rawsnat_tg4_reg.userspacesize’)
libxt_RAWSNAT.c:173: error: initializer element is not constant
libxt_RAWSNAT.c:173: error: (near initialization for ‘rawsnat_tg6_reg.size’)
libxt_RAWSNAT.c:174: error: initializer element is not constant
libxt_RAWSNAT.c:174: error: (near initialization for ‘rawsnat_tg6_reg.userspacesize’)
make[3]: *** [libxt_RAWSNAT.oo] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-firewall/xtables-addons-1.27/work/xtables-addons-1.27/extensions'
make[2]: *** [user-all-local] Error 2
make[2]: Leaving directory `/var/tmp/portage/net-firewall/xtables-addons-1.27/work/xtables-addons-1.27/extensions'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-firewall/xtables-addons-1.27/work/xtables-addons-1.27'
make: *** [all] Error 2
 * ERROR: net-firewall/xtables-addons-1.27 failed:


Reproducible: Always




USE="modules" XTABLES_ADDONS="account chaos condition delude fuzzy geoip iface ipmark ipv4options length2 logmark lscan pknock psd quota2 rawnat steal sysrq tarpit tee -dhcpmac -echo -ipp2p -ipset"
Comment 1 Grzegorz Golec 2010-06-24 08:03:35 UTC
the same for sources 2.6.33-gentoo-r1
Comment 2 Michael Weber (RETIRED) gentoo-dev 2010-07-01 14:50:03 UTC
Created attachment 237147 [details]
build.log
Comment 3 Michael Weber (RETIRED) gentoo-dev 2010-07-01 14:51:23 UTC
Created attachment 237149 [details]
environment
Comment 4 Peter Volkov (RETIRED) gentoo-dev 2010-07-02 09:57:13 UTC
Please, try with MAKEOPTS="-j1". And irrespectively of result: I've commited ebuild with V=1 on emake line. Could you also build with this new ebuild and attach much more verbose output, please?
Comment 5 Reuben Martin 2010-07-14 22:41:30 UTC
By "more verbose" I assume you just mean with the "-v" option enabled?

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) net-firewall/xtables-addons-1.27
 * xtables-addons-1.27.tar.xz RMD160 SHA1 SHA256 size ;-) ...                                                                                                  [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                           [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                          [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                         [ ok ]
 * CPV:  net-firewall/xtables-addons-1.27
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux modules multilib userland_GNU xtables_addons_account xtables_addons_chaos xtables_addons_condition xtables_addons_delude xtables_addons_dhcpmac xtables_addons_fuzzy xtables_addons_geoip xtables_addons_iface xtables_addons_ipmark xtables_addons_ipp2p xtables_addons_ipv4options xtables_addons_length2 xtables_addons_logmark xtables_addons_lscan xtables_addons_pknock xtables_addons_psd xtables_addons_quota2 xtables_addons_rawnat xtables_addons_steal xtables_addons_sysrq xtables_addons_tarpit xtables_addons_tee
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.34-gentoo-r2/build
 * Found sources for kernel version:
 *     2.6.34-gentoo-r2
 * Checking for suitable kernel configuration options...                                                                                                        [ ok ]
>>> Unpacking source...
>>> Unpacking xtables-addons-1.27.tar.xz to /var/tmp/portage/net-firewall/xtables-addons-1.27/work
>>> Source unpacked in /var/tmp/portage/net-firewall/xtables-addons-1.27/work
>>> Preparing source in /var/tmp/portage/net-firewall/xtables-addons-1.27/work/xtables-addons-1.27 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-firewall/xtables-addons-1.27/work/xtables-addons-1.27 ...
 * econf: updating xtables-addons-1.27/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating xtables-addons-1.27/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/lib64 --prefix=/ --libexecdir=/lib64/ --with-kbuild=/usr/src/linux
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of x86_64-pc-linux-gnu-gcc... gcc3
checking whether x86_64-pc-linux-gnu-gcc and cc understand -c and -o together... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by x86_64-pc-linux-gnu-gcc... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
checking for x86_64-pc-linux-gnu-objdump... x86_64-pc-linux-gnu-objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking command to parse /usr/bin/nm -B output from x86_64-pc-linux-gnu-gcc object... ok
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if x86_64-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if x86_64-pc-linux-gnu-gcc static flag -static works... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the x86_64-pc-linux-gnu-gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for x86_64-pc-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libxtables... yes
checking linux/netfilter/x_tables.h usability... yes
checking linux/netfilter/x_tables.h presence... yes
checking for linux/netfilter/x_tables.h... yes
Found kernel version 2.6.34.0 in /usr/src/linux
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Makefile.iptrules
config.status: creating Makefile.mans
config.status: creating extensions/Makefile
config.status: creating extensions/ACCOUNT/Makefile
config.status: creating extensions/ipset/Makefile
config.status: creating extensions/pknock/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-firewall/xtables-addons-1.27/work/xtables-addons-1.27 ...
make -j1 'CFLAGS=-O2 -march=native -pipe' CC=x86_64-pc-linux-gnu-gcc V=1
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/net-firewall/xtables-addons-1.27/work/xtables-addons-1.27'
Making all in extensions
make[2]: Entering directory `/var/tmp/portage/net-firewall/xtables-addons-1.27/work/xtables-addons-1.27/extensions'
make -f ../Makefile.iptrules all;
make[3]: Entering directory `/var/tmp/portage/net-firewall/xtables-addons-1.27/work/xtables-addons-1.27/extensions'
x86_64-pc-linux-gnu-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=\"/lib64/xtables\"      -I../include  -DPIC -fPIC -O2 -march=native -pipe -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')
make[3]: *** [libxt_CHAOS.oo] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-firewall/xtables-addons-1.27/work/xtables-addons-1.27/extensions'
make[2]: *** [user-all-local] Error 2
make[2]: Leaving directory `/var/tmp/portage/net-firewall/xtables-addons-1.27/work/xtables-addons-1.27/extensions'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-firewall/xtables-addons-1.27/work/xtables-addons-1.27'
make: *** [all] Error 2
 * ERROR: net-firewall/xtables-addons-1.27 failed:
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 3582:  Called die
 * The specific snippet of code:
 *       emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" V=1 || die;
 *
 * If you need support, post the output of 'emerge --info =net-firewall/xtables-addons-1.27',
 * the complete build log and the output of 'emerge -pqv =net-firewall/xtables-addons-1.27'.
 * The complete build log is located at '/var/tmp/portage/net-firewall/xtables-addons-1.27/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-firewall/xtables-addons-1.27/temp/environment'.
 * S: '/var/tmp/portage/net-firewall/xtables-addons-1.27/work/xtables-addons-1.27'
Comment 6 Peter Volkov (RETIRED) gentoo-dev 2010-07-22 19:56:19 UTC
This is a bug in kernel and headers. Here is a patch:

http://archives.free.net.ph/message/20100413.110647.ec33e197.ca.html

Better patch went upstream into 2.6.35-rc1:

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff_plain;h=a79ff731a1b277d0e92d9453bdf374e04cec717a;hp=b660d0485efeff743c72f1be2185832de8477a24

but since __ALIGN_MASK is still used in 2.6.34 sources we have to use the first patch referenced.
Comment 7 SpanKY gentoo-dev 2010-07-23 05:52:36 UTC
np with adding patches from mainline
Comment 8 Peter Volkov (RETIRED) gentoo-dev 2010-08-12 09:31:01 UTC
*** Bug 332153 has been marked as a duplicate of this bug. ***
Comment 9 Peter Volkov (RETIRED) gentoo-dev 2010-08-12 14:08:45 UTC
Mike, I've commited patch for this issue (patches/gentoo-headers/2.6.34). I've checked - glibc works with it and xtables-addons builds here. Could you review it?


@kernel: Could you review and apply this patch also?

http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/2.6.34/0010-make-XT_ALIGN-usable-in-exported-headers-by-exporting-__ALIGN_KERNEL.patch?rev=1.1&content-type=text/plain
Comment 10 Peter Volkov (RETIRED) gentoo-dev 2010-08-16 10:57:53 UTC
*** Bug 332579 has been marked as a duplicate of this bug. ***
Comment 11 SpanKY gentoo-dev 2010-08-23 09:25:18 UTC
included in 2.6.35

Peter: for future reference, cherry picks from mainline are fine.  if i'm not around, you may push those through.