Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75606 - [[ 2.6 headers ]] dev-libs/DirectFB-0.9.21 fails to build on amd64
Summary: [[ 2.6 headers ]] dev-libs/DirectFB-0.9.21 fails to build on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-24 21:12 UTC by Andrew D Kirch
Modified: 2005-01-05 16:03 UTC (History)
2 users (show)

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


Attachments
Patch (linux26-headers-75606.0.patch,437 bytes, patch)
2004-12-26 05:08 UTC, Tim Yamin (RETIRED)
Details | Diff
PPC Patch (linux26-headers-75606.1.patch,921 bytes, patch)
2004-12-26 11:59 UTC, Tim Yamin (RETIRED)
Details | Diff
asm/types.h (types.h,1.18 KB, text/plain)
2004-12-27 22:31 UTC, Jon Wagoner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew D Kirch 2004-12-24 21:12:46 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../lib -I../../lib -I../../src -D_REENTRANT -I/usr/include/libmpeg3 -Wall -O3 -ffast-math -pipe -O2 -pipe -D_GNU_SOURCE -Werror-implicit-function-declaration -c ati128.c  -fPIC -DPIC -o .libs/ati128.o
In file included from /usr/include/linux/fb.h:4,
                 from ati128.c:38:
/usr/include/asm/types.h:28: error: conflicting types for `int64_t'
/usr/include/sys/types.h:194: error: previous declaration of `int64_t'
/usr/include/asm/types.h:29: error: conflicting types for `u_int64_t'
/usr/include/sys/types.h:200: error: previous declaration of `u_int64_t'
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../lib -I../../lib -I../../src -D_REENTRANT -I/usr/include/libmpeg3 -Wall -O3 -ffast-math -pipe -O2 -pipe -D_GNU_SOURCE -Werror-implicit-function-declaration -c ati128_overlay.c  -fPIC -DPIC -o .libs/ati128_overlay.o
make[3]: *** [ati128.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/DirectFB-0.9.21/work/DirectFB-0.9.21/gfxdrivers/ati128'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/DirectFB-0.9.21/work/DirectFB-0.9.21/gfxdrivers'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/DirectFB-0.9.21/work/DirectFB-0.9.21'
make: *** [all-recursive-am] Error 2

!!! ERROR: dev-libs/DirectFB-0.9.21 failed.
!!! Function src_compile, Line 87, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1. emerge DirectFB
2. emerge fails
3. something about pizza
Comment 1 SpanKY gentoo-dev 2004-12-25 15:02:52 UTC
you neglected to post `emerge info` like the bug report page said to

re-open once you have
Comment 2 Andrew D Kirch 2004-12-25 21:02:02 UTC
Portage 2.0.51-r8 (default-linux/amd64/2004.3, gcc-3.3.5, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r10 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r10 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Nov  5 2004, 08:25:07)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r2, 1.9.3, 1.5, 1.6.3, 1.7.9, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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/mozilla/defaults/pref /usr/share/config /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"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aalib acpi alsa arts avi berkdb bidi bitmap-fonts bonobo bootsplash cdparanoia cdr crypt cups directfb divx4linux dvb dvd dvdread edl esd f77 faad fam fbcon ffmpeg flac foomaticdb fortran gdbm ggi gif gimp gimpprint gkrellm gnome gpm gstreamer gtk hardened imlib ipv6 jack java javascript joystick jp2 jpeg libcaca live lm_sensors lzo lzw lzw-tiff mad matroska mikmod motif mozilla mp3 mpeg mpeg4 mplayer multilib mythtv nas ncurses need network nls nntp nvidia offensive oggvorbis opengl oss pam pda pdf perl png ppds python readline rtc samba sdl slang ssl tcltk tcpd theora tiff timidity truetype usb userlocales v4l v4l2 wxwindows xanim xinerama xml xml2 xmms xpm xrandr xv xvid xvmc zlib"

Comment 3 SpanKY gentoo-dev 2004-12-25 22:19:49 UTC
tim: seems to be an amd64 issue, take a look will you please ? :)
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2004-12-26 05:02:19 UTC
Please attach /usr/include/asm/types.h...
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2004-12-26 05:08:30 UTC
Created attachment 46895 [details, diff]
Patch

Please try this patch on /usr/include/linux/types.h and tell me if that happens
to fix this issue. Thanks!
Comment 6 Santiago Gala 2004-12-26 08:47:38 UTC
I'm having a different issue here:

 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=7450 -maltivec -mabi=altivec -pipe -D_GNU_SOURCE -Werror-implicit-function-declaration -c keyboard.c  -fPIC -DPIC -o .libs/keyboard.o
In file included from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/keyboard.h:4,
                 from keyboard.c:42:
/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:42:
/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.21/work/DirectFB-0.9.21/inputdrivers/keyboard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/DirectFB-0.9.21/work/DirectFB-0.9.21/inputdrivers'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/DirectFB-0.9.21/work/DirectFB-0.9.21'
make: *** [all-recursive-am] Error 2

!!! ERROR: dev-libs/DirectFB-0.9.21 failed.
!!! Function src_compile, Line 87, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

