You are not logged in.
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
That's because the maintainer needs to switch the dep out to 'libcec-git' not 'libcec' ... try xbmc-beta or modify the PKGBUILD yourself.
Offline
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 1Not 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
No idea... worked for me on several systems.
Offline
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 ![]()
Offline
@over - Search for the wiki for ABS. Welcome to Arch.
@perosb - Maybe you should open a bug report against lockdev?
Offline
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
@perosb - Maybe you should open a bug report against lockdev?
And to share your observations with the maintainer.
Offline
Thank you graysky & perosb! And thank you graysky for reminding me of the the fantastic wiki ![]()
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
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.soOffline
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