You are not logged in.

#1 2006-06-15 08:58:23

TheGrudge
Member
Registered: 2006-06-15
Posts: 206
Website

Mplayer - can't build package with ABS

Hi,

I'm new to Arch and its Building System, so maybe this problem isn't a problem for you, but I can't find a solution...

I wanted to install mplayer, but pacman wants to install the GTK1 package, which I will never use because I don't run software using GTK1.

So I decided to build the package on my own, it worked fine for me on Debian, but in Arch I can't compile it.
Here is my PKGBUILD, I removed the dependency (gtk) and the theme-package (blue), removed the gui configure option and the v4l options:

# $Id: PKGBUILD,v 1.64 2006/03/28 18:28:47 arjan Exp $
# Maintainer: dorphell <dorphell>
pkgname=mplayer
pkgver=1.0pre7
pkgrel=6
pkgdesc="A movie player for linux"
depends=('libmad' 'libungif' 'cdparanoia' 
         'codecs' 'sdl' 'libjpeg' 'lame' 'libtheora' 
         'esd' 'faad2' 'ttf-bitstream-vera' 'libxxf86dga' 
         'fontconfig' 'libxinerama' 'libxv' 'libpng'      
         'libxxf86vm' 'xvidcore' 'freetype2')
source=(ftp://ftp.mplayerhq.hu/MPlayer/releases/MPlayer-${pkgver}try2.tar.bz2
        http://www.mplayerhq.hu/MPlayer/patches/demuxer_h_fix_20060212.diff
        mplayer-1.0_pre7-gcc4.patch)
url="http://www.mplayerhq.hu/"
md5sums=('aaca4fd327176c1afb463f0f047ef6f4' 
         'ad36895346d36b51005c9f0d0c78effe' '99915b6272bb8ddeda36ce046d8a284a')

build() {
  cd $startdir/src/MPlayer-${pkgver}try2
  patch -Np1 -i $startdir/src/mplayer-1.0_pre7-gcc4.patch || return 1
  patch -Np0 -i $startdir/src/demuxer_h_fix_20060212.diff || return 1
  # *hint* next time build mplayer in chroot with only current on
  ./configure --prefix=/usr --disable-arts --enable-x11 
    --enable-runtime-cpudetection --enable-sdl 
    --enable-theora --with-win32libdir=/usr/lib/win32 --confdir=/etc/mplayer 
    --enable-xvid --enable-gl
  make || return 1
  make DESTDIR=${startdir}/pkg install
  cp 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/Skin/default
}

After running makepkg -s I get the following error:

cc -c -I../libvo -I../../libvo  -fno-PIC -march=i686 -O2 -pipe -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I. -I/usr/include/freetype2   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT        -o codec-cfg.o codec-cfg.c
cc -c -I../libvo -I../../libvo  -fno-PIC -march=i686 -O2 -pipe -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I. -I/usr/include/freetype2   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT        -o spudec.o spudec.c
cc -c -I../libvo -I../../libvo  -fno-PIC -march=i686 -O2 -pipe -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I. -I/usr/include/freetype2   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT        -o playtree.o playtree.c
cc -c -I../libvo -I../../libvo  -fno-PIC -march=i686 -O2 -pipe -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I. -I/usr/include/freetype2   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT        -o playtreeparser.o playtreeparser.c
cc -c -I../libvo -I../../libvo  -fno-PIC -march=i686 -O2 -pipe -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I. -I/usr/include/freetype2   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT        -o asxparser.o asxparser.c
cc -c -I../libvo -I../../libvo  -fno-PIC -march=i686 -O2 -pipe -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I. -I/usr/include/freetype2   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT        -o vobsub.o vobsub.c
vobsub.c:231: error: conflicting types for 'getline'
/usr/include/bits/stdio.h:103: error: previous definition of 'getline' was here

vobsub.c: In function 'vobsub_set_from_lang':
vobsub.c:1223: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
vobsub.c:1226: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
vobsub.c:1226: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
vobsub.c:1226: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
vobsub.c:1226: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
vobsub.c:1226: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
vobsub.c:1226: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
vobsub.c:1226: warning: pointer targets in passing argument 2 of '__builtin_strcmp' differ in signedness
vobsub.c:1226: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness
make: *** [vobsub.o] Error 1
==> ERROR: Build Failed.  Aborting...

I've marked the error line...
I also tried to disable all config optione except

--prefix=/usr --with-win32libdir=/usr/lib/win32 --confdir=/etc/mplayer

but still the error shows up.

Any suggestions what I can do??


digiKam developer - www.digikam.org

Offline

#2 2006-06-15 10:43:21

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Mplayer - can't build package with ABS

Use mplayer 1.0pre8. There are many bugs fixed and it compiles without complaining with gcc4. You don't need the patches any more.

Offline

#3 2006-06-18 19:30:45

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Mplayer - can't build package with ABS

Just change pre7 to pre8 in official PKGBUILD. And change/comment out md5sums.

Offline

Board footer

Powered by FluxBB