neon  

[neon] Bug report: Build error on Linux 2.6.9.34 on x86_64

Richard Vermillion
Fri, 11 May 2007 07:30:34 -0700

Apologies if this is to the wrong list. The bug actually appeared during a build of subversion 1.4.3 with neon included as part of the dependencies. However the work around was achieved by modifying the Neon Makefile, so I'm posting this here.

Here is the error when building Subversion complaining that it can't link to Neon because it's not position-independent code:

/usr/bin/ld: /tmp/svn/subversion-1.4.3/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 /tmp/svn/subversion-1.4.3/neon/src/.libs/libneon.a: could not read symbols: Bad value
collect2: ld returned 1 exit status


The fix was to make the following change in the generated src/Makefile:

28c28
< CFLAGS = -g -O2
---
> CFLAGS = -g -O2 -fPIC

I'm not sure how to modify the configure script to supply this automatically for this platform. However, once this change is made and 'make' run on the neon directory, subversion will happily finish building.

Let me know if any more information would be helpful.

-rv



Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
neon mailing list
neon@webdav.org
http://mailman.webdav.org/mailman/listinfo/neon



  • [neon] Bug report: Build error on Linux 2.6.9.34 on x86_64 Richard Vermillion