https://sourceware.org/bugzilla/show_bug.cgi?id=27456
Bug ID: 27456
Summary: Link failure due to the use of lstat in rename.c on
MinGW
Product: binutils
Version: 2.37 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: markus.boeck02 at gmail dot com
Target Milestone: ---
Created attachment 13247
--> https://sourceware.org/bugzilla/attachment.cgi?id=13247&action=edit
config.log of binutils
Linking ranlib currently fails when building with a MinGW toolchain on my
machine due to undefined reference to "lstat" in rename.c:137
I then also checked and noticed following warning when compiling rename.c:
../../binutils/rename.c: In function 'smart_rename':
../../binutils/rename.c:137:12: warning: implicit declaration of function
'lstat'; did you mean 'wstat'? [-Wimplicit-function-declaration]
137 | exists = lstat (to, &to_stat) == 0;
| ^~~~~
| wstat
Commit tested is e9d18e0649ae83fcfafd325a2366973efde43b38. MinGW Version is
current trunk and GCC Version is latest GCC 10.
I have attached the config.log from the binutils directory.
--
You are receiving this mail because:
You are on the CC list for the bug.