Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42101 - gentoo-2.4.20-r13 has undefined reference to proc_mm_get_mm in sys_ptrace
Summary: gentoo-2.4.20-r13 has undefined reference to proc_mm_get_mm in sys_ptrace
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
: 42137 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-18 17:58 UTC by Holly
Modified: 2004-02-19 11:14 UTC (History)
1 user (show)

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


Attachments
the kernel config which produces the described error (kernel-config,24.94 KB, text/plain)
2004-02-18 17:59 UTC, Holly
Details
Patch (gentoo-sources-2.4.20-gentoo-r11-fix-proc-mm.patch,773 bytes, patch)
2004-02-19 09:32 UTC, Tim Yamin (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Holly 2004-02-18 17:58:44 UTC
make bzImage complains about an undefined reference to "proc_mm_get_mm" in function "sys_ptrace".
i'll append the kernel .config soon.
the config is the same as i used with -r10. i just ran "make oldconfig" and went on with "make dep && make clean bzImage modules modules_install".

Reproducible: Always
Steps to Reproduce:
1. make bzImage
2.
3.

Actual Results:  
gcc -E -C -P -I/usr/src/linux-2.4.20-gentoo-r13/include -imacros /usr/src/linux-
S >arch/i386/vmlinux.lds
ld -m elf_i386 -T /usr/src/linux-2.4.20-gentoo-r13/arch/i386/vmlinux.lds -e stex
n.o init/do_mounts.o \
        --start-group \
        arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/f
         drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/n
drivers/cdrom/driver.o drivers/pci/driver.o drivers/pnp/pnp.o drivers/video/vide
        crypto/crypto.o \
        net/network.o \
        grsecurity/grsec.o \
        /usr/src/linux-2.4.20-gentoo-r13/arch/i386/lib/lib.a /usr/src/linux-2.4.
        --end-group \
        -o vmlinux
arch/i386/kernel/kernel.o(.text+0x6b21): In function `sys_ptrace':
: undefined reference to `proc_mm_get_mm'
make: *** [vmlinux] Error 1


Expected Results:  
guess what ;)

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.20-gentoo-r10)
=================================================================
System uname: 2.4.20-gentoo-r10 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.4.3.13
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -mmmx -m3dnow"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -mmmx -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.mirror.sdv.fr http://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow acpi apache2 apm berkdb cjk crypt curl dedicated doc flash freetds gd
gd-external gdbm gif imap imlib innodb ipv6 java javascript jpeg libg++ libwww
maildir mcal mmx mysql ncurses nls odbc pam pdflib perl png pnp python readline
sasl slang spell sse ssl tcltk tcpd tiff truetype wmf x86 xml2 zlib"
Comment 1 Holly 2004-02-18 17:59:59 UTC
Created attachment 25900 [details]
the kernel config which produces the described error
Comment 2 Oliver Walter 2004-02-19 07:17:57 UTC
*** Bug 42137 has been marked as a duplicate of this bug. ***
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2004-02-19 08:48:38 UTC
If you enable CONFIG_PROC_MM it should go away.
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2004-02-19 09:32:09 UTC
Created attachment 25929 [details, diff]
Patch

This should solve it, the other option is to enable CONFIG_PROC_MM or to apply
this patch. If you could confirm this works, I'll add this to
gentoo-sources-2.4.20-r12 along with the grsec fix. Thanks.
Comment 5 Oliver Walter 2004-02-19 10:07:38 UTC
- enable CONFIG_PROC_MM: works
- disable CONFIG_PROC_MM and apply patch: works
Thanks!
Comment 6 Tim Yamin (RETIRED) gentoo-dev 2004-02-19 11:14:19 UTC
Fixed in CVS in -r13 along with #42141, should hit Portage within an hour. Thanks.