bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gprofng/29338] Declaration conflict for basename


From: vladimir.mezentsev at oracle dot com
Subject: [Bug gprofng/29338] Declaration conflict for basename
Date: Tue, 12 Jul 2022 05:06:33 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=29338

--- Comment #1 from Vladimir Mezentsev <vladimir.mezentsev at oracle dot com> 
---
I cannot reproduce the problem.
I see in my builds that HAVE_DECL_BASENAME is always defined:
% grep HAVE_DECL_BASENAME BLD/gprofng/config.h 
#define HAVE_DECL_BASENAME 1

We use AC_CHECK_DECLS([basename]) to set HAVE_DECL_BASENAME:
% grep -n basename gprofng/configure.ac
201:AC_CHECK_DECLS([basename])


Looks like AC_CHECK_DECLS() failed in your configuration.



Looks like you made the following steps to build:
1. git clone http://sourceware.org/git/binutils-gdb.git   binutils
  It is OK to clone to ./binutils

2. ./binutils/configure
  I am not expert here. But it is probably wrong.
  The problem is ./binutils/binutils exists and when you run make
  the build will be inside ./binutils.
  The workaround of this can be:
    mkdir BLD; cd BLD ; ../binutils/configure ; make

3. make

  When I did steps (1)-(3), my build failed:
make[3]: Leaving directory 'MY_BUILD_DIR/libctf'
make[2]: Leaving directory 'MY_BUILD_DIR/libctf'
make[2]: Entering directory 'MY_BUILD_DIR/binutils'
Makefile:26: *** missing separator.  Stop.
make[2]: Leaving directory 'MY_BUILD_DIR/binutils'
make[1]: *** [Makefile:4045: all-binutils] Error 2
make[1]: Leaving directory 'MY_BUILD_DIR'
make: *** [Makefile:1004: all] Error 2

But that's another problem.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]