fixing crashes while building subversion
February 27th, 2008 by Lawrence David
i received the following error message while trying to build subversion the other day:
/usr/bin/ld: /home/ldavid/src/subversion-1.4.6/neon/src/.libs/libneon.a(ne_request.o): relocation R_X86_64_32 against `a local symbol’ can not be used when making a shared object; recompile with -fPIC
/home/ldavid/src/subversion-1.4.6/neon/src/.libs/libneon.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [subversion/libsvn_ra_dav/libsvn_ra_dav-1.la] Error 1
the solution i found:
first, add the following to your .profile:
export CFLAGS=-fPIC
second, call configure in the following manner:
>> configure –enable-shared –disable-static –without-apxs
Ahem, this is not a crash. Just a linker error.