Dumb (well known I hope) symbol problem
Hi folks,
I have just downloaded the CVS source tree of LVM and I'm still wondering why I can't compile the module/compiled-in version. I have the Linus-2.4.0 source tree in /var/tmp and I'm not root ('cause I'm not the owner of this --quick-- machine and compiling the source in my P90 would be too much). The following symbols appear to be missing after running ./configure with --with-kernel_dir=/var/tmp/linux, applied the patch to the source and tried to compile as usual:
drivers/md/mddev.o: In function lvm_init_fs' drivers/md/mddev.o: In function lvm_fin_fs' drivers/md/mddev.o: In function lvm_fs_create_vg' drivers/md/mddev.o: In function lvm_fs_remove_vg' drivers/md/mddev.o(.text+0x2221): undefined reference to lvm_do_vg_remove':
drivers/md/mddev.o(.text+0x228b): undefined reference to lvm_do_pv_create':
drivers/md/mddev.o(.text+0x245f): undefined reference to lvm_do_pv_remove':
drivers/md/mddev.o(.text+0x2488): undefined reference to lvm_do_lv_create':
drivers/md/mddev.o(.text+0x2d79): undefined reference to lvm_do_lv_remove':
drivers/md/mddev.o(.text+0x2ea7): undefined reference to lvm_do_lv_rename':
drivers/md/mddev.o(.text+0x3de6): undefined reference to lvm_fs_create_lv'
make: *** [vmlinux] Error 1
I promise that's the last time I ask such a thing; it really screws me up not being able to have a decent beta7 kernel!
Thanks & cheers,
--
------------------------------------------------------------------------
David Vidal R. (vidalrod <at> in DOT tum DOT de)
It looks like the patch didn't build correctly. Did you specify the location of your source code with 'configure --with-kernel_dir=DIR' ?
If not make distclean in the LVM dir and start again.
- Joe
Quoted 44 lines · David Vidal Rodriguez
Hi folks,
I have just downloaded the CVS source tree of LVM and I'm still wondering why I can't compile the module/compiled-in version. I have the Linus-2.4.0 source tree in
/var/tmpand I'm not root ('cause I'm not the owner of this --quick-- machine and compiling the source in my P90 would be too much). The following symbols appear to be missing after running ./configure with --with-kernel_dir=/var/tmp/linux, applied the patch to the source and tried to compile as usual:
drivers/md/mddev.o: In functionlvm_init_fs'drivers/md/mddev.o: In functionlvm_fin_fs'drivers/md/mddev.o: In functionlvm_fs_create_vg'drivers/md/mddev.o: In functionlvm_fs_remove_vg' drivers/md/mddev.o(.text+0x2221): undefined reference tolvm_do_vg_remove':
drivers/md/mddev.o(.text+0x228b): undefined reference tolvm_do_pv_create':
drivers/md/mddev.o(.text+0x245f): undefined reference tolvm_do_pv_remove':
drivers/md/mddev.o(.text+0x2488): undefined reference tolvm_do_lv_create':
drivers/md/mddev.o(.text+0x2d79): undefined reference tolvm_do_lv_remove':
drivers/md/mddev.o(.text+0x2ea7): undefined reference tolvm_do_lv_rename':
drivers/md/mddev.o(.text+0x3de6): undefined reference tolvm_fs_create_lv'
make: *** [vmlinux] Error 1I promise that's the last time I ask such a thing; it really screws me up not being able to have a decent beta7 kernel!
Thanks & cheers,
--
------------------------------------------------------------------------
David Vidal R. (vidalrod <at> in DOT tum DOT de)_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
Quoted 2 lines · Joe Thornber
It looks like the patch didn't build correctly. Did you specify the location of your source code with 'configure --with-kernel_dir=DIR' ?
As mentioned in my original posting, I specified the --with-kernel_dir flag with my current linux source tree, ie:/var/tmp/linux
I'm starting from the beginning again, though, and following each instruction carefully. I'll let you know of any issues.
--
------------------------------------------------------------------------
David Vidal R. (vidalrod <at> in DOT tum DOT de)
David,
this looks like a missing LVM kernel patch.
Did you follow the instructions contained in the INSTALL and PATCHES/README files in order to update the LVM kernel code?
We are working on updating vanilla to the recent LVM code, but up to 2.4.4 you still need to apply a patch which comes with the LVM distribution.
Regards,
Heinz -- The LVM Guy --
Quoted 40 lines · David Vidal Rodriguez
Hi folks,
I have just downloaded the CVS source tree of LVM and I'm still wondering why I can't compile the module/compiled-in version. I have the Linus-2.4.0 source tree in
/var/tmpand I'm not root ('cause I'm not the owner of this --quick-- machine and compiling the source in my P90 would be too much). The following symbols appear to be missing after running ./configure with --with-kernel_dir=/var/tmp/linux, applied the patch to the source and tried to compile as usual:
drivers/md/mddev.o: In functionlvm_init_fs'drivers/md/mddev.o: In functionlvm_fin_fs'drivers/md/mddev.o: In functionlvm_fs_create_vg'drivers/md/mddev.o: In functionlvm_fs_remove_vg' drivers/md/mddev.o(.text+0x2221): undefined reference tolvm_do_vg_remove':
drivers/md/mddev.o(.text+0x228b): undefined reference tolvm_do_pv_create':
drivers/md/mddev.o(.text+0x245f): undefined reference tolvm_do_pv_remove':
drivers/md/mddev.o(.text+0x2488): undefined reference tolvm_do_lv_create':
drivers/md/mddev.o(.text+0x2d79): undefined reference tolvm_do_lv_remove':
drivers/md/mddev.o(.text+0x2ea7): undefined reference tolvm_do_lv_rename':
drivers/md/mddev.o(.text+0x3de6): undefined reference tolvm_fs_create_lv'
make: *** [vmlinux] Error 1I promise that's the last time I ask such a thing; it really screws me up not being able to have a decent beta7 kernel!
Thanks & cheers,
--
------------------------------------------------------------------------
David Vidal R. (vidalrod <at> in DOT tum DOT de)
Quoted 4 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
So what's the difference between patching -p0 at /usr/src and patching -p1 at /usr/src/linux?? Now it's compiling successfully (Gott sei dank!)!
Thanks for the hint (which is what I should have done from the beginning: read _carefully_ and _completely_)...
--
------------------------------------------------------------------------
David Vidal R. (vidalrod <at> in DOT tum DOT de)
Bad news:
I had posted the last message after having compiled the "critical" zone. But now it complains just at the final stage, when the kernel is built:
------------------------------------------------------------------------
ld -m elf_i386 -T /var/tmp/linux/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o \
--start-group \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.ofs/fs.o ipc/ipc.o \
drivers/block/block.o drivers/char/char.o drivers/misc/misc.odrivers/net/net.o drivers/media/media.o drivers/char/drm/drm.o drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/cdrom/driver.o drivers/sound/sounddrivers.o drivers/pci/driver.o drivers/video/video.o
drivers/usb/usbdrv.o drivers/input/inputdrv.o drivers/md/mddev.o \
net/network.o \
/var/tmp/linux/arch/i386/lib/lib.a /var/tmp/linux/lib/lib.a
/var/tmp/linux/arch/i386/lib/lib.a \
--end-group \
-o vmlinuxdrivers/md/mddev.o: In function `lvm_init':
drivers/md/mddev.o(.text+0x91): undefined reference to lvm_init_fs' drivers/md/mddev.o: In function lvm_cleanup':
drivers/md/mddev.o(.text+0x1fe): undefined reference to lvm_fin_fs' drivers/md/mddev.o: In function lvm_do_vg_create':
drivers/md/mddev.o(.text+0x1b05): undefined reference to lvm_fs_create_vg' drivers/md/mddev.o: In function lvm_do_vg_rename':
drivers/md/mddev.o(.text+0x204d): undefined reference to lvm_fs_remove_vg' drivers/md/mddev.o(.text+0x2221): undefined reference to lvm_fs_create_vg' drivers/md/mddev.o: In function `lvm_do_vg_remove':
drivers/md/mddev.o(.text+0x228b): undefined reference to lvm_fs_remove_vg' drivers/md/mddev.o: In function lvm_do_pv_create':
drivers/md/mddev.o(.text+0x245f): undefined reference to lvm_fs_create_pv' drivers/md/mddev.o: In function lvm_do_pv_remove':
drivers/md/mddev.o(.text+0x2488): undefined reference to lvm_fs_remove_pv' drivers/md/mddev.o: In function lvm_do_lv_create':
drivers/md/mddev.o(.text+0x2d79): undefined reference to lvm_fs_create_lv' drivers/md/mddev.o: In function lvm_do_lv_remove':
drivers/md/mddev.o(.text+0x2ea7): undefined reference to lvm_fs_remove_lv' drivers/md/mddev.o: In function lvm_do_lv_rename':
drivers/md/mddev.o(.text+0x3de6): undefined reference to lvm_fs_remove_lv' drivers/md/mddev.o(.text+0x3e06): undefined reference to lvm_fs_create_lv'
make: *** [vmlinux] Error 1
--
------------------------------------------------------------------------
David Vidal R. (vidalrod <at> in DOT tum DOT de)
http://dvr.ismad.com
"Ein Computer ohne Windows ist wie ein Fisch ohne Fahrrad."
Mail me the lvm patch and the LVM/PATCHES/Makefile please.
- Joe
Quoted 57 lines · David Vidal Rodriguez
Bad news:
I had posted the last message after having compiled the "critical" zone. But now it complains just at the final stage, when the kernel is built:------------------------------------------------------------------------
ld -m
elf_i386-T/var/tmp/linux/arch/i386/vmlinux.lds-e stextarch/i386/kernel/head.oarch/i386/kernel/init_task.oinit/main.oinit/version.o\--start-group \ arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o
fs/fs.oipc/ipc.o\
drivers/block/block.odrivers/char/char.odrivers/misc/misc.odrivers/net/net.odrivers/media/media.odrivers/char/drm/drm.odrivers/ide/idedriver.odrivers/scsi/scsidrv.odrivers/cdrom/driver.odrivers/sound/sounddrivers.odrivers/pci/driver.odrivers/video/video.odrivers/usb/usbdrv.o drivers/input/inputdrv.o drivers/md/mddev.o \ net/network.o \ /var/tmp/linux/arch/i386/lib/lib.a /var/tmp/linux/lib/lib.a /var/tmp/linux/arch/i386/lib/lib.a \ --end-group \ -o vmlinux
drivers/md/mddev.o: In function `lvm_init':
drivers/md/mddev.o(.text+0x91): undefined reference tolvm_init_fs' drivers/md/mddev.o: In functionlvm_cleanup':
drivers/md/mddev.o(.text+0x1fe): undefined reference tolvm_fin_fs' drivers/md/mddev.o: In functionlvm_do_vg_create':
drivers/md/mddev.o(.text+0x1b05): undefined reference tolvm_fs_create_vg' drivers/md/mddev.o: In functionlvm_do_vg_rename':
drivers/md/mddev.o(.text+0x204d): undefined reference tolvm_fs_remove_vg' drivers/md/mddev.o(.text+0x2221): undefined reference tolvm_fs_create_vg'drivers/md/mddev.o: In function `lvm_do_vg_remove':
drivers/md/mddev.o(.text+0x228b): undefined reference tolvm_fs_remove_vg' drivers/md/mddev.o: In functionlvm_do_pv_create':
drivers/md/mddev.o(.text+0x245f): undefined reference tolvm_fs_create_pv' drivers/md/mddev.o: In functionlvm_do_pv_remove':
drivers/md/mddev.o(.text+0x2488): undefined reference tolvm_fs_remove_pv' drivers/md/mddev.o: In functionlvm_do_lv_create':
drivers/md/mddev.o(.text+0x2d79): undefined reference tolvm_fs_create_lv' drivers/md/mddev.o: In functionlvm_do_lv_remove':
drivers/md/mddev.o(.text+0x2ea7): undefined reference tolvm_fs_remove_lv' drivers/md/mddev.o: In functionlvm_do_lv_rename':
drivers/md/mddev.o(.text+0x3de6): undefined reference tolvm_fs_remove_lv' drivers/md/mddev.o(.text+0x3e06): undefined reference tolvm_fs_create_lv'
make: *** [vmlinux] Error 1--
------------------------------------------------------------------------
David Vidal R. (vidalrod <at> in DOT tum DOT de)
http://dvr.ismad.com
"Ein Computer ohne Windows ist wie ein Fisch ohne Fahrrad."_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm