Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124685 - net-www/mplayerplug-in-3.21 fails to compile with GCC4
Summary: net-www/mplayerplug-in-3.21 fails to compile with GCC4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Joe Jezak (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-03-02 12:41 UTC by Avuton Olrich
Modified: 2006-04-12 13:31 UTC (History)
2 users (show)

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


Attachments
gcc4 amd64 fix (mplayerplug-in-amd64-gcc4.patch,549 bytes, patch)
2006-04-03 09:36 UTC, Mark Loeser (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Avuton Olrich 2006-03-02 12:41:54 UTC
This does work with GCC-3.4.5-r1, does not with gcc-4.0.2

emerge --info:
Portage 2.1_pre5-r2 (!/usr/portage/profiles/default-linux/amd64/2005.1, gcc-4.0.2, glibc-2.3.6-r3, 2.6.16-rc5 x86_64)
=================================================================
System uname: 2.6.16-rc5 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System version 1.12.0_pre16
distcc[25436] (dcc_mkdir) ERROR: mkdir /var/tmp/portage/.distcc//state failed: No such file or directory [disabled]
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-pipe -O2 -march=k8"
DISTDIR="/usr/distfiles"
FEATURES="autoconfig collision-protect digest distlocks nostrip sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/shapeshifter/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 64bit 7zip X a52 aac acpi aim alsa ao audiofile avi bash-completion berkdb bitmap-fonts bzip2 c++ cairo calendar cddb cdparanoia clock-screen crypt css cups dbus debug dvd dvdr eds encode ext-png ext-zlib fam ffmpeg firefox flac foomaticdb fortran ftp gcj gdb gif glut glx gmail gpm grammar gstreamer gtalk gzip hal id3 image imlib imlib2 input_devices_keyboard input_devices_mouse java javascript joystick jpeg jpeg2k kde key-screen lame libsamplerate linuxkeys linuxthreads-tls live lzw lzw-tiff mmap mouse mozilla mozsvg mp3 mpeg mpeg2 mplayer ncurses net nforce2 nfs nntp no-old-linux nptl nptlonly nvidia objc offensive ogg opengl openssh oscar pam pdf pdflib perl png python qt quicktime rar readline real reiser4 reiserfs rss rtc samba scp screen sdl search-screen session smp sockets speedo speex spell ssl svg svgz symlink sysfs syslog szip t1lib theora threads tiff truetype truetype-fonts type1 type1-fonts udev unicode usb userlocales utf8 video_cards_nv video_cards_nvidia vim vim-with-x web wma wma123 wmf wordperfect xinerama xpm xrandr xscreensaver xv xvmc zip zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS


Source/nsIScriptableMplayerPlugin.h:25: warning: 'class nsIScriptableWMPPlugin' has virtual functions but non-virtual destructor
Source/nsIScriptableMplayerPlugin.h:120: warning: 'class nsIScriptableMplayerPlugin' has virtual functions but non-virtual destructor
Source/nsScriptablePeer.h:56: warning: 'class nsClassInfoMixin' has virtual functions but non-virtual destructor
Source/plugin-ui.cpp: In function 'void DrawUI(_WidgetRec*, nsPluginInstance*, char*, int, int)':
Source/plugin-ui.cpp:284: error: cast from '_WidgetRec*' to 'int' loses precision
make: *** [plugin-ui.o] Error 1
make: *** Waiting for unfinished jobs....
Comment 1 Joe Jezak (RETIRED) gentoo-dev 2006-03-14 07:02:18 UTC
This looks like a 64 bit issue (casting a pointer to an int), and indeed, it works fine here on a ppc32 system.  I'll build a 64 bit toolchain and see if I can reproduce it.
Comment 2 Patrizio Bassi 2006-03-20 01:12:59 UTC
works for me on gcc 4.1.0 (x86)
Comment 3 Mark Loeser (RETIRED) gentoo-dev 2006-04-03 09:36:18 UTC
Created attachment 83817 [details, diff]
gcc4 amd64 fix

The code is never executed anyway, so we might as well get rid of it :)
Comment 4 Joe Jezak (RETIRED) gentoo-dev 2006-04-12 13:31:37 UTC
Applied, thanks Mark.  I'll ask upstream if they want to apply it.  Feel free to reopen if there are further problems (there's a new version).