Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115913 - DirectFB compilation dies: "GNU Libc Linux Headers Override Detected"
Summary: DirectFB compilation dies: "GNU Libc Linux Headers Override Detected"
Status: RESOLVED DUPLICATE of bug 82243
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: PPC Linux
: High major (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-18 01:31 UTC by Radoslaw Dlugosz
Modified: 2005-12-18 12:19 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 Radoslaw Dlugosz 2005-12-18 01:31:40 UTC
After installing SDL (as a dependency for sth else) I did emerge -pv -uD --newuse world. I found DirectFB on the list, with an added 'sdl' flag, so I tried to emerge it. It failed during compilation (I use Polish locale, so Błąd=ERROR):
 powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../lib -I../../lib -I../../src -I../../systems -D_REENTRANT -I/usr/include/libmpeg3 -Wall -O3 -ffast-math -pipe -O2 -mcpu=750 -fno-strict-aliasing -pipe -D_GNU_SOURCE -Werror-implicit-function-declaration -MT keyboard.lo -MD -MP -MF .deps/keyboard.Tpo -c keyboard.c  -fPIC -DPIC -o .libs/keyboard.o
In file included from keyboard.c:42:
/usr/include/linux/keyboard.h:7:2: warning: #warning Gentoo Linux Headers Warning: GNU Libc Linux Headers Override Detected.
/usr/include/linux/keyboard.h:8:2: warning: #warning Gentoo Linux Headers Warning: This is bad. Removing override and continuing.
/usr/include/linux/keyboard.h:9:2: warning: #warning Gentoo Linux Headers Warning: If your compilation dies here, mention this when
/usr/include/linux/keyboard.h:10:2: warning: #warning Gentoo Linux Headers Warning: filing a bug!
In file included from /usr/include/linux/keyboard.h:14,
                 from keyboard.c:42:
/usr/include/linux/wait.h: In function `wait_on_bit':
/usr/include/linux/wait.h:376: error: implicit declaration of function `test_bit'
/usr/include/linux/wait.h: In function `wait_on_bit_lock':
/usr/include/linux/wait.h:400: error: implicit declaration of function `test_and_set_bit'
make[3]: *** [keyboard.lo] Błąd 1
make[3]: Leaving directory `/var/tmp/portage/DirectFB-0.9.22/work/DirectFB-0.9.22/inputdrivers/keyboard'
make[2]: *** [all-recursive] Błąd 1
make[2]: Leaving directory `/var/tmp/portage/DirectFB-0.9.22/work/DirectFB-0.9.22/inputdrivers'
make[1]: *** [all-recursive] Błąd 1
make[1]: Leaving directory `/var/tmp/portage/DirectFB-0.9.22/work/DirectFB-0.9.22'
make: *** [all] Błąd 2

My emerge info:
Portage 2.0.51.22-r3 (default-linux/ppc/2005.0, gcc-3.4.4, glibc-2.3.4.20041102-r1, 2.6.13-gentoo-r3 ppc)
=================================================================
System uname: 2.6.13-gentoo-r3 ppc 745/755
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
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-r2
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=750 -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/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/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=750 -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl"
LANG="pl_PL"
LINGUAS="pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="ppc X a52 aac alsa apache2 apm arts audiofile bash-completion berkdb bitmap-fonts blas bluetooth bzip2 calendar cdparanoia cdr crypt cups curl directfb divx4linux dts dv dvd dvdr dvdread emboss encode ethereal exif expat fam fbcon ffmpeg flac flash freetds ftp gd gif glut gmp gphoto2 gpm gstreamer gtk gtk2 idn ieee1394 imagemagick imap imlib ipv6 jabber jack java javascript jpeg junit kde kerberos lapack lcms ldap libwww lirc mad mhash mng mono motif mp3 mpeg mppe-mppc mssql mysql nas ncurses nls nptl offensive ogg oggvorbis openal opengl oss pam pcre pda pdflib perl php plotutils png postgres prelude python qt quicktime radius readline samba sasl scanner sdl slang slp snmp sockets spell ssl sysvipc tcpd tetex threads tidy tiff truetype truetype-fonts type1-fonts udev unicode usb v4l vcd vorbis wifi xine xinerama xml2 xmms xv xvid zlib video_cards_rage128 linguas_pl userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2005-12-18 08:19:32 UTC
try linux-headers-2.6.11-r3
Comment 2 Radoslaw Dlugosz 2005-12-18 09:48:51 UTC
This is what happens after emerging linux-headers-2.6.11-r3:
powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../lib -I../../lib -I../../src -I../../systems -D_REENTRANT -I/usr/include/libmpeg3 -Wall -O3 -ffast-math -pipe -O2 -mcpu=750 -fno-strict-aliasing -pipe -D_GNU_SOURCE -Werror-implicit-function-declaration -MT keyboard.lo -MD -MP -MF .deps/keyboard.Tpo -c keyboard.c  -fPIC -DPIC -o .libs/keyboard.o
In file included from /usr/include/asm/byteorder.h:74,
                 from /usr/include/asm/bitops.h:10,
                 from /usr/include/linux/bitops.h:77,
                 from /usr/include/linux/thread_info.h:20,
                 from /usr/include/linux/spinlock.h:12,
                 from /usr/include/linux/wait.h:23,
                 from /usr/include/linux/keyboard.h:20,
                 from keyboard.c:42:
/usr/include/linux/byteorder/big_endian.h:44: error: parse error before "__cpu_to_le64p"
/usr/include/linux/byteorder/big_endian.h: In function `__cpu_to_le64p':
/usr/include/linux/byteorder/big_endian.h:46: error: `__le64' undeclared (first use in this function)
/usr/include/linux/byteorder/big_endian.h:46: error: (Each undeclared identifier is reported only once
/usr/include/linux/byteorder/big_endian.h:46: error: for each function it appears in.)
/usr/include/linux/byteorder/big_endian.h:46: error: parse error before "__swab64p"
/usr/include/linux/byteorder/big_endian.h: At top level:
/usr/include/linux/byteorder/big_endian.h:48: error: parse error before '*' token
/usr/include/linux/byteorder/big_endian.h: In function `__le64_to_cpup':
/usr/include/linux/byteorder/big_endian.h:50: error: `p' undeclared (first use in this function)
/usr/include/linux/byteorder/big_endian.h: At top level:
/usr/include/linux/byteorder/big_endian.h:53: error: parse error before "__cpu_to_le32p"
/usr/include/linux/byteorder/big_endian.h: In function `__cpu_to_le32p':
/usr/include/linux/byteorder/big_endian.h:55: error: `__le32' undeclared (first use in this function)
/usr/include/linux/byteorder/big_endian.h:55: error: parse error before "__swab32p"
/usr/include/linux/byteorder/big_endian.h: At top level:
/usr/include/linux/byteorder/big_endian.h:57: error: parse error before '*' token
/usr/include/linux/byteorder/big_endian.h: In function `__le32_to_cpup':
/usr/include/linux/byteorder/big_endian.h:59: error: `p' undeclared (first use in this function)
/usr/include/linux/byteorder/big_endian.h: At top level:
/usr/include/linux/byteorder/big_endian.h:61: error: parse error before "__cpu_to_le16p"
/usr/include/linux/byteorder/big_endian.h: In function `__cpu_to_le16p':
/usr/include/linux/byteorder/big_endian.h:63: error: `__le16' undeclared (first use in this function)
/usr/include/linux/byteorder/big_endian.h:63: error: parse error before "__swab16p"
/usr/include/linux/byteorder/big_endian.h: At top level:
/usr/include/linux/byteorder/big_endian.h:65: error: parse error before '*' token
/usr/include/linux/byteorder/big_endian.h: In function `__le16_to_cpup':
/usr/include/linux/byteorder/big_endian.h:67: error: `p' undeclared (first use in this function)
/usr/include/linux/byteorder/big_endian.h: At top level:
/usr/include/linux/byteorder/big_endian.h:70: error: parse error before "__cpu_to_be64p"
/usr/include/linux/byteorder/big_endian.h: In function `__cpu_to_be64p':
/usr/include/linux/byteorder/big_endian.h:72: error: `__be64' undeclared (first use in this function)
/usr/include/linux/byteorder/big_endian.h: At top level:
/usr/include/linux/byteorder/big_endian.h:74: error: parse error before '*' token
/usr/include/linux/byteorder/big_endian.h: In function `__be64_to_cpup':
/usr/include/linux/byteorder/big_endian.h:76: error: `p' undeclared (first use in this function)
/usr/include/linux/byteorder/big_endian.h: At top level:
/usr/include/linux/byteorder/big_endian.h:79: error: parse error before "__cpu_to_be32p"
/usr/include/linux/byteorder/big_endian.h: In function `__cpu_to_be32p':
/usr/include/linux/byteorder/big_endian.h:81: error: `__be32' undeclared (first use in this function)
/usr/include/linux/byteorder/big_endian.h: At top level:
/usr/include/linux/byteorder/big_endian.h:83: error: parse error before '*' token
/usr/include/linux/byteorder/big_endian.h: In function `__be32_to_cpup':
/usr/include/linux/byteorder/big_endian.h:85: error: `p' undeclared (first use in this function)
/usr/include/linux/byteorder/big_endian.h: At top level:
/usr/include/linux/byteorder/big_endian.h:87: error: parse error before "__cpu_to_be16p"
/usr/include/linux/byteorder/big_endian.h: In function `__cpu_to_be16p':
/usr/include/linux/byteorder/big_endian.h:89: error: `__be16' undeclared (first use in this function)
/usr/include/linux/byteorder/big_endian.h: At top level:
/usr/include/linux/byteorder/big_endian.h:91: error: parse error before '*' token
/usr/include/linux/byteorder/big_endian.h: In function `__be16_to_cpup':
/usr/include/linux/byteorder/big_endian.h:93: error: `p' undeclared (first use in this function)
make[3]: *** [keyboard.lo] Błąd 1
make[3]: Leaving directory `/var/tmp/portage/DirectFB-0.9.22/work/DirectFB-0.9.22/inputdrivers/keyboard'
make[2]: *** [all-recursive] Błąd 1
make[2]: Leaving directory `/var/tmp/portage/DirectFB-0.9.22/work/DirectFB-0.9.22/inputdrivers'
make[1]: *** [all-recursive] Błąd 1
make[1]: Leaving directory `/var/tmp/portage/DirectFB-0.9.22/work/DirectFB-0.9.22'
make: *** [all] Błąd 2
Comment 3 SpanKY gentoo-dev 2005-12-18 12:19:53 UTC
post your results to the original bug report please

*** This bug has been marked as a duplicate of 82243 ***