Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44527 - dev-libs/DirectFB-0.9.20 fails to compile
Summary: dev-libs/DirectFB-0.9.20 fails to compile
Status: RESOLVED DUPLICATE of bug 40438
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on: 43681
Blocks:
  Show dependency tree
 
Reported: 2004-03-12 20:03 UTC by Dale K Dicks
Modified: 2005-07-17 13:06 UTC (History)
1 user (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 Dale K Dicks 2004-03-12 20:03:12 UTC
development-sources-2.6.4


[ root@linuxbox /home/ddicks ] # emerge info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.4)
=================================================================
System uname: 2.6.4 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz
Gentoo Base System version 1.4.3.13
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -mfpmath=sse -msse -msse2 -mmmx -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -mfpmath=sse -msse -msse2 -mmmx -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="http://mirror.cpsc.ucalgary.ca/mirror/gentoo.org"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="X aalib alsa avi berkdb bonobo cdr crypt cups directfb dvd encode fbcon flac foomaticdb gdbm gif gimpprint gnome gstreamer gtk gtk2 gtkhtml imagemagick imap imlib java javascript joystick jpeg ldap libg++ libwww mad mikmod mmx motif mozilla mpeg mpeg4 ncurses nls nptl oggvorbis opengl oss pam pdflib perl png ppds python quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tiff truetype usb v4l x86 xml2 xmms xv zlib"


Following is the Error:
-----------------------
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../src -I/usr/include/libmpeg3 -D_REENTRANT -Wall -O3 -ffast-math -pipe -mcpu=i686 -DFUSION_FAKE -Werror-implicit-function-declaration -c matrox_maven.c  -fPIC -DPIC -o .libs/matrox_maven.o
distcc[22135] ERROR: compile on linuxbox failed
In file included from /usr/include/linux/i2c.h:43,
                 from matrox_maven.c:36:
/usr/include/asm/semaphore.h:45: error: syntax error before "wait_queue_head_t"
/usr/include/asm/semaphore.h: In function `sema_init':
/usr/include/asm/semaphore.h:79: error: dereferencing pointer to incomplete type
/usr/include/asm/semaphore.h:80: error: dereferencing pointer to incomplete type
/usr/include/asm/semaphore.h:81: error: implicit declaration of function `init_waitqueue_head'
/usr/include/asm/semaphore.h:81: error: dereferencing pointer to incomplete type
/usr/include/asm/semaphore.h: In function `down':
/usr/include/asm/semaphore.h:117: error: implicit declaration of function `might_sleep'
/usr/include/asm/semaphore.h:123: error: syntax error before "LOCK_SECTION_START"
/usr/include/asm/semaphore.h: In function `down_interruptible':
/usr/include/asm/semaphore.h:150: error: syntax error before "LOCK_SECTION_START"
/usr/include/asm/semaphore.h: In function `down_trylock':
/usr/include/asm/semaphore.h:178: error: syntax error before "LOCK_SECTION_START"
/usr/include/asm/semaphore.h: In function `up':
/usr/include/asm/semaphore.h:204: error: syntax error before "LOCK_SECTION_START"
matrox_maven.c: In function `maven_write_byte':
matrox_maven.c:68: warning: passing arg 1 of `i2c_smbus_write_byte_data' makes pointer from integer without a cast
matrox_maven.c: In function `maven_write_word':
matrox_maven.c:85: warning: passing arg 1 of `i2c_smbus_write_word_data' makes pointer from integer without a cast
make[3]: *** [matrox_maven.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/DirectFB-0.9.20/work/DirectFB-0.9.20/gfxdrivers/matrox'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/DirectFB-0.9.20/work/DirectFB-0.9.20/gfxdrivers'
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 70, Exitcode 2
!!! (no error message)
Comment 1 Tom Barcellona 2004-03-13 16:00:07 UTC
Same exact problem. emerge info:

Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.4-rc2-love1)
=================================================================
System uname: 2.6.4-rc2-love1 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz
Gentoo Base System version 1.4.3.13
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/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 /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="http://ubernet/tsp-cache/open-systems.ufl.edu/mirrors/gentoo http://ubernet/tsp-cache/mirror.tucdemonic.org/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="3dnow X aalib accessibility acl acpi aim alsa arts avi berkdb bidi bonobo caps cdr crypt cups curl dga directfb doc dvd encode esd ethereal evo fbcon fdftk fftw flac flash foomaticdb freetds gb gd gdbm ggi gif ginac gnome gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml guile icq imagemagick imap imlib innodb ipv6 jabber java jikes jpeg kde ladcca lcms libg++ libgda libwww lirc mad maildir matrox mcal memlimit mikmod mmx motif mozilla mpeg mpi msn mysql nas ncurses netcdf nls odbc oggvorbis opengl oscar oss pam pcmcia pda pdflib perl plotutils png pnp ppds python qt quicktime readline ruby samba sasl scanner sdl slang slp snmp socks5 speex spell sqlite sse ssl svga tcltk tcpd tetex theora tiff truetype unicode usb videos wavelan wmf wxwindows x86 xface xinerama xml xml2 xmms xosd xv yahoo yaz zeo zlib"
Comment 2 Gen Zhang 2004-03-15 02:27:36 UTC
Variation here.

Emerge info:
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo-r1)
=================================================================
System uname: 2.6.3-gentoo-r1 i686 Celeron (Coppermine)
Gentoo Base System version 1.4.3.13
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -mcpu=pentium2 -mmmx -msse -mfpmath=sse,387 -fomit-frame-pointer -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /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="-march=pentium3 -mcpu=pentium2 -mmmx -msse -mfpmath=sse,387 -fomit-frame-pointer -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://ibiblio.org/pub/Linux/distributions/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/root/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/root/overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acpi alsa fam fbcon freetype fs gif java jpeg maildir mmx mozilla ncurses nls nptl pam pic png readline sse ssl tcpd tetex tiff truetype x86 xml2 xv zlib"

Error message:
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../src -D_REENTRANT -Wall -O3 -ffast-math -pipe -march=pentium3 -mcpu=pentium2 -mmmx -msse -mfpmath=sse,387 -fomit-frame-pointer -O2 -pipe -DFUSION_FAKE -Werror-implicit-function-declaration -c matrox_maven.c  -fPIC -DPIC -o .libs/matrox_maven.o
matrox_maven.c: In function `maven_write_byte':
matrox_maven.c:63: error: implicit declaration of function `i2c_smbus_write_byte_data'
matrox_maven.c: In function `maven_write_word':
matrox_maven.c:80: error: implicit declaration of function `i2c_smbus_write_word_data'
make[3]: *** [matrox_maven.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/DirectFB-0.9.20/work/DirectFB-0.9.20/gfxdrivers/matrox'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/DirectFB-0.9.20/work/DirectFB-0.9.20/gfxdrivers'
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
Comment 3 Carlos Saltos 2004-03-15 22:17:38 UTC
This bug only affects to the matrox driver. Refer to the bug #43681 and the bug #40438 for more information on how to fix it in this case.

Otherwire, if you have another video card, just use the VIDEO_CARD envioronment variable as, for example, with the command:

VIDEO_CARD="savage" emerge DirectFB

And DirectFB should be able to emerge successfully. Do not forget to run revdep-rebuild as DirectFB may brake other packages. (revdep-rebuild is in the gentoolkit package).
Comment 4 Carlos Saltos 2004-03-15 22:40:34 UTC
The correct environment variable to specify the video driver is VIDEO_CARDS  ... please be sure to use this variable in the previous example instead of VIDEO_CARD without the 'S'

Comment 5 Gen Zhang 2004-03-16 05:06:45 UTC
In that case my problem may be a different thing altogether. I used VIDEO_CARDS="none" to compile:

VIDEO_CARDS="none" emerge -v --oneshot DirectFB

Should I open another bug report?
Comment 6 SpanKY gentoo-dev 2004-03-16 09:18:18 UTC
Zhang: you have Bug 43681 (it's been fixed, your portage tree is out of date)

Dale: you have Bug 40438 ... if you're going to use 2.6 headers, make sure you're using the latest version before filing bug reports because this has been fixed
Comment 7 Dale K Dicks 2004-03-16 09:38:23 UTC
actually I do have the "latest"

my bug is actually the bug where you have to set the VIDEO_CARD - which is stupid because the ebuild should be smart enough to tell you to set that variable if it errors out - thus not wasting MY time as well as the developers' time.

plz, fix the ebuild so it tells you to set it if it is not set rather than printing from this code so fast that it scrolls off the screen so you can't see it:
pkg_setup() {
        if [ -z "${VIDEO_CARDS}" ] ; then
                ewarn "All video drivers will be built since you did not specify"
                ewarn "via the VIDEO_CARDS variable what video card you use."
                einfo "DirectFB supports: ${IUSE_VIDEO_CARDS} all none"
        fi
}
Comment 8 SpanKY gentoo-dev 2004-03-16 17:23:48 UTC
actually dale, you dont have the latest kernel-headers
just because you have 2.6.4 doesnt mean you have the latest ... re-emerge it after syncing up your tree

if you did, your i2c.h would not have included the semaphore.h file ... see Bug 40438 like i said in the first place

you dont need to have VIDEO_CARDS set, that's why the ebuild doesnt call die(), it just 'warns' you that you're building support for all possible video cards
Comment 9 Dale K Dicks 2004-03-16 17:28:58 UTC
OK - i am going to re-emerge linux-headers-2.6.4 and re-emerge development-sources-2.6.4

I will report back.
Comment 10 Dale K Dicks 2004-03-16 17:58:02 UTC
Ok - I am sorry if I sounded grouchy about this before - but you were right :)

Could this have been because I had 2.6.4 linux-headers when I reported the bug?

I got the 2.6.4 linux heasders as soon as they went into Portage so I guess I never tried to re-emerge the DirectFB after that??
Comment 11 SpanKY gentoo-dev 2004-03-17 07:41:00 UTC
we have linux-headers-2.6.x marked -* so that we can update it w/out
pushing out a new -r# with every change

in this case, 2.6.4 was updated to fix this bug and wasnt -r# bumped

*** This bug has been marked as a duplicate of 40438 ***
Comment 12 Heitzso 2004-04-07 11:55:51 UTC
To get it to compile with 2.6.4
 emerge and compile 2.6.4
 emerge kernel headers for 2.6.4
still doesn't work at this point!
I hand copied over /usr/src/linux/2.6.4/include over to /usr/include
with cp -a and that doesn't work
 emerge kernel headers for 2.6.4 (on top of the copy)
that worked
It shouldn't be this hard.  If there's any way to smooth this out
would be nice.  I've spent a lot of time just to get 'emerge -u world'
on a stable gentoo system to work.
Comment 13 SpanKY gentoo-dev 2004-04-07 14:19:33 UTC
sounds like your system was screwed up ...

since you didnt really provide any errors you got from any step along the way,
i really cant help you

all i had to do was to emerge linux-headers 2.6.x while running a 2.6.x kernel
and then emerge directfb