emerge info output:
Portage 2.0.51-r8 (default-ppc-2004.3, gcc-3.4.1, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r9 ppc)
=================================================================
System uname: 2.6.9-gentoo-r9 ppc 7455, altivec supported
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Sep  6 2004, 21:11:55)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r2, 1.4_p6, 1.5, 1.9.3, 1.7.9, 1.6.3
sys-devel/binutils:  2.15.90.0.3-r3
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=7450 -maltivec -mabi=altivec -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=7450 -maltivec -mabi=altivec -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distlocks"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib accessibility alsa altivec apache2 berkdb bonobo cdr cjk crypt cups directfb dvd dvdr emacs esd f77 fbcon fortran gcj gdbm gif gnome gnome-libs gpm gstreamer gtk gtk2 gtkhtml guile hal howl idea imlib ipv6 ithreads jabber java jpeg jython lcms ldap mad maildir mono motif mozcalendar mozilla mozsvg mpeg mplayer nas nls nptl oggvorbis opengl opie pam pcre perl png postgres ppc python qt radeon readline rhino ruby samba sdl sheep slang smime spell ssl svg tcltk tcpd tiff truetype unicode usb vnc wxwindows xinerama xml2 xmms xvid yahoo zlib video_cards_radeon"
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2004-12-26 11:59:19 UTC
Created attachment 46914 [details, diff]
PPC Patch
Comment 8 SpanKY gentoo-dev 2004-12-27 18:20:38 UTC
the provided amd64 patch doesnt work ... it applies to linux/types.h, the error is with asm/types.h and sys/types.h as seen in original report
Comment 9 Tim Yamin (RETIRED) gentoo-dev 2004-12-27 18:28:35 UTC
Yes ... and asm/types.h doesn't have the conflicting identifier -- at least it doesn't for me in include/asm-x86_64/types.h and that's why I asked for an attached types.h; but then since the only place that it actually gets defined (after grepping through the headers) in is in <linux/types.h> anyway then the error would most likely be there... And hence a patch for it. Compilers are very strange sometimes ... :-)
Comment 10 Jon Wagoner 2004-12-27 22:31:45 UTC
Created attachment 47013 [details]
asm/types.h

Since noone has done this yet, and it's still open, I'm attaching the requested
asm/types.h.  I am also having the problem on Athlon 64.
Comment 11 Santiago Gala 2004-12-31 06:31:51 UTC
See Bug #75249 for an idea about what's going on
Comment 12 SpanKY gentoo-dev 2005-01-03 12:58:44 UTC
this bug is for amd64 ONLY

goto Bug 76358 if you want ppc help
Comment 13 Tim Yamin (RETIRED) gentoo-dev 2005-01-05 09:15:16 UTC
Fixed in CVS, please sync and remerge linux26-headers. Reopen this bug if you have any further issues. Thanks!
Comment 14 Herbie Hopkins (RETIRED) gentoo-dev 2005-01-05 15:42:26 UTC
still getting compile errors here ;( although different ones this time...


 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../lib -I../../lib -I../../src -DDATADIR=\"/usr/share/directfb-0.9.21\" -D_REENTRANT -Wall -O3 -ffast-math -pipe -march=athlon64 -O2 -pipe -fweb -ftracer -D_GNU_SOURCE -Werror-implicit-function-declaration -c idirectfbvideoprovider_v4l.c  -fPIC -DPIC -o .libs/idirectfbvideoprovider_v4l.o
In file included from /usr/include/linux/videodev.h:8,
                 from idirectfbvideoprovider_v4l.c:48:
/usr/include/linux/videodev2.h:490: error: parse error before "v4l2_std_id"
/usr/include/linux/videodev2.h:561: error: parse error before "v4l2_std_id"
/usr/include/linux/videodev2.h:566: error: parse error before '}' token
/usr/include/linux/videodev2.h:579: error: parse error before "v4l2_std_id"
/usr/include/linux/videodev2.h:582: error: parse error before '}' token
/usr/include/linux/videodev2.h:616: error: parse error before "v4l2_std_id"
/usr/include/linux/videodev2.h:618: error: parse error before '}' token
make[3]: *** [idirectfbvideoprovider_v4l.lo] Error 1
make[3]: Leaving directory `/home/portage/tmp/portage/DirectFB-0.9.21/work/DirectFB-0.9.21/interfaces/IDirectFBVideoProvider'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/portage/tmp/portage/DirectFB-0.9.21/work/DirectFB-0.9.21/interfaces'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/portage/tmp/portage/DirectFB-0.9.21/work/DirectFB-0.9.21'
make: *** [all-recursive-am] Error 2
Comment 15 Tim Yamin (RETIRED) gentoo-dev 2005-01-05 15:47:51 UTC
I changed the patch slightly a moment ago; try synching (you want linux26-headers-2.6.8.1-appCompat.patch to have an MD5 of 8f3a515e5e309495343a3eef4721ddd6) and remerging your headers.
Comment 16 Herbie Hopkins (RETIRED) gentoo-dev 2005-01-05 16:03:01 UTC
ok it works now, thanks.