Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57373 - LVM2 don't compile with linux26-headers-2.6.7-r3 - appCompat.patch
Summary: LVM2 don't compile with linux26-headers-2.6.7-r3 - appCompat.patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-17 03:51 UTC by Alexander Skwar
Modified: 2004-07-18 07:09 UTC (History)
0 users

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 Alexander Skwar 2004-07-17 03:51:22 UTC
With linux26-headers-2.6.7-r3 installed - or rather, with headers installed that got the appCompat.patch applied, I cannot compile LVM2. Error message very much like the one filed against raidtools in Bug #57096.

Reproducible: Always
Steps to Reproduce:
1. emerge linux26-headers
2. emerge lvm2

Actual Results:  
/usr/lib/ccache/bin/cc -c -I. -I../include -O3 -fomit-frame-pointer 
-march=athlon-xp -pipe -DLVM1_INTERNAL -DPOOL_INTERNAL 
-DCLUSTER_LOCKING_INTERNAL -DSNAPSHOT_INTERNAL -DMIRRORED_INTERNAL 
-DREADLINE_SUPPORT -DDEVMAPPER_SUPPORT -DO_DIRECT_SUPPORT -DCMDLIB 
-DHAVE_LIBDL -DHAVE_GETOPTLONG -DHAVE_RL_COMPLETION_MATCHES -fPIC -Wall 
-Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes 
-Wmissing-declarations -Wnested-externs -Winline -O3 -DINTL_PACKAGE=\"lvm2\" 
-DLOCALEDIR=\"/usr/share/locale\" device/device.c -o device/device.o 
In file included from /usr/include/linux/prefetch.h:14, 
                 from /usr/include/linux/list.h:5, 
                 from /usr/include/linux/wait.h:12, 
                 from /usr/include/linux/fs.h:12, 
                 from device/dev-io.c:34: 
/usr/include/asm/processor.h:406: error: Syntaxfehler before numeric constant 
/usr/include/asm/processor.h:406: error: `print_log' declared as function 
returning an array 
/usr/include/asm/processor.h:406: error: field `print_log' declared as a 
function 
/usr/include/asm/processor.h:494: error: Syntaxfehler before numeric constant 
In file included from /usr/include/linux/wait.h:12, 
                 from /usr/include/linux/fs.h:12, 
                 from device/dev-io.c:34: 
/usr/include/linux/list.h:64: error: conflicting types for `list_add' 
../include/list.h:33: error: previous declaration of `list_add' 
/usr/include/linux/list.h:160: error: conflicting types for `list_del' 
../include/list.h:55: error: previous declaration of `list_del' 
/usr/include/linux/list.h:234: error: conflicting types for `list_empty' 
../include/list.h:61: error: previous declaration of `list_empty' 
device/dev-io.c: In Funktion 
Comment 1 Alexander Skwar 2004-07-17 03:51:22 UTC
With linux26-headers-2.6.7-r3 installed - or rather, with headers installed that got the appCompat.patch applied, I cannot compile LVM2. Error message very much like the one filed against raidtools in Bug #57096.

Reproducible: Always
Steps to Reproduce:
1. emerge linux26-headers
2. emerge lvm2

Actual Results:  
/usr/lib/ccache/bin/cc -c -I. -I../include -O3 -fomit-frame-pointer 
-march=athlon-xp -pipe -DLVM1_INTERNAL -DPOOL_INTERNAL 
-DCLUSTER_LOCKING_INTERNAL -DSNAPSHOT_INTERNAL -DMIRRORED_INTERNAL 
-DREADLINE_SUPPORT -DDEVMAPPER_SUPPORT -DO_DIRECT_SUPPORT -DCMDLIB 
-DHAVE_LIBDL -DHAVE_GETOPTLONG -DHAVE_RL_COMPLETION_MATCHES -fPIC -Wall 
-Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes 
-Wmissing-declarations -Wnested-externs -Winline -O3 -DINTL_PACKAGE=\"lvm2\" 
-DLOCALEDIR=\"/usr/share/locale\" device/device.c -o device/device.o 
In file included from /usr/include/linux/prefetch.h:14, 
                 from /usr/include/linux/list.h:5, 
                 from /usr/include/linux/wait.h:12, 
                 from /usr/include/linux/fs.h:12, 
                 from device/dev-io.c:34: 
