Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29364 - pfeifer-2.4.22-r2 sources fails to compile with device mapper compiled in; missing symbols
Summary: pfeifer-2.4.22-r2 sources fails to compile with device mapper compiled in; mi...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Brian Jackson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-22 13:02 UTC by Simon Farnsworth
Modified: 2003-10-23 08:44 UTC (History)
1 user (show)

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


Attachments
My .config for the kernel; disabling device mapper allows it to compile (.config,26.92 KB, text/plain)
2003-09-22 14:44 UTC, Simon Farnsworth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Farnsworth 2003-09-22 13:02:10 UTC
I am trying to compile pfeifer-2.4.22-r2 sources as a 2.4 fallback if 2.6 does 
not work, and so I need device-mapper to access my LVM volumes (root, home) 
 
However, make bzImage fails at the link step with the following errors: 
 
gcc -E -C -P -I/usr/src/linux-2.4.22-pfeifer-r2/include -imacros /usr/src/
linux-2.4.22-pfeifer-r2/include/linux/config.h -imacros /usr/src/
linux-2.4.22-pfeifer-r2/include/asm-i386/segment.h -imacros /usr/src/
linux-2.4.22-pfeifer-r2/include/asm-i386/page_offset.h -Ui386 arch/i386/
vmlinux.lds.S >arch/i386/vmlinux.lds 
ld -m elf_i386 -T /usr/src/linux-2.4.22-pfeifer-r2/arch/i386/vmlinux.lds -e 
stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/
version.o init/do_mounts.o \ 
        --start-group \ 
        arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o 
fs/fs.o ipc/ipc.o \ 
         drivers/acpi/acpi.o drivers/char/char.o drivers/block/block.o 
drivers/misc/misc.o drivers/net/net.o drivers/char/agp/agp.o drivers/char/drm/
drm.o drivers/ide/idedriver.o drivers/cdrom/driver.o drivers/pci/driver.o 
drivers/video/video.o drivers/usb/usbdrv.o drivers/media/media.o drivers/md/
mddev.o crypto/crypto.o drivers/sensors/sensor.o \ 
        net/network.o \ 
        grsecurity/grsec.o \ 
        /usr/src/linux-2.4.22-pfeifer-r2/arch/i386/lib/lib.a /usr/src/
linux-2.4.22-pfeifer-r2/lib/lib.a /usr/src/linux-2.4.22-pfeifer-r2/arch/i386/
lib/lib.a \ 
        --end-group \ 
        -o vmlinux 
drivers/md/mddev.o(.text+0x8cf3): In function `lookup_device': 
: undefined reference to `path_init' 
drivers/md/mddev.o(.text+0xfaf4): In function `do_page': 
: undefined reference to `generic_fls' 
make: *** [vmlinux] Error 1 
 
Removing device mapper from the kernel configuration fixes the problem. 

Reproducible: Always
Steps to Reproduce:
1. emerge pfeifer-sources 
2. Configure kernel with device-mapper 
3. make bzImage 
Actual Results:  
Failed to link bzImage 

Expected Results:  
Compiled a new kernel. 

Portage 2.0.49-r5 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 
2.4.22-pre6-ac1) 
================================================================= 
System uname: 2.4.22-pre6-ac1 i686 AMD Athlon(tm) XP 
ccache version 2.2 [enabled] 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-Os -march=athlon-xp -mfpmath=sse -msse -mmmx -m3dnow -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/
share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/
texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/
config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-Os -march=athlon-xp -mfpmath=sse -msse -mmmx -m3dnow -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs sandbox ccache prelink fixpackages" 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/
Linux/distributions/gentoo" 
MAKEOPTS="-j2 -s" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="oss apm foomaticdb gnome libg++ mad mikmod nls gtkhtml gdbm berkdb tetex 
bonobo svga tcltk guile gpm tcpd libwww esd imlib gtk motif 3dnow acpi 
acpi4linux alsa arts artswrappersuid avi cdr crypt cups dga doc dvb dvd encode 
gd gif imap ipv6 java jpeg kde kerberos ldap mmx mozilla mpeg mule music mysql 
ncurses offensive oggvorbis opengl pam pda pdflib perl pic png postgres python 
qt quicktime radeon readline samba scanner sdl slang spell sse ssl tiff 
truetype usb v4l wmf X xml xml2 xmms xv zlib x86"
Comment 1 Simon Farnsworth 2003-09-22 14:44:24 UTC
Created attachment 18158 [details]
My .config for the kernel; disabling device mapper allows it to compile
Comment 2 Simon Farnsworth 2003-10-06 13:46:20 UTC
I've now had more chance to investigate; it's a regression since pfeifer-sources-2.4.22-r1,
as it compiles there with the same .config
Comment 3 Simon Farnsworth 2003-10-06 13:57:22 UTC
Correction; it doesn't work in r1 or r0; the same error occurs. Brainfart,
I'm afraid :(
Comment 4 Brian Jackson (RETIRED) gentoo-dev 2003-10-23 08:44:04 UTC
Can you try gentoo-test-sources (which is what pfeifer-sources has become).
File any bugs (even if it's the same thing) as new, so I can track them as
gentoo-test-sources.