lvm2 2.00.15 cannot be compiled with linux 2.6.7 due to some naming conflicts between internal structs/macro and the kernel includes. This patch will fix the conflict an make lvm2 buildable.
Created attachment 35295 [details, diff] patch for the ebuild
Created attachment 35296 [details, diff] paatch against lvm2 sources
FWIW, both lvm2-2.00.15 and lvm2-2.00.20 compiled fine on my vanilla 2.6.7 box. polly root # vgs --version LVM version: 2.00.20 (2004-07-03) Library version: 1.00.17-ioctl (2004-04-19) Driver version: 4.1.0 polly root # uname -a Linux polly.a.la.maison 2.6.7 #1 SMP Sun Jul 4 14:02:31 CEST 2004 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux
I think that LVM get compiled using virtual/os-headers. Are you using linux26-headers? I just synched my portage this night but I don't have an ebuild for sys-fs/lvm2-2.00.20, how can I get and test it? This is my configuration and without the patch I cannot build lvm2: sargas root # vgs --version LVM version: 2.00.15 (2004-04-19) Library version: 1.00.17-ioctl (2004-04-19) Driver version: 4.1.0 sargas root # uname -a Linux sargas 2.6.7-gentoo-r8 #1 SMP Wed Jul 7 23:45:44 CEST 2004 i686 Pentium III (Katmai) GenuineIntel GNU/Linux sargas root # ls -l /var/db/pkg/sys-kernel/ total 8 drwxr-xr-x 2 root root 4096 Jul 7 22:53 gentoo-dev-sources-2.6.7-r8 drwxr-xr-x 2 root root 4096 Jul 12 13:36 linux26-headers-2.6.7-r1 sargas root # emerge info Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-gentoo-r8) ================================================================= System uname: 2.6.7-gentoo-r8 i686 Pentium III (Katmai) Gentoo Base System version 1.4.16 distcc 2.13 i686-altarisoluzione-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" CHOST="i686-altarisoluzione-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache distcc fixpackages sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j7" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm arts avi berkdb bonobo cdr crypt cups dga encode esd foomaticdb gcj gdbm gif gpm gtk gtk2 gtkhtml guile imlib java jpeg kde libg++ libwww mad mailwrapper mbox mikmod milter mmx motif mozilla mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sasl sdl slang spell sse ssl tcpd truetype x86 xinerama xml2 xmms xv zlib" sargas root #
Still using old headers. To grab the 2.00.20 version, just rename the ebuild.
I just upgraded the box to the latest ~x86 packages + vanilla-2.6.8-rc1. No problem at all, so far. lvm2 v20 compiled and booted OK moose root # emerge -vp glibc linux26-headers lvm2 These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] sys-libs/glibc-2.3.4.20040619 -build -debug -debug -erandom -hardened -makecheck -multilib +nls +nptl +pic 0 kB [ebuild R ] sys-kernel/linux26-headers-2.6.6-r1 -build 0 kB [ebuild R ] sys-fs/lvm2-2.00.20 0 kB
linux26-headers-2.6.7-$latest works fine here, and there is no need for a clunky patch. Please reopen this bug if you still have any issues. Thanks!