Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84353 - kdemultimedia-3.3.2 fails to compile due to /usr/include/linux/byteorder/little_endian.h 64-bit stuff
Summary: kdemultimedia-3.3.2 fails to compile due to /usr/include/linux/byteorder/litt...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 89387
  Show dependency tree
 
Reported: 2005-03-06 16:22 UTC by Kevin F. Quinn (RETIRED)
Modified: 2005-04-19 16:35 UTC (History)
0 users

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


Attachments
Patch byteorder/little_endian.h to avoid 64-bit functions when __STRICT_ANSI__ (linux-headers-2.6.10-strict-le.patch,968 bytes, patch)
2005-03-06 16:24 UTC, Kevin F. Quinn (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin F. Quinn (RETIRED) gentoo-dev 2005-03-06 16:22:50 UTC
This looks like a recurrence of something seen before, previous relevant bugs are #26185, #32246, #38326, looking like a kernel header problem.  I'm using ~x86 linux-headers-2.6.10 hence assignment to plasmaroo.  I think from previous bugs that the header file should wrap the 64-bit functions; I stuck '#ifndef __STRICT_ANSI__' around them and the failing command succeeds.

Here's the error:

/bin/sh ../../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr/kde/3.3/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -DNDEBUG -DNO_DEBUG -O2 -march=athlon-xp -pipe -O2 -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fpermissive -c -o libinput_la.all_cpp.lo libinput_la.all_cpp.cpp
In file included from /usr/include/asm/byteorder.h:59,
                 from /usr/include/linux/cdrom.h:14,
                 from cdromAccess_Linux.cpp:17,
                 from cdromAccess.cpp:38,
                 from libinput_la.all_cpp.cpp:10:
/usr/include/linux/byteorder/little_endian.h:43: error: `__le64' does not name a type
/usr/include/linux/byteorder/little_endian.h:47: error: expected `,' or `...' before '*' token
/usr/include/linux/byteorder/little_endian.h: In function `__u64 __le64_to_cpup(int)':
/usr/include/linux/byteorder/little_endian.h:49: error: `p' undeclared (first use this function)
/usr/include/linux/byteorder/little_endian.h:49: error: (Each undeclared identifier is reported only once for each function it appears in.)
/usr/include/linux/byteorder/little_endian.h: At global scope:
/usr/include/linux/byteorder/little_endian.h:67: error: `__be64' does not name a type
/usr/include/linux/byteorder/little_endian.h:71: error: expected `,' or `...' before '*' token
/usr/include/linux/byteorder/little_endian.h: In function `__u64 __be64_to_cpup(int)':
/usr/include/linux/byteorder/little_endian.h:73: error: `p' undeclared (first use this function)
make[4]: *** [libinput_la.all_cpp.lo] Error 1




Emerge info:
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3, glibc-2.3.4.20050125-r1, 2.6.11-grsec i686)
=================================================================
System uname: 2.6.11-grsec i686 AMD Athlon(tm) XP 3200+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  9 2005, 18:11:15)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r4
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -pipe -O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks fixpackages sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.linux.ee/pub/gentoo/distfiles/ http://ftp.easynet.nl/mirror/gentoo/ http://ftp.heanet.ie/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/var/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib acl acpi alsa apm arts avi berkdb bidi bitmap-fonts cdr crypt cups curl dhc-fqdn directfb dlloader doc dvb dvd dvdr emboss encode esd f77 faad fam fbcon ffmpeg flac font-server foomaticdb fortran gcj gdbm gif gnome gpm gstreamer gtk gtk2 guile hardened imagemagick imlib ipv6 java javamail jce jikes jpeg junit kde kdeenablefinal kerberos libg++ libwww mad mbox mikmod mmx motif mozilla mp3 mpeg mpeg4 mysql ncurses nls nptl odbc oggvorbis opengl oss pam pdflib perl pic pie png postgres python qt quicktime readline ruby samba sdl slang speex spell sse ssl svga tcltk tcpd tiff truetype truetype-fonts trusted type1-fonts unicode usb v4l v4l2 wxwindows xinerama xml2 xmms xosd xprint xv xvid zlib linguas_en-gb linguas_en linguas_de linguas_es linguas_it linguas_fr"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Kevin F. Quinn (RETIRED) gentoo-dev 2005-03-06 16:24:31 UTC
Created attachment 52820 [details, diff]
Patch byteorder/little_endian.h to avoid 64-bit functions when __STRICT_ANSI__

Wrap 64-bit functions in #ifndef __STRICT_ANSI__
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2005-04-19 16:35:39 UTC
Looks like I added this to CVS a while ago but didn't close the bug, so doing so now. Thanks for the patch!