You are not logged in.
==> Starting build()...
running install
running build
running build_py
running build_ext
building 'rdiff_backup._librsync' extension
gcc -pthread -shared -march=x86-64 -O2 -pipe -fPIC build/temp.linux-x86_64-2.4/_librsyncmodule.o -lrsync -o build/lib.linux-x86_64-2.4/rdiff_backup/_librsync.so
/usr/bin/ld: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../librsync.a(rollsum.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../librsync.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
==> ERROR: Build Failed. Aborting...
librsync built fine through AUR...i'm not sure why rdiff-backup isn't working. i'm new to the 64bit stuff.
thanks.
Offline
The error message tells you to recompile librsync with the -fPIC option. Did you do that? There's probably a configure option to do that. If not, you'll need to patch the Makefile.
Offline
i set the variables in makepkg.conf and recompiled libsync. rdiff still gave me the same error...
what kind of patching would i need to do to the makefile?
EDIT:
i checked the makefile for librsync, CFLAGS has a -fPIC in there.
Offline
in librsync PKGBUILD use this configure line:
./configure --prefix=/usr --with-pic
also add this field before the build function to do libtool slay:
options=('NOLIBTOOL')
Offline
we usually fix it like this:
export CFLAGS="$CFLAGS -fPIC"
export CXXFLAGS="$CFLAGS" (if needed)
put this right on top of the build section into the pkgbuild.
Offline
here's the PKGBUILD
http://pastebin.archlinux.org/424
here's the compile output for librsync
http://pastebin.archlinux.org/425
here's the compile output for rdiff-backup
http://pastebin.archlinux.org/426
thanks!
edit: btw, i took these scripts off AUR, so i'm not the contributor
Offline
i give up!
i downloaded some opensuse binary packages of rdiff-backup and modified the PKGBUILD to just extract files from the rpm.
Offline
GRRR!!!
the stupid rpm +s all my directories and group 549?? anyways, had to manually go and fix everything.
Offline
stubborn as i am...i went back to get the damn thing compiling in arch64...
rm pkg src -rf
makepkg
that did it...i guess it left some crap from previous compiles or something.
Offline