Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115708 - Conflicting definitions in <include/bitops.h>
Summary: Conflicting definitions in <include/bitops.h>
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC Linux
: High minor (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
: 115487 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-12-15 15:13 UTC by David Gurvich
Modified: 2005-12-22 14:59 UTC (History)
2 users (show)

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


Attachments
MAKEOPTS="-j1" USE="gpm" emerge ncurses >& log && tail -n 36 log (error.log,2.37 KB, text/plain)
2005-12-15 21:25 UTC, David Gurvich
Details
same error in recompiling xorg-x11 (xorg-error.log,9.71 KB, text/plain)
2005-12-15 22:29 UTC, David Gurvich
Details
net-tools error log, using 2.6.14.4 for headers. (net_tools.log,1.50 KB, text/plain)
2005-12-20 22:11 UTC, David Gurvich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Gurvich 2005-12-15 15:13:02 UTC
linux-headers-2.6.11-r2/r3 bitops.h conflicts with the definition of "ffs" found
in many packages. Am able to compile packages that can exclude gpm.  eg ncurses

Reproducible: Always
Steps to Reproduce:
1.emerge ncurses
2.
3.

Actual Results:  
Failed with error message about conflict between the definition of ffs in
<include/bitops.h> and the one located in ncurses.  


Portage 2.0.53 (default-linux/ppc/2005.0, gcc-4.1.0-beta20051209,
glibc-2.3.6-r1, 2.6.14-gentoo-r2 ppc)
=================================================================
System uname: 2.6.14-gentoo-r2 ppc 7455, altivec supported
Gentoo Base System version 1.12.0_pre10
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /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="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.mirrors.tds.net/gentoo
http://distro.ibiblio.org/pub/linux/distributions/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X aac alsa altivec apache2 arts audiofile berkdb bidi bitmap-fonts
bonobo bzip2 cairo cdda cdr cjk crypt cups curl dbus doc dvd dvdr dvdread eds
emboss esd exif expat fam fbcon ffmpeg flac foomaticdb fortran gd gdbm ggi gif
glut gmp gnutls gpm gstreamer gtk gtk2 guile hal howl idn imagemagick imlib ipv6
jack java jpeg junit kde lcms libwww live lua mad matroska mikmod mng motif
mozilla mp3 mpeg multislot ncurses nls nntp nptl nptlonly ogg oggvorbis openal
opengl oss pam pcre pdflib perl pic png ppds python qt readline samba scanner
sdl slang smp snmp spell ssl stream tcltk tcpd tetex theora tiff truetype
truetype-fonts type1-fonts udev unicode usb vorbis wmf xine xml xml2 xmms xosd
xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Zac Medico gentoo-dev 2005-12-15 15:17:08 UTC
Not a sys-apps/portage bug.
Comment 2 SpanKY gentoo-dev 2005-12-15 15:27:27 UTC
"many packages" doesnt describe much

post some actual error output
Comment 3 David Gurvich 2005-12-15 21:25:22 UTC
Created attachment 74853 [details]
MAKEOPTS="-j1" USE="gpm" emerge ncurses >& log && tail -n 36 log
Comment 4 David Gurvich 2005-12-15 22:29:11 UTC
Created attachment 74856 [details]
same error in recompiling xorg-x11
Comment 5 David Gurvich 2005-12-15 22:53:31 UTC
xorg-x11 seems to have no problem once dmx is unset.
Comment 6 David Gurvich 2005-12-16 06:01:50 UTC
(In reply to comment #5)
> xorg-x11 seems to have no problem once dmx is unset.
It appears I was incorrect.

Comment 7 Tim Yamin (RETIRED) gentoo-dev 2005-12-16 13:01:45 UTC
Want to edit /usr/include/asm/bitops.h as follows? Find line 250 where you have ffs(...) but *not* __ffs; and move that down below the #ifdef __KERNEL__. Keep the ffz(...) above the #ifdef __KERNEL__.
Comment 8 David Gurvich 2005-12-16 13:28:47 UTC
(In reply to comment #7)
> Want to edit /usr/include/asm/bitops.h as follows? Find line 250 where you have
> ffs(...) but *not* __ffs; and move that down below the #ifdef __KERNEL__. Keep
> the ffz(...) above the #ifdef __KERNEL__.
> 

I am willing to try that.  Before I do, I installed linux-headers-2.6.14.2 and copied /usr/src/linux/include/asm-powerpc/* to /usr/include/asm.  Many headers were missing from there.  After I installed that, ncurses compiled with no problem, but xorg-x11-6.8.2-r6 had the same problem.  

Should I revert to linux-headers-2.6.11-r3 first?
Comment 9 David Gurvich 2005-12-16 14:17:18 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > Want to edit /usr/include/asm/bitops.h as follows? Find line 250 where you have
> > ffs(...) but *not* __ffs; and move that down below the #ifdef __KERNEL__. Keep
> > the ffz(...) above the #ifdef __KERNEL__.
> > 
> 
> I am willing to try that.  Before I do, I installed linux-headers-2.6.14.2 and
> copied /usr/src/linux/include/asm-powerpc/* to /usr/include/asm.  Many headers
> were missing from there.  After I installed that, ncurses compiled with no
> problem, but xorg-x11-6.8.2-r6 had the same problem.  
> 
> Should I revert to linux-headers-2.6.11-r3 first?
> 

xorg-x11-6.8.99 compiled with no trouble.  This version so far is not a noticeable difference from 6.8.2.  Perhaps I failed to clean out the previous attempt before.
Comment 10 Tim Yamin (RETIRED) gentoo-dev 2005-12-16 15:26:01 UTC
> I am willing to try that.  Before I do, I installed linux-headers-2.6.14.2 and
> copied /usr/src/linux/include/asm-powerpc/* to /usr/include/asm.

Only Portage doesn't have linux-headers-2.6.14.2 and it won't since 2.6.14 is a mess for PPC due to headers moving upstream. I'd suggest reverting to 2.6.11 and then trying that patch.
Comment 11 Mark Loeser (RETIRED) gentoo-dev 2005-12-19 06:05:42 UTC
*** Bug 115487 has been marked as a duplicate of this bug. ***
Comment 12 Tim Yamin (RETIRED) gentoo-dev 2005-12-19 13:24:54 UTC
Fixed; emerge sync and remerge linux-headers-2.6.11-r3. Thanks!
Comment 13 David Gurvich 2005-12-20 22:09:52 UTC
I have modified linux-headers-2.6.11-r3 to install linux-headers-2.6.14.4.  I also copied the entire contents of gentoo-sources-2.6.14.2-r2 include/asm-powerpc directory into /usr/include/asm as these were all missed by various packages.  At this point I have completed emerge -e system and emerge -e world.  

There were 2 difficulties.
  1)slang-1.4.9-r1 had a sandbox violation, worked around by 
'rm /usr/lib/libslang-utf8.a'.  Probably a bug in slang.
  2)net-tool-1.60-r11, which I haven't found a method around and have the previously compiled version still.  There were clear complaints about header files.
Comment 14 David Gurvich 2005-12-20 22:11:19 UTC
Created attachment 75247 [details]
net-tools error log, using 2.6.14.4 for headers.
Comment 15 Tim Yamin (RETIRED) gentoo-dev 2005-12-21 14:27:10 UTC
a) Please try 2.6.15_rc6 headers which will be in portage sometime soon (probably today/tomorrow)
b) Perform the asm-powerpc kludge but with 2.6.15_rc6 sources
c) See if things work; looking at the code they probably should (for that __be16 error anyway).

Thanks!
Comment 16 David Gurvich 2005-12-22 10:10:59 UTC
net-tools builds cleanly with 2.6.15_rc6 and kludge, but it breaks ncurses build with complaints about spinlock.h and other headers. 
Comment 17 Tim Yamin (RETIRED) gentoo-dev 2005-12-22 14:59:36 UTC
> net-tools builds cleanly with 2.6.15_rc6 and kludge, but it breaks ncurses
> build with complaints about spinlock.h and other headers.

Want to report the breakages in further detail in bug #100703 please? Thanks.