Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34277 - kdemultimedia-3.1.4-r1 fails on plat_linux.c
Summary: kdemultimedia-3.1.4-r1 fails on plat_linux.c
Status: RESOLVED DUPLICATE of bug 32246
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-24 12:01 UTC by John Ottander
Modified: 2005-07-17 13:06 UTC (History)
4 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 John Ottander 2003-11-24 12:01:23 UTC
kdemultimedia-3.1.4-r1 fails to build on plat_linux.c


/bin/sh ../../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../.. -I/usr/kde/3.1/include -I/usr/qt/3/include -I/usr/X11R6/include   
-DQT_THREAD_SUPPORT  -D_REENTRANT  -ansi -W -Wall -pedantic -Wshadow
-Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -DNDEBUG -O2  -march=pentium4 -O2 -fomit-frame-pointer -pipe -c -o
plat_linux.lo `test -f 'plat_linux.c' || echo './'`plat_linux.c
rm: cannot remove `': Invalid argument
In file included from /usr/include/linux/cdrom.h:14,
                 from plat_linux.c:65:
                 /usr/include/asm/byteorder.h:38: error: syntax error before "__u64"
                 /usr/include/asm/byteorder.h: In function `___arch__swab64':
                 /usr/include/asm/byteorder.h:52: error: syntax error before ':'
token
                 In file included from plat_linux.c:70:
                 include/wm_cdrom.h: At top level:
                 include/wm_cdrom.h:63: warning: declaration of `index' shadows
a global declaration
                 /usr/include/string.h:267: warning: shadowed declaration is here
                 plat_linux.c:112: warning: no previous prototype for `gen_init'
                 plat_linux.c: In function `gen_init':
                 plat_linux.c:111: warning: unused parameter `d'
                 plat_linux.c: In function `wmcd_open':
                 plat_linux.c:128: warning: assignment discards qualifiers from
pointer target type
                 plat_linux.c:123: warning: unused variable `warned'
                 plat_linux.c: In function `wmcd_reopen':
                 plat_linux.c:184: warning: passing arg 2 of `wm_lib_message'
discards qualifiers from pointer target type
                 plat_linux.c:187: warning: passing arg 2 of `wm_lib_message'
discards qualifiers from pointer target type
                 plat_linux.c:192: warning: passing arg 2 of `wm_lib_message'
discards qualifiers from pointer target type
                 plat_linux.c: In function `wm_scsi':
                 plat_linux.c:258: warning: passing arg 2 of `wm_lib_message'
discards qualifiers from pointer target type
                 plat_linux.c:264: warning: passing arg 2 of `wm_lib_message'
discards qualifiers from pointer target type
                 plat_linux.c:256: warning: unused variable `ret'
                 plat_linux.c: At top level:
                 plat_linux.c:337: warning: declaration of `index' shadows a
global declaration
                 /usr/include/string.h:267: warning: shadowed declaration is here
                 plat_linux.c:338: warning: no previous prototype for
`gen_get_drive_status'
                 plat_linux.c:425: warning: no previous prototype for
`gen_get_trackcount'
                 plat_linux.c:440: warning: no previous prototype for
`gen_get_trackinfo'
                 plat_linux.c:462: warning: no previous prototype for
`gen_get_cdlen'
                 plat_linux.c:474: warning: no previous prototype for `gen_play'
                 plat_linux.c:512: warning: no previous prototype for `gen_pause'
                 plat_linux.c:521: warning: no previous prototype for `gen_resume'
                 plat_linux.c:530: warning: no previous prototype for `gen_stop'
                 plat_linux.c:540: warning: no previous prototype for `gen_eject'
                 plat_linux.c: In function `gen_eject':
                 plat_linux.c:549: warning: passing arg 2 of `wm_lib_message'
discards qualifiers from pointer target type
                 plat_linux.c:553: warning: passing arg 2 of `wm_lib_message'
discards qualifiers from pointer target type
                 plat_linux.c:575: warning: passing arg 2 of `wm_lib_message'
discards qualifiers from pointer target type
                 plat_linux.c:582: warning: passing arg 2 of `wm_lib_message'
discards qualifiers from pointer target type
                 plat_linux.c:594: warning: passing arg 2 of `wm_lib_message'
