You are not logged in.

#1 2012-12-29 05:31:38

ViperDVMan
Member
From: Florida, USA
Registered: 2012-12-29
Posts: 14

xbmc-git makepkg errors (libcec)

Fairly new Arch user here, but been compiling on other distros for a while. I am attempting to install xbmc-git from the AUR. But every time I makepkg, I get this error way down the line:

checking for UDEV... yes
configure: == libusb disabled. ==
will not check for RPi support (unsupported cpu: x86_64)
checking for CEC... no
configure: error: == libcec disabled. CEC adapter support will not be available. ==
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build xbmc-git

And it kills the process, making it impossible for me to install xbmc-git.

I have tried other methods of getting this done: manually from AUR, using yaourt, using makepkg --asroot, and nothing seems to work.

I know for a fact that libcec is installed as it's a dependency. But why does this process not recognize it? How do I get xbmc-git installed?

Last edited by ViperDVMan (2012-12-29 05:40:19)

Offline

#2 2012-12-29 10:07:44

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,452
Website

Re: xbmc-git makepkg errors (libcec)

That's because the maintainer needs to switch the dep out to 'libcec-git' not 'libcec' ... try xbmc-beta or modify the PKGBUILD yourself.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Online

#3 2012-12-29 14:00:07

perosb
Member
Registered: 2011-09-19
Posts: 12

Re: xbmc-git makepkg errors (libcec)

graysky wrote:

That's because the maintainer needs to switch the dep out to 'libcec-git' not 'libcec' ... try xbmc-beta or modify the PKGBUILD yourself.

when trying to build libcec-git (dependency to xbmc-beta)

if fails to compile:

/usr/bin/ld: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../lib/liblockdev.a(lockdev.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../lib/liblockdev.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [libcec.la] Fel 1

Not sure if the problem is with "lockdev" or libcec-git though.


EDIT:
Had to recompile "lockdev" with -fPIC to get libcec-git to compile. No clue what it changes though (making the static shared..!?):

--- PKGBUILD.txt	2012-12-29 15:21:42.685683028 +0100
+++ PKGBUILD.mine	2012-12-29 15:20:23.108526815 +0100
@@ -23,7 +23,7 @@ build() {
   sed -i "s|CFLAGS	= -g|CFLAGS	= -g -fPIC|" Makefile
 
   make shared CFLAGS="${CFLAGS} -D_PATH_LOCK=\\\"/run/lock/lockdev\\\""
-  make static CFLAGS="${CFLAGS} -D_PATH_LOCK=\\\"/run/lock/lockdev\\\""
+  make static CFLAGS="${CFLAGS} -fPIC -D_PATH_LOCK=\\\"/run/lock/lockdev\\\""
 }
 
 package() {

Last edited by perosb (2012-12-29 14:30:21)

Offline

#4 2012-12-29 14:56:28

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,452
Website

Re: xbmc-git makepkg errors (libcec)

No idea... worked for me on several systems.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Online

#5 2013-01-02 19:08:42

ovehendrix
Member
Registered: 2013-01-02
Posts: 2

Re: xbmc-git makepkg errors (libcec)

How do you "recompile "lockdev" with -fPIC" ? I have the same problem with libcec-git.

Sorry for the stupid question, I've been using arch for 2 days smile

Offline

#6 2013-01-02 19:10:53

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,452
Website

Re: xbmc-git makepkg errors (libcec)

@over - Search for the wiki for ABS.  Welcome to Arch.
@perosb - Maybe you should open a bug report against lockdev?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Online

#7 2013-01-03 09:20:49

perosb
Member
Registered: 2011-09-19
Posts: 12

Re: xbmc-git makepkg errors (libcec)

apparently it's a arch package issue with libcec-git package.

https://github.com/Pulse-Eight/libcec/issues/64

libcec-git is linking to the static lockdev and not the shared one.

not sure if this will be solved by the libcec package maintainer; libcec is out of date version 1.9.0.
xbmc-12 requires >= 2.0.3

not building the static lockdev works too

--- PKGBUILD.txt	2012-12-29 15:21:42.685683028 +0100
+++ PKGBUILD.mine	2012-12-29 15:20:23.108526815 +0100
@@ -23,7 +23,7 @@ build() {
   sed -i "s|CFLAGS	= -g|CFLAGS	= -g -fPIC|" Makefile
 
   make shared CFLAGS="${CFLAGS} -D_PATH_LOCK=\\\"/run/lock/lockdev\\\""
-  make static CFLAGS="${CFLAGS} -D_PATH_LOCK=\\\"/run/lock/lockdev\\\""
+  #make static CFLAGS="${CFLAGS} -D_PATH_LOCK=\\\"/run/lock/lockdev\\\""
 }
 
 package() {

Offline

#8 2013-01-03 09:57:41

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,452
Website

Re: xbmc-git makepkg errors (libcec)

graysky wrote:

@perosb - Maybe you should open a bug report against lockdev?

And to share your observations with the maintainer.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Online

#9 2013-01-03 11:59:32

ovehendrix
Member
Registered: 2013-01-02
Posts: 2

Re: xbmc-git makepkg errors (libcec)

Thank you graysky & perosb! And thank you graysky for reminding me of the the fantastic wiki smile

If other newbies like me wonder how the devlock/PKGBUILD should look like (thanx again to perosb):

# $Id$
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Andreas Wagner <a.wagner@stud.uni-frankfurt.de>

pkgname=lockdev
pkgver=1.0.3_1.5
_pkgver=1.0.3
pkgrel=1
pkgdesc='Run-time shared library for locking devices, using _both_ FSSTND and SVr4 methods.'
url='http://packages.qa.debian.org/l/lockdev.html'
license=("GPL")
arch=('i686' 'x86_64')
source=("http://ftp.debian.org/debian/pool/main/l/${pkgname}/${pkgname}_${_pkgver}.orig.tar.gz"
	      "http://ftp.debian.org/debian/pool/main/l/${pkgname}/${pkgname}_${pkgver/_/-}.diff.gz")
md5sums=('64b9c1b87b125fc348e892e24625524a'
         'c4e8a5a2e46b76b48339c232b358f579')

build() {
  cd "${pkgname}-${_pkgver}"

  patch -p1 -i "../${pkgname}_${pkgver/_/-}.diff"
  sed -i "s|CFLAGS	= -g|CFLAGS	= -g -fPIC|" Makefile

  make CFLAGS="${CFLAGS} -fPIC -D_PATH_LOCK=\\\"/run/lock/lockdev\\\""
#  make static CFLAGS="${CFLAGS} -D_PATH_LOCK=\\\"/run/lock/lockdev\\\""

}

package() {
  cd "${pkgname}-${_pkgver}"
  make basedir="${pkgdir}/usr" install
}

Last edited by ovehendrix (2013-01-03 14:06:27)

Offline

#10 2013-01-03 14:20:25

perosb
Member
Registered: 2011-09-19
Posts: 12

Re: xbmc-git makepkg errors (libcec)

graysky wrote:
graysky wrote:

@perosb - Maybe you should open a bug report against lockdev?

And to share your observations with the maintainer.


https://bugs.archlinux.org/task/33280

just creating a symlink works

ln -s /lib/liblockdev.1.0.3.so /lib/liblockdev.so

Offline

#11 2013-01-04 10:13:15

X-dark
Member
From: France
Registered: 2009-10-25
Posts: 135
Website

Re: xbmc-git makepkg errors (libcec)

I have updated libcec-git PKGBUILD. I had to upload a modified lockdev PKGBUILD.

I will add my words to the bug report to make the change be applied to the [community] package.


Cedric Girard

Offline

Board footer

Powered by FluxBB