You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Mark Charney <ma...@gmail.com> on 2008/09/28 01:57:57 UTC

error compiling subversion 1.5.2 on centos4.6 64b: fPIC or neon?

I'm trying to build subversion and the apache modules on Centos 4.6 x86-64.
I'm getting the error below  when building subversion. It says I  need -fPIC
for neon.

I unpacked the subversion 1.5.2 tar file and the subversion-deps file, and
"./configure".

It configured everything but when I ran "make" it complained:


cd subversion/libsvn_ra_neon && /bin/sh
/nfs/site/disks/spi_st_3/users/mjcharne/subversion/subversion-1.5.2/libtool
--tag=CC --silent --mode=link gcc  -g -O2  -g -O2 -pthread
-L/usr/local/lib  -rpath /usr/local/lib -o libsvn_ra_neon-1.la  commit.lo
fetch.lo file_revs.lo get_dated_rev.lo get_location_segments.lo
get_locations.lo get_locks.lo lock.lo log.lo merge.lo mergeinfo.lo
options.lo props.lo replay.lo session.lo util.lo
../../subversion/libsvn_delta/libsvn_delta-1.la../../subversion/libsvn_subr/
libsvn_subr-1.la/nfs/site/disks/spi_st_3/users/mjcharne/subversion/subversion-1.5.2/apr-util/
libaprutil-1.la -lexpat
/nfs/site/disks/spi_st_3/users/mjcharne/subversion/subversion-1.5.2/apr/
libapr-1.la -luuid -lrt -lcrypt  -lpthread -ldl
/nfs/site/disks/spi_st_3/users/mjcharne/subversion/subversion-1.5.2/neon/src/
libneon.la
/usr/bin/ld:
/nfs/site/disks/spi_st_3/users/mjcharne/subversion/subversion-1.5.2/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
/nfs/site/disks/spi_st_3/users/mjcharne/subversion/subversion-1.5.2/neon/src/.libs/libneon.a(ne_request.o):
could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [subversion/libsvn_ra_neon/libsvn_ra_neon-1.la] Error 1

I'm using gcc3.4.6 from /usr/bin.


Looking at the ./configure output I see that it says "Shared=no";  I was
wondering if this is related to the problem.

configure: Configured to build neon 0.28.2:

  Install prefix:  /usr/local
  Compiler:        gcc
  XML Parser:      expat
  SSL library:     SSL support is not enabled
  zlib support:    zlib support enabled, using -lz
  Build libraries: Shared=no, Static=yes

neon configured properly

I tried adding -fPIC to the neon/src/Makefile CFLAGS and that got it to
compile. Is there some option I should have given to configure? Or is this a
bug that I should report somewhere?


Thanks,
Mark