/usr/include/asm/processor.h:406: error: Syntaxfehler before numeric constant 
/usr/include/asm/processor.h:406: error: `print_log' declared as function 
returning an array 
/usr/include/asm/processor.h:406: error: field `print_log' declared as a 
function 
/usr/include/asm/processor.h:494: error: Syntaxfehler before numeric constant 
In file included from /usr/include/linux/wait.h:12, 
                 from /usr/include/linux/fs.h:12, 
                 from device/dev-io.c:34: 
/usr/include/linux/list.h:64: error: conflicting types for `list_add' 
../include/list.h:33: error: previous declaration of `list_add' 
/usr/include/linux/list.h:160: error: conflicting types for `list_del' 
../include/list.h:55: error: previous declaration of `list_del' 
/usr/include/linux/list.h:234: error: conflicting types for `list_empty' 
../include/list.h:61: error: previous declaration of `list_empty' 
device/dev-io.c: In Funktion »dev_open_flags«: 
device/dev-io.c:328: Warnung: Verarbeiten des Argumentes 1 von »list_add« von 
inkompatiblem Zeigertyp 
device/dev-io.c:328: Warnung: Verarbeiten des Argumentes 2 von »list_add« von 
inkompatiblem Zeigertyp 
device/dev-io.c: In Funktion »_close«: 
device/dev-io.c:357: Warnung: Verarbeiten des Argumentes 1 von »list_del« von 
inkompatiblem Zeigertyp 
make[1]: *** [device/dev-io.o] Fehler 1 
make[1]: *** Warte auf noch nicht beendete Prozesse... 
make[1]: Leaving directory `/usr/local/src/LVM2.2.00.20/lib' 
make: *** [lib] Fehler 2 
 

Expected Results:  
No error. 

When I uncomment the line "epatch ${FILESDIR}/${PN}-2.6.7-appCompat.patch" in 
linux26-headers-2.6.7-r3.ebuild, I can build LVM2 just fine.
Comment 2 Alexander Skwar 2004-07-17 07:10:57 UTC
Knoppix xorg # emerge info
Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040619-r0, 2.6.6)
=================================================================
System uname: 2.6.6 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.5.1
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -fomit-frame-pointer -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -fomit-frame-pointer -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://194.117.158.29"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X acl acpi adns alsa apache2 apm arts audiofile avi bcmath berkdb bindist bonobo bzlib cdr crypt cscope cups curl curlwrappers divx4linux encode esd ethereal evo exif fam foomaticdb ftp gd gdbm gif gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml iconv imagemagick imap imlib inifile javascript jpeg kde libedit libg++ libwww linguas_de lzw-tiff mad maildir mailwrapper matrox mbox mmap mmx motif mozilla mpeg ncurses nls nptl offensive oggvorbis opengl oss pam pcntl pcre pdflib perl pic png posix ppds python qt quicktime readline recode samba sasl sdl shared slang sockets spell sse ssl svg sysvipc tcpd theora tiff truetype unicode usb videos x86 xml2 xmms xv xvid zlib"
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2004-07-18 05:30:00 UTC
Should now be fixed - sync, remerge your linux26-headers making sure that files/linux26-headers-2.6.7-appCompat.patch has an MD5 hash of 2e7a6080afc1b2fea56740690790d878 and LVM2 should compile without any issues. If you still have problems with LVM2 compiling on linux26-headers, please reopen this bug. Thanks!
Comment 4 Alexander Skwar 2004-07-18 07:09:31 UTC
Confirming: LVM2 compiles fine with the new appCompat.patch.
Shouldn't there be a version increase in linux26-headers, so that everyone gets that patch?