discards qualifiers from pointer target type
                 plat_linux.c: At top level:
                 plat_linux.c:627: warning: no previous prototype for
`gen_closetray'
                 plat_linux.c: In function `gen_closetray':
                 plat_linux.c:630: warning: passing arg 2 of `wm_lib_message'
discards qualifiers from pointer target type
                 plat_linux.c: At top level:
                 plat_linux.c:675: warning: no previous prototype for
`gen_set_volume'
                 plat_linux.c:700: warning: no previous prototype for
`gen_get_cdtext'
                 plat_linux.c: In function `gen_get_cdtext':
                 plat_linux.c:701: warning: implicit declaration of function
`wm_scsi_get_cdtext'plat_linux.c: At top level:
                 plat_linux.c:710: warning: no previous prototype for
`gen_get_volume'
                 plat_linux.c: In function `gen_get_volume':
                 plat_linux.c:709: warning: unused parameter `d'
                 plat_linux.c: At top level:

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.0-test9)
=================================================================
System uname: 2.6.0-test9 i686 Intel(R) Pentium(R) 4 CPU 2.26GHz
Gentoo Base System version 1.4.3.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/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="x86 apm avi encode foomaticdb gif libg++ libwww mad mikmod mpeg ncurses nls
pdflib quicktime truetype xml2 xmms zlib gdbm slang readline svga java sdl gpm
tcpd imlib gtk qt motif opengl mozilla ldap plotutils perl python mysql X gtk2
gnome xv alsa png jpeg tiff oggvorbis pam crypt ssl cups dvd cdr mmx sse spell
-3dnow -oss -berkdb -arts -esd -kde"


                 plat_linux.c:28: warning: `plat_linux_id' defined but not used
                 make[3]: *** [plat_linux.lo] Error 1
                 make[3]: Leaving directory
`/var/tmp/portage/kdemultimedia-3.1.4-r1/work/kdemultimedia-3.1.4/kscd/libwm'
                 make[2]: *** [all-recursive] Error 1
                 make[2]: Leaving directory
`/var/tmp/portage/kdemultimedia-3.1.4-r1/work/kdemultimedia-3.1.4/kscd'
                 make[1]: *** [all-recursive] Error 1
                 make[1]: Leaving directory
`/var/tmp/portage/kdemultimedia-3.1.4-r1/work/kdemultimedia-3.1.4'
                 make: *** [all] Error 2
                   
                  !!! ERROR: kde-base/kdemultimedia-3.1.4-r1 failed.
                  !!! Function kde_src_compile, Line 137, Exitcode 2
                  !!! died running emake, kde_src_compile:make




Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 John Ottander 2003-11-24 12:04:27 UTC
whops a little copy/paste mistake. the build output is split in two by the emerge info. 
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2003-11-24 13:19:18 UTC
what version of linux-headers do you have installed?
Comment 3 John Ottander 2003-11-24 14:08:37 UTC
my linux kerenel headers are 2.4.21-r1
Comment 4 Daath 2003-11-25 03:51:39 UTC
Fails for me too with 2.4.20-r8
Comment 5 Cubittus 2003-11-25 04:48:46 UTC
I'm getting this with kernel-2.6.0-test9-gentoo

It's preventing emerge kde on my new box :-(

I'm using ~x86 and gcc 3.3.2-r2.

byteorder.h comes from linux-headers-2.4.21-r1

Could this be a gcc version/kernel headers version issue?
Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2003-11-25 04:51:15 UTC
Probably related to this bug as well:

http://bugs.gentoo.org/show_bug.cgi?id=32246
Comment 7 Michael Evans 2003-11-30 18:29:42 UTC
I get this bug too.
Headders/source are from a 2.4.20 kernel (from the install CD)
I needed to use the bootCD to get network at home so that I could SSH to the system and compile stuff over break.

Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.21-gss)
=================================================================
System uname: 2.4.21-gss i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=i686 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.seren.com/gentoo ftp://gentoo.mirrors.pair.com/ http://mirror.tucdemonic.org/gentoo/ http://gentoo.ccccom.com"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm arts avi berkdb bonobo cdr crypt cups directfb encode esd foomaticdb gdbm gif gnome gpm gtk imlib java jpeg kde ldap libg++ libwww mad mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"


