Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93022 - (kernel) hardened-sources-2.6.11-r12 fails to build (gr_sec error?)
Summary: (kernel) hardened-sources-2.6.11-r12 fails to build (gr_sec error?)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
: 93045 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-17 20:39 UTC by Bertrand CHERRIER
Modified: 2005-05-18 03:23 UTC (History)
2 users (show)

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


Attachments
makefile.patch (makefile.patch,393 bytes, patch)
2005-05-17 21:13 UTC, Robert Paskowitz (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand CHERRIER 2005-05-17 20:39:58 UTC
The servers used are Opterons, AMD64 and Pentium4 all are using 3ware 8006
controlers. Latest Hardened Kernel fails to build at init/built-in.o with loads
of undefined reference to 'gr_everything'.
It did the same on a SeLinux enabled server (AMD64), on a simple hardened
(non-pax non selinux non gr_sec) server (Bi-Opterons), and on a gr_sec enabled
x86 (P4).

Reproducible: Always
Steps to Reproduce:
1.make menuconfig (and setup the kernel)
2.make
Actual Results:  
[...]
  LD      .tmp_vmlinux1
init/built-in.o(.text+0x171): In function `init':
: undefined reference to `grsecurity_init'
arch/x86_64/kernel/built-in.o(.text+0x4c52): In function `sys_ptrace':
: undefined reference to `gr_handle_ptrace'
arch/x86_64/ia32/built-in.o(.text+0x98ab): In function `elf_core_dump':
: undefined reference to `gr_learn_resource'
[...]
: undefined reference to `gr_handle_create'
make: *** [.tmp_vmlinux1] Error 1

Expected Results:  
told me the build was finished and my kernel was in arch :)

Portage 2.0.51.19 (hardened/amd64, gcc-3.4.3, glibc-2.3.4.20041102-r1,
2.6.11-hardened-r1 x86_64)
=================================================================
System uname: 2.6.11-hardened-r1 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May 12 2005, 14:53:21)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.9.5, 1.5, 1.8.5-r3, 1.7.9-r1, 1.6.3, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -pipe -fPIC -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -pipe -fPIC -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://gentoo.mls.nc/portage"
USE="amd64 apache2 berkdb crypt curl exiscan-acl gd hardened hardenedphp imap
innodb jpeg justify libwww multilib mysql ncurses nls pam perl pic png python
readline ssl tcpd userlocales vhosts xml2 zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY


I'm filling severity major, as this kernel is correcting a flaw.
Comment 1 Robert Paskowitz (RETIRED) gentoo-dev 2005-05-17 21:08:29 UTC
Confirmed.

None of the stuff in grsecurity/ is getting compiled. Looking into it a bit.
Comment 2 Robert Paskowitz (RETIRED) gentoo-dev 2005-05-17 21:13:01 UTC
Created attachment 59174 [details, diff]
makefile.patch

Patch to the top-level Makefile. Fixes compile issues.
Comment 3 Bertrand CHERRIER 2005-05-17 22:02:54 UTC
It's working like it should be thank you very much for your prompt answer !

Kernel: arch/x86_64/boot/bzImage is ready

Comment 4 BigBug 2005-05-18 00:20:56 UTC
Bug confirmed, patch work
Comment 5 BigBug 2005-05-18 00:23:12 UTC
Actually in original grsec patch - same makefile modification is done
Comment 6 John Mylchreest (RETIRED) gentoo-dev 2005-05-18 02:06:03 UTC
fixed in the tree under -r13.
My apologies - managed to mangle the makefile when editing the grsec patchset.
Comment 7 David Danier 2005-05-18 03:23:58 UTC
*** Bug 93045 has been marked as a duplicate of this bug. ***