Closed kloczek closed 6 months ago
@kloczek I would like to ask you to create github action which will compile ledmon exactly same way you are doing that. With that we will be forced to take care of it. Could you do that?
If you are using rpm based distribution could you please try execute rpm -ql glibc-headers-x86 | xargs grep basename
?
On my system it shows
[tkloczko@pers-jacek SPECS]$ rpm -ql glibc-headers-x86 | xargs grep basename
grep: /usr/include/arpa: Is a directory
grep: /usr/include/bits: Is a directory
grep: /usr/include/bits/platform: Is a directory
grep: /usr/include/bits/types: Is a directory
grep: /usr/include/finclude: Is a directory
grep: /usr/include/gnu: Is a directory
/usr/include/libgen.h:extern char *__xpg_basename (char *__path) __THROW;
/usr/include/libgen.h:#define basename __xpg_basename
grep: /usr/include/net: Is a directory
grep: /usr/include/netash: Is a directory
grep: /usr/include/netatalk: Is a directory
grep: /usr/include/netax25: Is a directory
grep: /usr/include/neteconet: Is a directory
grep: /usr/include/netinet: Is a directory
grep: /usr/include/netipx: Is a directory
grep: /usr/include/netiucv: Is a directory
grep: /usr/include/netpacket: Is a directory
grep: /usr/include/netrom: Is a directory
grep: /usr/include/netrose: Is a directory
grep: /usr/include/nfs: Is a directory
grep: /usr/include/protocols: Is a directory
grep: /usr/include/rpc: Is a directory
grep: /usr/include/scsi: Is a directory
/usr/include/string.h:# ifndef basename
/usr/include/string.h: declare the function if the `basename' macro is available (defined
/usr/include/string.h:extern "C++" char *basename (char *__filename)
/usr/include/string.h: __THROW __asm ("basename") __nonnull ((1));
/usr/include/string.h:extern "C++" const char *basename (const char *__filename)
/usr/include/string.h: __THROW __asm ("basename") __nonnull ((1));
/usr/include/string.h:extern char *basename (const char *__filename) __THROW __nonnull ((1));
grep: /usr/include/sys: Is a directory
grep: /usr/include/sys/platform: Is a directory
FYI, I received similar suggestion in mdadm to add libgen.h
, so please review my comment:
https://patchwork.kernel.org/project/linux-raid/patch/20240325061537.275811-1-raj.khem@gmail.com/
I think that it applies here. I didn't compare those two basename implementations to determine if we can use POSIX version safely.
On both RHEL-9.2 and Opensuse 15.sp4 I don't have this package:
[gklab-localhost ~]# rpm -qa | grep glibc
glibc-gconv-extra-2.34-83.el9_3.7.x86_64
glibc-2.34-83.el9_3.7.x86_64
glibc-common-2.34-83.el9_3.7.x86_64
glibc-langpack-en-2.34-83.el9_3.7.x86_64
glibc-doc-2.34-83.el9_3.7.noarch
glibc-headers-2.34-83.el9_3.7.x86_64
glibc-devel-2.34-83.el9_3.7.x86_6
Which distribution you are using?
Hi @kloczek Ping?
No feedback. Closing.
Description
Looks like 1.0.0 is not finished and build fails because missing
#include
lines.Steps to reproduce bug
clone -> `autoreconf -fiv`` -> configure -> make
Expected behavior
Build should not fail.
Actual behavior
Environment
OS: Linux x86/64
Ledmon version
1.0.0
Ledmon logs
N/A
Ledctl logs
N/A
Ledmon supported controllers
N/.A
Additional information
N/A