I get the EXACT same errors.  Oddly my other system which didn't need as many global updates did not fail to emerge this, further I tried copying /usr/include from the working system to the broken one, larger by about 20 megs, but no effects ill or otherwise.

What does __extension__ do before a typedef anyway?
The manpage had that in there, but I've no idea what it does...
Comment 8 Michael Evans 2003-11-30 18:32:18 UTC
Here's what's left.  Maybe gcc or one of the other updates will fix the problem.

cdimage usr # emerge -up world

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

Calculating world dependencies ...done!
[ebuild     U ] kde-base/kdemultimedia-3.1.4-r1 [3.1.3]
[ebuild     U ] kde-base/kdegraphics-3.1.4 [3.1.3]
[ebuild     U ] kde-base/kdeadmin-3.1.4 [3.1.3]
[ebuild     U ] kde-base/kdeartwork-3.1.4 [3.1.3]
[ebuild     U ] kde-base/kdeutils-3.1.4 [3.1.3]
[ebuild     U ] kde-base/kde-3.1.4 [3.1.3]
[ebuild     U ] sys-apps/diffutils-2.8.4-r4 [2.8.4-r3]
[ebuild     U ] sys-devel/gcc-config-1.3.4 [1.3.3-r1]
[ebuild     U ] sys-devel/gcc-3.3.2-r3 [3.3.2-r2]
[ebuild     U ] sys-devel/bin86-0.16.13 [0.16.0]
[ebuild     U ] sys-fs/reiserfsprogs-3.6.11 [3.6.8]
[ebuild  N    ] sys-kernel/mm-sources-2.6.0_beta10-r1
[ebuild     U ] media-libs/libart_lgpl-2.3.16 [2.3.14]
[ebuild     U ] sys-apps/psmisc-21.2-r4 [21.2-r3]
[ebuild     U ] net-misc/rsync-2.5.6-r4 [2.5.6-r3]
[ebuild     U ] sys-apps/slocate-2.7-r3 [2.7-r2]
[ebuild     U ] dev-libs/libpcre-4.4 [4.2-r1]
[ebuild     U ] net-misc/dhcpcd-1.3.22_p4-r3 [1.3.22_p4-r2]
[ebuild     U ] sys-apps/coreutils-5.0.91-r1 [5.0-r3]
[ebuild     U ] sys-apps/findutils-4.1.20-r1 [4.1.7-r4]
[ebuild     U ] net-misc/iputils-021109 [020927]
[ebuild     U ] sys-apps/usbutils-0.11-r3 [0.11-r1]
[ebuild     U ] sys-apps/hotplug-20030805-r2 [20030501-r2]
[ebuild     U ] net-misc/e100-2.3.30 [2.2.21]
[ebuild     U ] sys-apps/baselayout-1.8.6.12-r2 [1.8.6.12]
[ebuild     U ] media-libs/faad2-2.0_rc3 [1.1]
[ebuild     U ] media-video/mplayer-1.0_pre2 [0.92]
[ebuild     U ] app-misc/screen-4.0.1-r1 [3.9.15-r1]
Comment 9 Adrian Almenar 2003-12-01 07:32:30 UTC
I compiled it fine, downgrading my linux-headers to 2.4.19-r1.

Just my .02$ cents.
Comment 10 Thomas T. Veldhouse 2003-12-01 21:05:40 UTC
I also am getting this.

ACCEPT_KEYWORDS="~x86"

USE="acl acpi apache2 cdr clamav curl dga doc dvd dvdr emacs ffmpeg \
     freetype fs gtk2 gtkhtml imap java joystick js junit ldap maildir mdb \
     mmx mozaccess mozcalendar mozctl mozilla mozinterfaceinfo nptl \
     offensive openssh pic postgres radeon samba scanner sdk sse tcltk \
     transcode type1 usb wmf X509 Xaw3d xfs xinerama xvid yahoo -oss -apm \
     -gpm -gnome"

linux-2.6.0-beta11

Comment 11 Tim Yamin (RETIRED) gentoo-dev 2003-12-02 10:18:36 UTC
This is what happens when ANSI strictness in ANSI mode is disabled for some reason or another giving this [ please see bug #32246 comment #35 ].

Resolution: byteorder.h should have "__asm__" instead of "asm" in every function using "__inline__" instead of "inline" and that would go away.

Please see bug #32246 comment #38...

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