You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Dean Bennett <de...@gbtn.net> on 2008/12/10 19:54:18 UTC

Re: Buiding Subversion on Solaris 10 (x86) - ld: fatal: relocations remain against allocatable but non-writable sections

You need to add --with-pic onto the configure command line, otherwise 
you get these errors when linking static and dynamic libraries.

If you have built any other libraries that subversion is linking 
against, then they need to be build as PIC as well.

Dean

Steve Whitson wrote:
> Jorge,
>
> Here are a couple things to try:
>
> edit the configure script and add the line:
>
> LIBS="$LIBS -lintl"
>
> This fixed things on one of my solaris systems (sparc).
>
> On another (x86 system) I had to follow the instructions in:
>
> http://chess.eecs.berkeley.edu/ptexternal/wiki/Main/Subversion
>
> see the section "Building SVN under Solaris"
>
> Hope this helps,
>     -Steve
>
> Jorge M wrote:
>   
>> I just installed Solaris 10  (x86) with the developers packages and I
>> want to build Subversion (Version 1.4.6)
>>  
>> I am getting the following error when executing the "make" step:
>>
>>    ld: fatal: relocations remain against allocatable but non-writable
>> sections
>>
>> Here is what I am executing:
>>
>>  
>> PATH=/usr/sfw/bin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ucb:/usr/cc
>> s/bin
>>   export PATH
>>   ./configure
>>   make
>>
>> I found someone having a similar error:
>> http://www.filibeto.org/pipermail/solaris-users/2004-March/000660.html
>>
>> So, I got GNU binutils; compiled and installed (under /usr/local/bin)
>> I added /usr/local/bin to the PATH and tried again:
>>
>>  
>> PATH=/usr/bin/local:/usr/sfw/bin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/
>> usr/ucb:/usr/ccs/bin
>>   export PATH
>>   ./configure
>>   make
>>
>> But I am still having the same problem. 
>>
>>     ld: fatal: relocations remain against allocatable but non-writable
>> sections
>>     collect2: ld returned 1 exit status
>>     make: *** [subversion/libsvn_ra_dav/libsvn_ra_dav-1.la] Error 1
>>
>> The output from ./configure show that the ld supplied with Solaris is
>> still being used:
>>
>>     checking for ld used by gcc... /usr/ccs/bin/ld
>>     checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
>>
>> Any help is appreciated.
>>
>> -Jorge
>>
>> ------------------------------------------------------
>> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=981302
>>
>> To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
>>
>>     
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=981335
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=982436
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
>
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=982493

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].