Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90455 - sys-fs/lvm2 fails to emerge: conflicting types for `list_empty'
Summary: sys-fs/lvm2 fails to emerge: conflicting types for `list_empty'
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
: 93663 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-25 19:55 UTC by Douglas R. Hoffman
Modified: 2005-08-26 11:54 UTC (History)
3 users (show)

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 Douglas R. Hoffman 2005-04-25 19:55:40 UTC
When I emerge LVM2 i get an errour regarding previous declaration of list_empty

Reproducible: Always
Steps to Reproduce:
 1. explode stage1
 2. copy over resolve.conf
 3. chroot
 4. tweak make.conf
 5. export FEATURES="-buildpkg"
 6. USE="-*" emerge --oneshot --nodeps ccache
 7. USE="-*" emerge dev-lang/icc
 8. install my icc license file
 9. cd /usr/portage/ && scripts/bootstrap.sh
10. emerge --emptytree system (as per handbook)
11. emerge sys-boot/grub app-admin/syslog-ng sys-fs/reiserfsprogs sys-fs/lvm2
12. error hits when lvm2 is emerged...
Actual Results:  

configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
configure: WARNING: Disabling selinux
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:44: error: conflicting types for `list_empty'
../include/list.h:61: error: previous declaration of `list_empty'
make[1]: *** [device/dev-io.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [lib] Error 2


Expected Results:  
Should compile without issue

My emerge info:

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr 26 2005, 00:22:12)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.ce.rit.edu/gentoo http://128.213.5.34/gentoo/
http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X alsa apm avi berkdb cdr crypt cups divx4linux encode esd fbcon gif gpm
gtk gtk2 icc imlib java jpeg kde libg++ libwww mad mbox mikmod mmx mmx2 motif
mozilla mpeg mysql ncurses nptl opengl pam perl png python quicktime readline
real samba sdl slang spell sqlite sse sse2 ssl tcpd tetex threads truetype usb
x86 xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Kyle Williams 2005-04-26 12:35:40 UTC
I am having the same exact problem on a x86 machine. I can't continue with my install until I can resolve this. 
Comment 2 Kyle Williams 2005-04-26 22:02:27 UTC
According to this thread http://forums.gentoo.org/viewtopic-t-329589-highlight-keywords.html
updating your headers should fix it.

run this command

echo "sys-kernel/linux-headers ~x86" >> /etc/portage/package.keywords && emerge linux-headers
Comment 3 Douglas R. Hoffman 2005-04-27 01:58:24 UTC
ah, i have 2.6.8-r2 headers working fine with lvm2...  however the newly updated 2.6.8.1-r2 are not lvm2 happy.  This problem *appears* to have the same root symptoms as bug#86968 (i.e. empty_list)

Regardless, the standard install does not currently work and I assume there is a good reason 2.6.8.1=r4 is still masked for all processors except amd64...
Comment 4 SpanKY gentoo-dev 2005-04-27 05:56:25 UTC
try 2.6.11 headers
Comment 5 Joshua Hoblitt 2005-04-28 13:51:49 UTC
I can confirm that this issue also occurs on amd64 and that upgrading to sys-kernel/linux-headers-2.6.11 resolved the issue.

Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.8-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.8-gentoo-r6 x86_64 AMD Opteron(tm) Processor 248
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr 27 2005, 17:11:19)]
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.4-r1
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox strict"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/ ftp://ibiblio.org/pub/Linux/distributions/gentoo/"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa arts berkdb bitmap-fonts crypt cups curl esd fam font-server fortran gd gdbm gif gnome gnome2 gpm gstreamer gtk gtk2 imlib ipv6 jp2 jpeg ldap libwww lzw lzw-tiff motif mp3 mysql ncurses nls nptl ogg opengl oss pam perl png python readline ssl tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts usb userlocales vorbis xml2 xpm xrandr xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 6 Tim Yamin (RETIRED) gentoo-dev 2005-04-29 10:38:46 UTC
Closing as fixed - either upgrade to 2.6.11 or emerge sync and re-merge 2.6.8.1 headers; please reopen if issue still exists in 2.6.8.1 after sync and remerge. Thanks.
Comment 7 Douglas R. Hoffman 2005-04-29 21:01:29 UTC
I reluctantly upgraded to 2.6.11 tonight and LVM2 compiles just swimmingly.  Thanks for the Advice and Time.
Comment 8 SpanKY gentoo-dev 2005-05-23 05:57:14 UTC
*** Bug 93663 has been marked as a duplicate of this bug. ***
Comment 9 Carlos Silva (RETIRED) gentoo-dev 2005-08-26 11:54:59 UTC
Changing to CLOSE