Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mplayer fails to build
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
penguinlnx
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2005
Posts: 124
Location: Ice Station Alert AFB

PostPosted: Wed Apr 20, 2005 8:34 pm    Post subject: Reply with quote

shouldn't the new kernel be 2.6.11-r3 ?
Back to top
View user's profile Send private message
grad_guy
Tux's lil' helper
Tux's lil' helper


Joined: 16 Nov 2004
Posts: 109
Location: UCSD, La Jolla, CA

PostPosted: Wed Apr 20, 2005 11:09 pm    Post subject: Reply with quote

Code:

straivir-res root # CFLAGS="-O2 -march=pentium4" emerge -pv  mplayer

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

Calculating dependencies ...done!
[ebuild   R   ] media-video/mplayer-1.0_pre6-r4  -3dfx -3dnow -3dnowext +X -aalib +alsa (-altivec) +arts +avi -bidi -cdparanoia -debug -dga -directfb -divx4linux -doc -dts -dv -dvb +dvd -dvdread -edl +encode +esd -fbcon -ggi +gif +gtk -i8x0 +ipv6 -jack -joystick +jpeg -libcaca -lirc -live -lzo +mad -matroska -matrox +mmx -mmxext +mpeg -mythtv -nas +nls -nvidia +oggvorbis +opengl +oss +png +real -rtc -samba +sdl +sse +sse2 +svga -tga -theora +truetype +v4l -v4l2 -xanim +xinerama +xmms +xv -xvid -xvmc 0 kB

Total size of downloads: 0 kB
straivir-res root # CFLAGS="-O2 -march=pentium4" emerge -v  mplayer


This works for me. I got passed msmpeg4.c and the rest just went smooth.

Code:

 straivir-res root # emerge --info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.12-rc2-nitro1 i686)
=================================================================
System uname: 2.6.12-rc2-nitro1 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr 20 2005, 00:11:12)]
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-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-Os -march=pentium4 -mcpu=i686 -pipe -fforce-addr -fomit-frame-pointer -ftracer"
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/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=pentium4 -mcpu=i686 -pipe -fforce-addr -fomit-frame-pointer -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts bmp cdr crypt cups dvd emboss encode esd foomaticdb fortran gdbm gif gpm gtk gtk2 imagemagick imlib ipv6 jpeg libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pdflib perl php png python quicktime readline real sdl spell sse sse2 ssl svga tcpd tiff truetype truetype-fonts type1-fonts usb v4l vorbis xinerama xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
[/quote]
Back to top
View user's profile Send private message
anz
Apprentice
Apprentice


Joined: 05 Feb 2003
Posts: 279
Location: Vienna

PostPosted: Thu Apr 21, 2005 9:41 am    Post subject: it worked!!! Reply with quote

Thanks!

ebuilding worked.
I just
(1) changed the CFLAGS in the make.conf to:
CFLAGS="-march=pentium4 -O2"
(although its a notebook with centrino)
(2) reemerged libsdl
(3) emerged mplayer (now without crashing)

Thank you for your tips!!!!!!!
_________________
Greetings from Vienna
Back to top
View user's profile Send private message
Thnikkaman
n00b
n00b


Joined: 30 Jun 2004
Posts: 63

PostPosted: Thu Apr 21, 2005 7:56 pm    Post subject: Reply with quote

That worked for me as well.

Do you think we can get a **Fixed** at the beginning of the thread to help other people with this problem?
Back to top
View user's profile Send private message
Ijo
n00b
n00b


Joined: 22 Jul 2003
Posts: 68

PostPosted: Fri Apr 22, 2005 10:46 am    Post subject: Reply with quote

Hi,

Here with AMD64, similar problem also fixed with just:

- reemerged libsdl
- emerged mplayer

thanks for the tip
Back to top
View user's profile Send private message
HouZe
n00b
n00b


Joined: 04 Jun 2003
Posts: 14
Location: Växjö, Sweden

PostPosted: Sat Apr 23, 2005 1:36 pm    Post subject: Still problem Reply with quote

I tried to do this
Code:

CFLAGS="-O2 -march=athlon-xp" emerge media-libs/libsdl
CFLAGS="-O2 -march=athlon-xp" emerge mplayer

