Maynard Johnson wrote:
> William Cohen wrote:
>> GCC 4.4.0 in Fedora 11 is pickier about compiling code. When compiling OProfile
>> on Fedora 11 end up getting the following error message:
>> g++ -DHAVE_CONFIG_H -I. -I.. -isystem /usr/lib/qt-3.3//include -I ../libop -I
>> ../libutil++ -I ../libutil -W -Wall -fno-common -ftemplate-depth-50 -g -MT
>> oprof_start_util.o -MD -MP -MF .deps/oprof_start_util.Tpo -c -o
>> oprof_start_util.o oprof_start_util.cpp
>> In file included from ../libutil/op_libiberty.h:27,
>> from oprof_start_util.cpp:30:
>> /usr/include/libiberty.h:105: error: new declaration 'char* basename(const char*)'
>> /usr/include/string.h:601: error: ambiguates old declaration 'const char*
>> basename(const char*)'
>> A Fedora bug was file for this:
>> It was suggested in the bugzilla to adjust the configure to test for this
>> basename declaration. The attached patch does the test to produce the needed
>> HAVE_DECL_BASENAME define in config.h. The attached patch has been tested and
>> works on on Fedora 9 (x86_64), 10(x86_64), and 11 (i386) machines.
>> 2009-04-08 William Cohen <wcohen@...>
>> * configure.in: Add check for basename declaration.
>> Signed-off-by: William Cohen <wcohen@...>
> Works fine. Patch applied. Thanks.
> (P.S. I added a ChangeLog entry for you. ;-)
Thanks for checking it. I wanted to make sure that this worked on other
distributions before getting it commited.