Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172561 - hardened-sources-2.6.20: Compile/Linking-Error on vmlinux
Summary: hardened-sources-2.6.20: Compile/Linking-Error on vmlinux
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-28 14:42 UTC by Joe User
Modified: 2007-04-05 07:07 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe User 2007-03-28 14:42:04 UTC
Compiling hardened-sources-2.6.20 ends with a compile/linking-error on vmlinux

Reproducible: Always

Steps to Reproduce:
1.zcat /proc/config.gz > .config
2.make oldconfig
3.make

Actual Results:  
  LD      vmlinux
arch/i386/mm/built-in.o: In function `do_page_fault':
(.text+0xa2d): undefined reference to `__flush_tlb_one'
make: *** [vmlinux] Error 1


Expected Results:  
No compile/linking-error.

Hi,

just upgraded to hardened-sources-2.6.20 and got following error on compiling the kernel:


gentoo ~ # cd /usr/src/linux
gentoo linux # make mrproper
gentoo linux # zcat /proc/config.gz > .config
gentoo linux # make oldconfig
gentoo linux # make && make install
[...skip...]
  CC      arch/i386/mm/fault.o
arch/i386/mm/fault.c: In function `do_page_fault':
arch/i386/mm/fault.c:483: warning: implicit declaration of function `__flush_tlb_one'
[...skip...]
  CC      mm/page_alloc.o
mm/page_alloc.c: In function `__free_one_page':
mm/page_alloc.c:387: warning: unused variable `index'
[...skip...]
  LD      vmlinux
arch/i386/mm/built-in.o: In function `do_page_fault':
(.text+0xa2d): undefined reference to `__flush_tlb_one'
make: *** [vmlinux] Error 1

gentoo linux # emerge --info
Portage 2.1.2.2 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r5, 2.6.19-hardened-r6 i686)
=================================================================
System uname: 2.6.19-hardened-r6 i686 Intel(R) Celeron(R) CPU 2.40GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 28 Mar 2007 09:30:01 +0000
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=pentium4 -mtune=pentium4 -momit-leaf-frame-pointer -fomit-frame-pointer -fforce-addr -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=pentium4 -mtune=pentium4 -momit-leaf-frame-pointer -fomit-frame-pointer -fforce-addr -ftracer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.mesh-solutions.com/gentoo ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo http://distfiles.gentoo.org"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl berkdb bzip2 caps cgi cli cracklib crypt dlloader erandom expat fam fastcgi ftp gd geoip glibc-omitfp gmp gzip hardened hash iconv idn imap ithreads jpeg libwww logrotate maildir md5sum memlimit mhash mime mmap mysql mysqli ncurses nls no-old-linux nocd nptl nptlonly pam pcre perl pic png posix pwdb python readline sasl sharedmem sockets sse2 ssl symlink sysfs sysvipc tcl tcpd threads tiff truetype ucs2 udev unicode urandom userlocales utf8 x86 xml xml2 xmlrpc xsl zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

gentoo linux #

Kernelconfig: http://www.mkwebs.info/joeuser/gentoo/config-2.6.20-hardened

Any suggestions?

Regards,
Joe User
Comment 1 Christian Heim (RETIRED) gentoo-dev 2007-03-28 17:55:06 UTC
Adding pipacs, as this isn't fixed with the new snapshot.
Comment 2 PaX Team 2007-03-28 20:11:08 UTC
(In reply to comment #1)
> Adding pipacs, as this isn't fixed with the new snapshot.

what's in that new snapshot? i think i've fixed this bug already, check out the latest test patch please (and it should also be in grsec by now).
Comment 3 Christian Heim (RETIRED) gentoo-dev 2007-04-05 07:07:55 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Adding pipacs, as this isn't fixed with the new snapshot.
> 
> what's in that new snapshot? i think i've fixed this bug already, check out the
> latest test patch please (and it should also be in grsec by now).

Yeah, you are right :) It is fixed with Brad's latest snapshot (200704021831).