You are not logged in.

#1 2006-12-15 01:57:32

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

[solved]can't compile rdiff-backup, could not read symbols

==> 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

#2 2006-12-15 02:58:20

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [solved]can't compile rdiff-backup, could not read symbols

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

#3 2006-12-15 04:39:28

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

Re: [solved]can't compile rdiff-backup, could not read symbols

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

#4 2006-12-15 05:36:50

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [solved]can't compile rdiff-backup, could not read symbols

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

#5 2006-12-15 06:02:55

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: [solved]can't compile rdiff-backup, could not read symbols

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

#6 2006-12-15 16:07:25

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

Re: [solved]can't compile rdiff-backup, could not read symbols

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  wink

Offline

#7 2006-12-16 18:36:45

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

Re: [solved]can't compile rdiff-backup, could not read symbols

i give up!
i downloaded some opensuse binary packages of rdiff-backup and modified the PKGBUILD to just extract files from the rpm.

Offline

#8 2006-12-16 20:16:48

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

Re: [solved]can't compile rdiff-backup, could not read symbols

GRRR!!!

the stupid rpm +s all my directories and group 549??  anyways, had to manually go and fix everything.

Offline

#9 2006-12-17 06:14:58

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

Re: [solved]can't compile rdiff-backup, could not read symbols

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

Board footer

Powered by FluxBB