You are not logged in.
Pages: 1
Hi
I´m trying to build mplayer from svn.
But it always fails with this error
/usr/bin/ld: cannot open output file mplayer: Is a directory
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
==> ERROR: Build Failed. Aborting..
This is my PKGBUILD
# $Id: PKGBUILD,v 1.14 2007/04/14 08:41:43 tom Exp $
# Maintainer: Woody Gilk <woody@archlinux.org>
# Contributor: lucke <lucke at o2 dot pl>
# Contributor: Tom K <tomk@runbox.com>
pkgname=mplayer-svn
pkgver=24074
pkgrel=1
arch=('i686')
pkgdesc="A movie player for linux"
depends=('libmad' 'libungif' 'cdparanoia' 'gtk2' 'codecs' 'sdl' 'xvidcore' \
'libjpeg' 'lame' 'libtheora' 'esd' 'faad2' 'faac' 'ttf-bitstream-vera' \
'libxxf86dga' 'fontconfig' 'libxinerama' 'libxv' 'libpng' \
'libxxf86vm' 'libgl')
makedepends=('subversion' 'pkgconfig')
source=(ftp://ftp.mplayerhq.hu/MPlayer/Skin/Blue-1.7.tar.bz2)
conflicts=('mplayer')
provides=('mplayer')
url="http://www.mplayerhq.hu/"
license="GPL"
_svntrunk=svn://svn.mplayerhq.hu/mplayer/trunk
_svnmod=mplayer
build() {
cd $startdir/src
svn co $_svntrunk $_svnmod --config-dir ./ -r $pkgver
cp -r $_svnmod $_svnmod-build
cd $_svnmod-build
unset CFLAGS
./configure --prefix=/usr --enable-gui --disable-arts --enable-x11 \
--disable-runtime-cpudetection --enable-sdl \
--enable-theora --confdir=/etc/mplayer --disable-nas \
--enable-gl --enable-tv-v4l1 --enable-tv-v4l2 --enable-largefiles \
--disable-liblzo --disable-speex --disable-openal \
--enable-smb --enable-aa --disable-fribidi --disable-libdv --disable-musepack \
--language=all --disable-lirc --disable-dvdnav --disable-esd \
make || return 1
make DESTDIR=$startdir/pkg install || return 1
install -m644 etc/{codecs.conf,input.conf,example.conf} $startdir/pkg/etc/mplayer
ln -s /usr/share/fonts/TTF/Vera.ttf $startdir/pkg/usr/share/mplayer/subfont.ttf
rm -rf $startdir/pkg/usr/share/mplayer/font
mv $startdir/src/Blue $startdir/pkg/usr/share/mplayer/skins/default
rm -rf ../$_svnmod-build
}
md5sums=('e4e2020d11b681aac898103b3ba723c4')
Anyone an idea how to fix this?
thanks
Offline
When exactly does this error occur?
Do you use versionpkg?
Offline
I've just built rev 24247 with no errors, using versionpkg. It works as expected, and it will be in unstable shortly.
Offline
ok I tried versionpkg, but same error.
here is a little bit longer output
make[1]: Leaving directory `/home/mic2/builds/play-svn/src/mplayer-build/osdep'
cc -o mplayer mplayer.o m_property.o mp_fifo.o mp_msg.o mixer.o parser-mpcmd.o subopt-helper.o command.o asxparser.o codec-cfg.o cpudetect.o edl.o find_sub.o m_config.o m_option.o m_struct.o mpcommon.o parser-cfg.o playtree.o playtreeparser.o spudec.o sub_cc.o subreader.o vobsub.o unrarlib.o libvo/libvo.a libao2/libao2.a input/libinput.a vidix/libvidix.a gui/libgui.a libmpcodecs/libmpcodecs.a libaf/libaf.a libmpdemux/libmpdemux.a stream/stream.a libswscale/libswscale.a libvo/libosd.a libavformat/libavformat.a libavcodec/libavcodec.a libavutil/libavutil.a libpostproc/libpostproc.a loader/libloader.a mp3lib/libmp3.a liba52/liba52.a libmpeg2/libmpeg2.a libfaad2/libfaad2.a tremor/libvorbisidec.a dvdread/libdvdread.a libdvdcss/libdvdcss.a libass/libass.a osdep/libosdep.a -lXv -lXinerama -lXxf86vm -lXxf86dga -lGL -ldl -lcaca -lncurses -lncurses -Wl,-rpath,/usr/lib -lSDL -lpthread -ljack -lfaac -lx264 -lpthread -lmp3lame -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpng12 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lglib-2.0 -L/usr/lib -L/usr/lib -Wl,-z,noexecstack -lncurses -lsmbclient -lpng -lz -ljpeg -lungif -lasound -ldl -lpthread -lcdda_interface -lcdda_paranoia -lfreetype -lz -lfontconfig -lz -lmad -ltheora -logg -ldts -lamrnb -lxvidcore -lm -lpthread -ldl -rdynamic -lm
/usr/bin/ld: cannot open output file mplayer: Is a directory
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
==> ERROR: Build Failed. Aborting...
==> ERROR: Reverting pkgver...
Offline
In the posted PKGBUILD, shouldn't the last backslash in the configure (after --disable-esd and before the make) be removed?
Last edited by semdornus (2007-08-29 08:49:56)
Offline
Try the PKGBUILD for mplayer-svn from our CVS - like I said, it works fine for me here.
Offline
how does your makepkg.conf look like ?
Offline
ok thanks guys
I just grabbed the PKGBUILD from your cvs and the building was fine.
thanks a lot
Offline
Try the PKGBUILD for mplayer-svn from our CVS - like I said, it works fine for me here.
I noticed a while ago amrnb was not needed by any packages anymore, and it wasn't even in the sync repos (so it showed up in pacman -Qm).
I only tried removing it today, but it seems mplayer-svn was built against it :
mplayer: error while loading shared libraries: libamrnb.so.0: cannot open shared object file: No such file or directory
Fortunately, the mplayer package works fine
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
I am also getting this error, i installed mplayer svntoday with pacman -Sy mplayer-svn:
mplayer: error while loading shared libraries: libamrnb.so.0: cannot open shared object file: No such file or directory
Offline
I get the same error with the repo mplayer-svn, building 24247 from source now.
edit/ compiling it myself fixed it, the repo version doesn't work for me.
Last edited by droog (2007-08-31 00:12:14)
Offline
ok which pkgbuild do i use? the one in the first post?
Offline
ok which pkgbuild do i use? the one in the first post?
Use abs to get all PKGBUILDs from the official repos. (you can read archwiki if you don't know how to use it, or can't figure it out ).
You can also use the cvs web interface :
http://cvs.archlinux.org/cgi-bin/viewcv … cvs-markup
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
I know about ABS and I looked there but there is no PKGBUILD for mplayer-svn. I'll grab the cvs one then.
Offline
> grep SUP /etc/abs/abs.conf
SUPFILES=(arch extra unstable community testing)
> ls /var/abs/unstable/multimedia/mplayer-svn
PKGBUILD
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
oh ofcourse, I just installed arch again and i forgot to edit /etc/abs/abs.conf.
Offline
I am also getting this error, i installed mplayer svntoday with pacman -Sy mplayer-svn:
mplayer: error while loading shared libraries: libamrnb.so.0: cannot open shared object file: No such file or directory
any solution to this?
Offline
U need to compile it yourself from abs or cvs, check the link after my post for the PKGBUILD
Offline
To mic64:
I guess you've ever aborted the process of pkg making, and then restart it again.
It's the script:
cp -r $_svnmod $_svnmod-build
in the PKGBUILD that makes a trick to you.
The first time it exec:
cp -r mplayer mplayer-build
which clone the mplayer dir to current path and name it mplayer-build.
But when you start makepkg again, the same script exec
cp -r mplayer mplayer-build/mplayer
which clone the dir to the path ./mplayer-build/. Of course the destination was named mplayer as the source.
So the linker complainted a mplayer dir exists when he wanted write the final bin file also named mplayer:
/usr/bin/ld: cannot open output file mplayer: Is a directory collect2: ld returned 1 exit status make: *** [mplayer] Error 1 ==> ERROR: Build Failed. Aborting..
I hope that you could understand my poor poor English, and my guess is right.=)
Last edited by xs1223 (2007-09-15 10:17:20)
Offline
Yes. I´ve foudn out, when aborting the build and starting it again causes the issue.
But it works fine now.
I am trying now to build mplayer with eac3 (hd-dvd) support, but can´t get it to work.
It is explained here: http://forum.doom9.org/showthread.php?t=129050
So, if anybody can give us a modified PKGBUILD, it would be great.
Offline
I had the same problem until I read this thread. Aborting the build > rebuild, WHAM!
I'm attempting to build mplayer-svn with nvidia xvmc support at the moment. I tried to also build it with pulseaudio support but the patch ( http://www.pulseaudio.org/attachment/wi … atch.patch ) makes the svn unable to compile.
Offline
when trying to build mplayer-svn i get this error:
h264.c: In function 'fill_caches':
h264.c:125: warning: assignment discards qualifiers from pointer target type
h264.c:164: warning: assignment discards qualifiers from pointer target type
h264.c:166: warning: assignment discards qualifiers from pointer target type
h264.c:170: warning: assignment discards qualifiers from pointer target type
h264.c: In function 'pred_direct_motion':
h264.c:1052: warning: assignment from incompatible pointer type
h264.c:1053: warning: assignment from incompatible pointer type
h264.c: In function 'filter_mb':
h264.c:6429: warning: initialization from incompatible pointer type
h264.c:6430: warning: initialization from incompatible pointer type
cabac.h: In function 'get_cabac_noinline':
cabac.h:527: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
cabac.h:527: error: 'asm' operand has impossible constraints
make[1]: *** [h264.o] Error 1
make[1]: Leaving directory `/home/corrupt/misc/AUR/mplayer-svn/src/mplayer-build/libavcodec'
make: *** [libavcodec/libavcodec.a] Error 2
==> ERROR: Build Failed.
Aborting...
any ideas?
Offline
Maybe you need to use x264-git which is in aur instead of x264, this is what i use when i compile mplayer and it's working.
Offline
The solution is posted in aur.
Offline
Pages: 1