Hi,
ich wollte das Markad Plugin auf den Stand vom GIT bringen. Wenn ich diesen Stand bauen will bekomme ich folgende Fehlerausgabe:
Code
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"markad"' -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I../../../../include markad.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"markad"' -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I../../../../include status.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"markad"' -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I../../../../include menu.cpp
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"markad"' -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I../../../../include setup.cpp
sed: ../../../../config.h kann nicht gelesen werden: Datei oder Verzeichnis nicht gefunden
g++ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -shared markad.o status.o menu.o setup.o -o libvdr-markad.so
/usr/bin/ld: markad.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: status.o: relocation R_X86_64_32S against symbol `_ZTV13cStatusMarkAd' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: menu.o: relocation R_X86_64_32S against symbol `_ZTV10cOsdMarkAd' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: setup.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: Fehler: ld gab 1 als Ende-Status zurück
make[1]: *** [Makefile:106: libvdr-markad.so] Fehler 1
make[1]: Verzeichnis „/usr/local/src/vdr-markad/src/vdr-plugin-markad/plugin“ wird verlassen
Alles anzeigen
Das verwendete PKGBUILD:
Code
# This PKGBUILD is part of the VDR4Arch project [https://github.com/vdr4arch]
# Maintainer: Alexander Grothe <seahawk1986[at]hotmail[dot]com>
pkgname=vdr-markad
pkgver=0.1.4_40_g74e2a8c
epoch=1
_gitver=3681d3a18383c238870de7d1ec1f1f9c8079cf89
_vdrapi=2.2.0
pkgrel=1
pkgdesc="automatic advertisement detection"
url="http://projects.vdr-developer.org/projects/plg-markad"
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h')
license=('GPL2')
depends=('ffmpeg' "vdr-api=${_vdrapi}")
makedepends=('git')
_plugname=${pkgname//vdr-/}
source=("git://projects.vdr-developer.org/vdr-plugin-markad.git#commit=$_gitver"
"vdr-markad-fixes.diff"
"50-$_plugname.conf")
backup=("etc/vdr/conf.avail/50-$_plugname.conf")
md5sums=('SKIP'
'b34797cc15aac8cd75828d265283f728'
'c0d6383c9c9b8ee6c34af19179676bf3')
pkgver() {
cd "${srcdir}/vdr-plugin-${_plugname}"
git describe --tags | sed 's/-/_/g;s/v//'
}
prepare() {
cd "${srcdir}/vdr-plugin-${_plugname}"
#patch -p1 -i "$srcdir/vdr-markad-fixes.diff"
}
build() {
cd "${srcdir}/vdr-plugin-${_plugname}"
make
}
package() {
cd "${srcdir}/vdr-plugin-${_plugname}"
make DESTDIR="$pkgdir" install
#Move the logofiles to the right place and add a symlink to workaround patching.
mkdir -p "$pkgdir/usr/share"
mv "$pkgdir/var/lib/markad" "$pkgdir/usr/share/markad"
ln -s /usr/share/markad "$pkgdir/var/lib/markad"
install -Dm644 "$srcdir/50-$_plugname.conf" "$pkgdir/etc/vdr/conf.avail/50-$_plugname.conf"
}
Alles anzeigen