But I still got the same errors,

Code:

cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -fno-PIC -O2 -march=athlon-xp -frename-registers -fno-pie -fno-pie -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I.. -I../loader  -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I../libavcodec -I../libavformat   -I/usr/src/linux/include -o stream_vcd.o stream_vcd.c
In file included from /usr/src/linux/include/asm/byteorder.h:57,
                 from /usr/src/linux/include/linux/cdrom.h:14,
                 from vcd_read.h:7,
                 from stream_vcd.c:25:
/usr/src/linux/include/linux/byteorder/little_endian.h:43: error: parsningsfel före "__cpu_to_le64p"
/usr/src/linux/include/linux/byteorder/little_endian.h: In function `__cpu_to_le64p':
/usr/src/linux/include/linux/byteorder/little_endian.h:45: error: "__le64" odeklarerad (första förekomsten i denna funktionen)
/usr/src/linux/include/linux/byteorder/little_endian.h:45: error: (Varje odeklarerad identifierare rapporteras bara
/usr/src/linux/include/linux/byteorder/little_endian.h:45: error: en gång för varje funktion den finns i.)
/usr/src/linux/include/linux/byteorder/little_endian.h: At top level:
/usr/src/linux/include/linux/byteorder/little_endian.h:47: error: parsningsfel före symbolen '*'
/usr/src/linux/include/linux/byteorder/little_endian.h: In function `__le64_to_cpup':
/usr/src/linux/include/linux/byteorder/little_endian.h:49: error: "p" odeklarerad (första förekomsten i denna funktionen)
/usr/src/linux/include/linux/byteorder/little_endian.h: At top level:
/usr/src/linux/include/linux/byteorder/little_endian.h:51: error: parsningsfel före "__cpu_to_le32p"
/usr/src/linux/include/linux/byteorder/little_endian.h: In function `__cpu_to_le32p':
/usr/src/linux/include/linux/byteorder/little_endian.h:53: error: "__le32" odeklarerad (första förekomsten i denna funktionen)
/usr/src/linux/include/linux/byteorder/little_endian.h: At top level:
/usr/src/linux/include/linux/byteorder/little_endian.h:55: error: parsningsfel före symbolen '*'
/usr/src/linux/include/linux/byteorder/little_endian.h: In function `__le32_to_cpup':
/usr/src/linux/include/linux/byteorder/little_endian.h:57: error: "p" odeklarerad (första förekomsten i denna funktionen)
/usr/src/linux/include/linux/byteorder/little_endian.h: At top level:
/usr/src/linux/include/linux/byteorder/little_endian.h:59: error: parsningsfel före "__cpu_to_le16p"
/usr/src/linux/include/linux/byteorder/little_endian.h: In function `__cpu_to_le16p':
/usr/src/linux/include/linux/byteorder/little_endian.h:61: error: "__le16" odeklarerad (första förekomsten i denna funktionen)
/usr/src/linux/include/linux/byteorder/little_endian.h: At top level:
/usr/src/linux/include/linux/byteorder/little_endian.h:63: error: parsningsfel före symbolen '*'
/usr/src/linux/include/linux/byteorder/little_endian.h: In function `__le16_to_cpup':
/usr/src/linux/include/linux/byteorder/little_endian.h:65: error: "p" odeklarerad (första förekomsten i denna funktionen)
/usr/src/linux/include/linux/byteorder/little_endian.h: At top level:
/usr/src/linux/include/linux/byteorder/little_endian.h:67: error: parsningsfel före "__cpu_to_be64p"
/usr/src/linux/include/linux/byteorder/little_endian.h: In function `__cpu_to_be64p':
/usr/src/linux/include/linux/byteorder/little_endian.h:69: error: "__be64" odeklarerad (första förekomsten i denna funktionen)
/usr/src/linux/include/linux/byteorder/little_endian.h:69: error: parsningsfel före "__swab64p"
/usr/src/linux/include/linux/byteorder/little_endian.h: At top level:
/usr/src/linux/include/linux/byteorder/little_endian.h:71: error: parsningsfel före symbolen '*'
/usr/src/linux/include/linux/byteorder/little_endian.h: In function `__be64_to_cpup':
/usr/src/linux/include/linux/byteorder/little_endian.h:73: error: "p" odeklarerad (första förekomsten i denna funktionen)
/usr/src/linux/include/linux/byteorder/little_endian.h: At top level:
/usr/src/linux/include/linux/byteorder/little_endian.h:75: error: parsningsfel före "__cpu_to_be32p"
/usr/src/linux/include/linux/byteorder/little_endian.h: In function `__cpu_to_be32p':
/usr/src/linux/include/linux/byteorder/little_endian.h:77: error: "__be32" odeklarerad (första förekomsten i denna funktionen)
/usr/src/linux/include/linux/byteorder/little_endian.h:77: error: parsningsfel före "__swab32p"
/usr/src/linux/include/linux/byteorder/little_endian.h: At top level:
/usr/src/linux/include/linux/byteorder/little_endian.h:79: error: parsningsfel före symbolen '*'
/usr/src/linux/include/linux/byteorder/little_endian.h: In function `__be32_to_cpup':
/usr/src/linux/include/linux/byteorder/little_endian.h:81: error: "p" odeklarerad (första förekomsten i denna funktionen)
/usr/src/linux/include/linux/byteorder/little_endian.h: At top level:
/usr/src/linux/include/linux/byteorder/little_endian.h:83: error: parsningsfel före "__cpu_to_be16p"
/usr/src/linux/include/linux/byteorder/little_endian.h: In function `__cpu_to_be16p':
/usr/src/linux/include/linux/byteorder/little_endian.h:85: error: "__be16" odeklarerad (första förekomsten i denna funktionen)
/usr/src/linux/include/linux/byteorder/little_endian.h:85: error: parsningsfel före "__swab16p"
/usr/src/linux/include/linux/byteorder/little_endian.h: At top level:
/usr/src/linux/include/linux/byteorder/little_endian.h:87: error: parsningsfel före symbolen '*'
/usr/src/linux/include/linux/byteorder/little_endian.h: In function `__be16_to_cpup':
/usr/src/linux/include/linux/byteorder/little_endian.h:89: error: "p" odeklarerad (första förekomsten i denna funktionen)
make[1]: *** [stream_vcd.o] Fel 1
make[1]: Leaving directory `/var/tmp/portage/mplayer-1.0_pre6-r4/work/MPlayer-1.0pre6a/libmpdemux'
make: *** [libmpdemux/libmpdemux.a] Fel 2

_________________
A computer is never more stupid than it's user.
Back to top
View user's profile Send private message
drzook
n00b
n00b


Joined: 04 Mar 2004
Posts: 12

PostPosted: Sun Apr 24, 2005 8:55 am    Post subject: Reply with quote

After reemerging all the things for me it seems that the kernel header /usr/src/linux/include/linux/byteorder/little_endian.h from my kernel 2.6.9-r14 is invalid maybe in conjunction with a new gcc version. But with the kernel headers from 2.6.10-r6 and 2.6.11-r6 it compiled without error.

drzook
_________________
The probability of someone watching you is proportional to the stupidity of your action.
Back to top
View user's profile Send private message
HouZe
n00b
n00b


Joined: 04 Jun 2003
Posts: 14
Location: Växjö, Sweden

PostPosted: Tue Apr 26, 2005 10:31 pm    Post subject: Reply with quote

drzook wrote:
After reemerging all the things for me it seems that the kernel header /usr/src/linux/include/linux/byteorder/little_endian.h from my kernel 2.6.9-r14 is invalid maybe in conjunction with a new gcc version. But with the kernel headers from 2.6.10-r6 and 2.6.11-r6 it compiled without error.

drzook


Yes, i changed my kernel-source to 2.6.11-r6 and now I can compile Mplayer.
_________________
A computer is never more stupid than it's user.
Back to top
View user's profile Send private message
cessman4life
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2005
Posts: 141

PostPosted: Thu Apr 28, 2005 10:10 pm    Post subject: Reply with quote

I was able to install mplayer after disabling 3dfx.

syntax: USE="-3dfx" emerge mplayer
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum