<br><br><div class="gmail_quote">On Feb 18, 2008 10:49 AM, Paulo Cavalcanti <<a href="mailto:promac@gmail.com">promac@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br><div class="gmail_quote"><div class="Ih2E3d"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><div><br>> /usr/bin/ld:<br>> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libbfd.a(format.o):<br>

> relocation R_X86_64_32 against `a local symbol' can not be used when making<br>> a shared object; recompile with -fPIC<br>> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libbfd.a:<br>> could not read symbols: Bad value<br>

> collect2: ld returned 1 exit status<br><br></div>I have also encountered this, but have not fixed it yet. Any<br>suggestions would be much appreciated.<br><div><br></div></blockquote></div><div><br><br>Well, I fixed it. It is just a question of recompiling binutils with -fPIC.<br>

<br>I just changed this line in binutils spec file and rebuilt it:<br><br>CC="gcc -L`pwd`/bfd/.libs/" CFLAGS="${CFLAGS:-%optflags -fPIC}" ../configure \<br><br>Doing that, anjuta can be built with valgrind support in x86_64 architectures.<br>

</div></div><br>Note that I do not know whether this is acceptable by Fedora standards or not.<br><br>Any comments?<div><div></div><div class="Wj3C7c"><br clear="all"><br></div></div></blockquote><div><br>In fact, I forgot to mention that I used binutils 2.18.50 from developments.<br>
Taking a close look at the spec file, I realized that it is possible to recompile just libbfd.a<br>with -fPIC, the same way it was done with libiberty.a.<br><br>Here is the .src.rpm I used:<br><br><a href="http://people.atrpms.net/~pcavalcanti/srpms/binutils-2.18.50.0.3-1.src.rpm">http://people.atrpms.net/~pcavalcanti/srpms/binutils-2.18.50.0.3-1.src.rpm</a><br>
<br>Please, can someone tell me if there is any problem of using this modified binutils<br>in F8?<br><br>Thanks.<br><br></div></div>-- <br>Paulo Roma Cavalcanti<br>LCG - UFRJ