Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58299 - emerge directfb errors out in keyboard.c: implicit declaration of function `fls' in function `get_bitmask_order'
Summary: emerge directfb errors out in keyboard.c: implicit declaration of function `f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-25 08:06 UTC by Rutger Hendriks
Modified: 2006-02-15 18:35 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 Rutger Hendriks 2004-07-25 08:06:35 UTC
I've tried reinstalling DirectFB-0.9.20, but that doesn't work.

emerge -av DirectFB

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] dev-libs/DirectFB-0.9.20  -fusion +gif +jpeg -(mmx) +mpeg +png -(sse) +truetype  0 kB

<snip>

Making all in keyboard
make[3]: Entering directory `/var/tmp/portage/DirectFB-0.9.20/work/DirectFB-0.9.20/inputdrivers/keyboard'
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include                -I../../src  -I/usr/include/libmpeg3  -D_REENTRANT -Wall -O3 -ffast-math -pipe -O2 -march=k8 -fomit-frame-pointer -momit-leaf-frame-pointer -fweb -frename-registers -pipe  -DFUSION_FAKE -Werror-implicit-function-declaration -c keyboard.c
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../src -I/usr/include/libmpeg3 -D_REENTRANT -Wall -O3 -ffast-math -pipe -O2 -march=k8 -fomit-frame-pointer -momit-leaf-frame-pointer -fweb -frename-registers -pipe -DFUSION_FAKE -Werror-implicit-function-declaration -c keyboard.c  -fPIC -DPIC -o .libs/keyboard.o
In file included from /usr/include/asm/system.h:7,
                 from /usr/include/asm/processor.h:19,
                 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/keyboard.h:4,
                 from keyboard.c:39:
/usr/include/linux/bitops.h: In function `get_bitmask_order':
/usr/include/linux/bitops.h:78: error: implicit declaration of function `fls'
make[3]: *** [keyboard.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/DirectFB-0.9.20/work/DirectFB-0.9.20/inputdrivers/keyboard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/DirectFB-0.9.20/work/DirectFB-0.9.20/inputdrivers'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/DirectFB-0.9.20/work/DirectFB-0.9.20'
make: *** [all-recursive-am] Error 2

!!! ERROR: dev-libs/DirectFB-0.9.20 failed.
!!! Function src_compile, Line 82, Exitcode 2
!!! (no error message)


emerge info:
Portage 2.0.50-r9 (gcc34-amd64-2004.1, gcc-3.4.1, glibc-2.3.4.20040619-r0, 2.6.7-gentoo-r11)
=================================================================
System uname: 2.6.7-gentoo-r11 x86_64 4
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="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=k8 -fomit-frame-pointer -momit-leaf-frame-pointer -fweb -frename-registers -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/gentoo-rsync /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config /usr/kde/3/share/config /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 /opt/gentoo-rsync/portage /etc/env.d"
CXXFLAGS="-O2 -march=k8 -fomit-frame-pointer -momit-leaf-frame-pointer -fweb -frename-registers -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.tiscali.nl/pub/mirror/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="S3TC X aac aalib acpi acpi4linux alsa amd64 apm arts asterisk audiofile avi berkdb cdparanoia cdr chroot crypt cups dga divx4linux dv dvd dvdr dvdread encode faac faad fbcon fbdev ffmpeg fftw flac flash foomaticdb ftp gd gdbm ggi gif gpm gstreamer gtk2 icq ieee1394 imagemagick imap imlib imlib2 irmc jabber java javascript joystick jp2 jpeg kde lcd lcms ldap libg++ libwww linguas_en_GB linguas_nl lirc live lzo lzw lzw-tiff mad mbox mikmod mng motif mozaccess mozcalendar mozdomi mozilla mozp3p mozsvg mozxmlterm mpeg mpeg4 mpi mplayer msn mysql mythtv nas ncurses net nls nptl oav offensive oggvorbis opengl opie oss pam pda pdflib perl pic plotutils png pthreads python qt quicktime readline rtc samba sasl sdl slang slp speex spell ssl svg tcltk tcpd theora tiff transcode truetype usb v4l v4l2 videos wmf xml2 xmms xosd xprint xrandr xv xvid zlib zvbi"


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Michal Januszewski (RETIRED) gentoo-dev 2004-07-25 08:10:15 UTC
What version if linux26-headers/linux-headers are you using? Does it match your kernel? If you're using a 2.6.(7|8) kernel, and you don't have linux26-headers-2.6.7-r3 installed, please upgrade and check if directfb still fails.
Comment 2 Rutger Hendriks 2004-07-25 08:16:14 UTC
emerge -av linux26-headers

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-kernel/linux26-headers-2.6.7-r4   0 kB

Total size of downloads: 0 kB

Do you want me to merge these packages? [Yes/No] n

Quitting.

# uname -a
Linux pvr 2.6.7-gentoo-r11 #1 Thu Jul 15 17:29:12 CEST 2004 x86_64 4  GNU/Linux

# emerge -aP linux26-headers

>>> These are the packages that I would unmerge:

>>> prune: No packages selected for removal.

# emerge -aP linux-headers

>>> These are the packages that I would unmerge:

--- Couldn't find linux-headers to prune.

>>> prune: No packages selected for removal.

# emerge -aP gentoo-dev-sources

>>> These are the packages that I would unmerge:

>>> prune: No packages selected for removal.


I guess this is all okay...
Comment 3 Travis Tilley (RETIRED) gentoo-dev 2004-07-27 20:03:28 UTC
adding plasmaroo to CC as he's our local header guru
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2004-07-27 23:00:59 UTC
Try: sed -e -i '478d;507d' /usr/include/asm/bitops.h - tell me if that solves the issue. Thanks!
Comment 5 Rutger Hendriks 2004-07-28 07:24:53 UTC
I tried it, but that failed to execute, so I looked at the sed manual, found what it was supposed to do and changed the order of '-e' and '-i'. That did run and also DirectFB-0.9.20 compiled successfully.

One step closer to completing emerge -e world ;-)
Thanx
Comment 6 Tim Yamin (RETIRED) gentoo-dev 2004-07-28 08:22:38 UTC
Fix now in CVS; it should reach Portage within an hour. To get it simply emerge sync, and remerge your headers. If there are any issues with DirectFB again then please reopen this bug and I'll have a look at it. Thanks!
Comment 7 m3x 2004-09-09 09:12:41 UTC
Same Error again on PPC.

linux26-headers-2.6.8.1, gcc 3.4.1 installed.

make output differs a little bit:

<snip>
In file included from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/keyboard.h:4,
                 from keyboard.c:39:
/usr/include/linux/list.h: In function '__list_add_rcu':
/usr/include/linux/list.h:94: error: implicit declaration of function '__memory_barrier'
In file included from /usr/include/linux/thread_info.h:20,
                 from /usr/include/linux/spinlock.h:12,
                 from /usr/include/linux/wait.h:15,
                 from /usr/include/linux/keyboard.h:4,
                 from keyboard.c:39:
</snip>

Tried the sed line from comments -> no success ;-(
Comment 8 Tomasz Mloduchowski 2005-03-26 13:29:46 UTC
The same problem happens on alpha, sed trick does not work for me. 
I suggest reopening the bug! 
Comment 9 DEMAINE Benoît-Pierre, aka DoubleHP 2006-02-15 07:45:11 UTC
Because nobody re-opened since more than one year ( PPC querry on 2004-09-09 )
I have created a dup : http://bugs.gentoo.org/show_bug.cgi?id=122929
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-02-15 07:57:33 UTC
*** Bug 122929 has been marked as a duplicate of this bug. ***
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2006-02-15 07:58:17 UTC
Reopen, not fixed.
Comment 12 SpanKY gentoo-dev 2006-02-15 18:35:40 UTC
unrelated