Hi William,

It appears that I am using the binutils-devel-2.17.50.0.6-5.el5 that you
mentioned should work, fwiw. Posting it here so others have the info/bkgrd
as well.

 rpm -qf  /usr/lib64/libbfd.a
binutils-devel-2.17.50.0.6-5.el5

Meanwhile, Thanks for the tip for the other binutil version.
I've got to hunt around for our RHN acct/passwd to get a look see at (bz
#430856)
I've made notes re: fixed in 2.17.50.0.6-7.el5 and avoid
binutils-2.17.50.0.6-12.el5.

I'll ask our systems engineering group to obtain the rpm for
2.17.50.0.6-7.el5 and any dependencies.

Thanks,

Heidi


On 10/26/09 3:05 PM, "William Cohen" <wcohen@redhat.com> wrote:

> Heidi Schmidt wrote:
>> Iım running into the same make issue that I think a few others have
>> experienced on RH 5  for oprofile-0.9.5 via the mailing list thread Re:
>> 0.9.5 building on RHEL5 broken
>> Is there a patch now ? or previous version that is known to compile on
>> RH5? If so, Iıll nab either one. Thanks for the bandwidth.
>>
>> Heidi
>>
>>
>> Here is what I found and hope the information helps with a future patch.
>>
>> Notes: 
>>
>>    1. It would be good to add to the install docs the requirement of the
>>       profile os user and group
>>    2. I ran the configure initially with  ./configure
>>       --with-kernel-support and then ran the example below without the
>>       flags for java, qt, abi, and debug from post
>>       http://marc.info/?l=oprofile-list&m=124907559400470&w=2
>>       <http://marc.info/?l=oprofile-list&m=124907559400470&w=2>   (the
>>       config and make details below)_
>>    3. Details of the system  and the release I pulled down and typical cpu
>>
>>
>> Uname details
>> Linux 2.6.18-128.1.1.el5 #1 SMP Mon Jan 26 13:58:24 EST 2009 x86_64
>> x86_64 x86_64 GNU/Linux
>>
>>  more /etc/redhat-release
>>         Red Hat Enterprise Linux Server release 5.3 (Tikanga)
>>
>>  rpm -qa | grep binutil
>>         binutils-2.17.50.0.6-9.el5
>>         binutils-devel-2.17.50.0.6-5.el5
>>         binutils-devel-2.17.50.0.6-5.el5
>
> Why are different versions of binutil and binutil-devel being used? That
> doesn't
> look like the correct version of binutils-devel. I thing that you are
> encountering an old bug fixed in 2.17.50.0.6-7.el5 (bz #430856):
>
>
> Note that there a bug in the binutils-2.17.50.0.6-12.el5 that will cause
> problems for oprofile:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=529028
>
> However, you should be okay with binutils-devel-2.17.50.0.6-9.el5
>
> -Will
>
>
>> *make[2]: Entering directory `/tmp/oprofile-0.9.5/libopagent'
>> /bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2   -o libopagent.la
>> -rpath /usr/lib64/oprofile -version-info  1:0:0
>> -Wl,--version-script=../libopagent/opagent_symbols.ver
>> libopagent_la-opagent.lo -lbfd -liberty -ldl
>> gcc -shared  .libs/libopagent_la-opagent.o  -lbfd -liberty -ldl
>>  -Wl,--version-script=../libopagent/opagent_symbols.ver -Wl,-soname
>> -Wl,libopagent.so.1 -o .libs/libopagent.so.1.0.0
>> /usr/bin/ld:
>>
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libbfd.a(archures.o)>>
:
>> relocation R_X86_64_32 against `bfd_i386_arch' can not be used when
>> making a shared object; recompile with -fPIC
>> /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libbfd.a: could
>> not read symbols: Bad value
>> *collect2: ld returned 1 exit status
>> make[2]: *** [libopagent.la] Error 1
>> make[2]: Leaving directory `/tmp/oprofile-0.9.5/libopagent'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/tmp/oprofile-0.9.5'
>> make: *** [all] Error 2
>>
>>  locate libbfd.a
>> /usr/lib/libbfd.a
>> /usr/lib64/libbfd.a
>>
>>  /usr/bin/md5sum /usr/lib64/libbfd.a
>> 8bb6e102daf9ea7bd3b09ef388956d5b  /usr/lib64/libbfd.a
>>
>>  /usr/bin/md5sum /usr/lib/libbfd.a
>> f5494699a61189baf2e2705e52b67c22  /usr/lib/libbfd.a>
>