Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41690 - mplayer-1.0-pre_3 won't compile
Summary: mplayer-1.0-pre_3 won't compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-15 11:17 UTC by Mario Doria
Modified: 2004-03-31 13:34 UTC (History)
2 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 Mario Doria 2004-02-15 11:17:00 UTC
When upgrading to mplayer-1.0-pre_3 I get this error:
gcc -c -O4 -march=pentium4 -mcpu=pentium4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -Ilibmpdemux -Iloader -Ilibvo -I/usr/include/freetype2   -I/usr/include/SDL -D_REENTRANT -I/usr/X11R6/include      -o mencoder.o mencoder.c
In file included from libavcodec/avcodec.h:15,
                 from mencoder.c:78:
libavcodec/rational.h:35: error: syntax error before "__attribute__"
libavcodec/rational.h:43: error: syntax error before "__attribute__"
In file included from /usr/include/freetype2/freetype/config/ftstdlib.h:74,
                 from /usr/include/freetype2/freetype/config/ftconfig.h:44,
                 from /usr/include/freetype2/freetype/freetype.h:42,
                 from libvo/font_load.h:6,
                 from mencoder.c:170:
/usr/include/ctype.h:190: error: syntax error before "__attribute__"
/usr/include/ctype.h:196: error: syntax error before "__attribute__"
In file included from libmpdemux/dvbin.h:5,
                 from cfg-common.h:361,
                 from cfg-mencoder.h:5,
                 from mencoder.c:250:
libmpdemux/dvb_defaults.h:69:10: warning: #warning No DVB-T country defined in dvb_defaults.h
libmpdemux/dvb_defaults.h:70:10: warning: #warning defaulting to UK
libmpdemux/dvb_defaults.h:71:10: warning: #warning Ignore this if using Satellite or Cable
make: *** [mencoder.o] Error 1

!!! ERROR: media-video/mplayer-1.0_pre3 failed.
!!! Function src_compile, Line 307, Exitcode 2
!!! Failed to build MPlayer!

xyu mplayer # emerge info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040207-r0, 2.6.3-rc2-gentoo)
=================================================================
System uname: 2.6.3-rc2-gentoo i686 Intel(R) Celeron(R) CPU 2.20GHz
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -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.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox"
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=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb cdr crypt cups dvb dvd encode esd foomaticdb gdbm gif gphoto2 gpm gtk2 imlib java jikes jpeg kde libg++ libwww mad maildir mikmod mmx motif moznocalendar moznoirc mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell sse ssl svga tcpd truetype video_cards_i810 x86 xml2 xmms xv zlib"


Reproducible: Always
Steps to Reproduce:
Comment 1 Martin Diers 2004-02-24 13:47:37 UTC
Confirmed here. Also using a pentium4. Flags match the example above. Error identical. emerge info follows

Gentoo Base System version 1.4.3.13
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-love3)
=================================================================
System uname: 2.6.3-love3 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz
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="-O2 -march=pentium4 -mcpu=pentium4 -fomit-frame-pointer -fmerge-all-constants -pipe -mfpmath=sse -mmmx -msse -msse2"
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.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -mcpu=pentium4 -fomit-frame-pointer -fmerge-all-constants -pipe -mfpmath=sse -mmmx -msse -msse2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache colorgcc prelink sandbox"
GENTOO_MIRRORS="ftp://gentoo.noved.org/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://mirrors.tds.net/gentoo http://mirrors.tds.net/gentoo http://gentoo.noved.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X aalib acpi alsa apache2 arts avi berkdb bonobo cdr crypt cups dga directfb dnd dv dvd encode esd ethereal evo fastcgi fbcon flac flash foomaticdb gd gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 guile imap imlib innodb java jpeg kde ldap libwww mad maildir memlimit mikmod mmx motif mozilla mpeg mysql ncurses nls noapm odbc oggvorbis opengl oss pam pcmcia pda pdflib perl png pnp python qt quicktime radeon readline ruby samba sasl sdl slang slp spell sse ssl svga tcltk tcpd tetex tiff truetype trusted usb video_cards_radeon wmf x86 xinerama xml xml2 xmms xv zeo zlib"
Comment 2 Martin Diers 2004-02-24 13:54:26 UTC
Addendum to above: using linux-headers-2.6.1
Comment 3 Martin Diers 2004-02-24 14:13:48 UTC
I was able to work around this bug by upgrading linux-headers to 2.6.3, which are currently hard masked. mplayer then compiled successfully.
Comment 4 Mario Doria 2004-02-24 14:30:37 UTC
I installed the linux headers (2.6.3) from gentoo-dev-sources-2.6.3-rc2, by copying /usr/src/include/linux, include/asm-generic, include/asm-i386 and symlinking include/asm-i386 to include/asm.

Then I rebuild glibc and still no dice. I'll try by installing the ebuild for linux-headers 2.6.3
Comment 5 ta2002 2004-03-14 00:27:35 UTC
I have a similar problem.

mplayer-1.0_pre3-r1 failed to compile:

gcc -c -O4 -march=athlon-tbird -mcpu=athlon-tbird -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I../loader       -o demux_mkv.o demux_mkv.cpp
demux_mkv.cpp: In function `void parse_cues(mkv_demuxer_t*, long long unsigned
   int)':
demux_mkv.cpp:1229: error: `KaxCueReference' undeclared (first use this
   function)
demux_mkv.cpp:1229: error: (Each undeclared identifier is reported only once
   for each function it appears in.)
demux_mkv.cpp:1229: error: `cref' undeclared (first use this function)
demux_mkv.cpp:1303: error: parse error before `*' token
make[1]: *** [demux_mkv.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/mplayer-1.0_pre3-r1/work/MPlayer-1.0pre3/libmpdemux'
make: *** [libmpdemux/libmpdemux.a] Error 2

!!! ERROR: media-video/mplayer-1.0_pre3-r1 failed.
!!! Function src_compile, Line 307, Exitcode 2
!!! Failed to build MPlayer!

I need this so I can get ffmpeg-0.4.8.20040222 installed, so I can get
openh323 installed, so I can get ohphone installed (what a  mess).

Running the 2.6.3 kernel, but still the 2.4.21 headers
Comment 6 Joel Martin (RETIRED) gentoo-dev 2004-03-31 10:08:57 UTC
I'm not sure the post by throw_away_2002@yahoo.com is the same problem. That's
a dupe of 42820 before it became a different enhancement issue. For that problem,
try one of the more recent revisions of mplayer.

For the earlier problem, could you please try it with a more recent revision 
(*-r5) and provide more of the output (including emerge command line) from the problem please (as an attachment preferrably)?
Comment 7 Mario Doria 2004-03-31 13:18:53 UTC
I've just emerged mplayer-1.0_pre3-r5.ebuild with no problems.
Comment 8 Joel Martin (RETIRED) gentoo-dev 2004-03-31 13:34:35 UTC
Great. Then I'm closing this since it no longer appears to be relevant to the 
recent incantations of the ebuild.