Making errors when make ipmitool

Make Error:
In file included from /usr/include/sys/signal.h:22:0,
                 from /usr/include/signal.h:6,
                 from /usr/include/time.h:178,
                 from /usr/include/sys/stat.h:9,
                 from ipmi_isol.c:39:
/usr/include/cygwin/signal.h:328:34: error: unknown type name 'siginfo_t'
     void  (*sa_sigaction) ( int, siginfo_t *, void * );
                                  ^
ipmi_isol.c: In function 'ipmi_isol_red_pill':
ipmi_isol.c:618:42: warning: pointer targets in passing argument 2 of 'processiS                                                                                                                olUserInput' differ in signedness [-Wpointer-sign]
      int rc = processiSolUserInput(intf, buffer, numRead);
                                          ^
ipmi_isol.c:457:1: note: expected 'uint8_t * {aka unsigned char *}' but argument                                                                                                                 is of type 'char *'
 processiSolUserInput(struct ipmi_intf * intf,
 ^
make[2]: *** [Makefile:494: ipmi_isol.lo] Error 1
make[2]: Leaving directory '/cygdrive/d/Workspace/Linux/ipmitool-1.8.18/lib'
make[1]: *** [Makefile:457: all-recursive] Error 1
make[1]: Leaving directory '/cygdrive/d/Workspace/Linux/ipmitool-1.8.18'
make: *** [Makefile:388: all] Error 2

-----------------------------------------------------------------------------------------------------------
Method 1:
ipmitool-1.8.18\lib\Makefile
CFLAGS = -g -O2 -Wall -Wextra -std=gnu99 -pedantic -Wformat -Wformat-nonliteral -D_POSIX_C_SOURCE=199309L

-----------------------------------------------------------------------------------------------------------
Method 2:
./configure CFLAGS=-D_POSIX_C_SOURCE=199309L --enable-intf-lanplus

-----------------------------------------------------------------------------------------------------------
Refer to:
https://stackoverflow.com/questions/22912674/unknown-type-name-siginfo-t-with-clang-using-posix-c-source-2-why

-----------------------------------------------------------------------------------------------------------

.tar.gz     格式解压为          tar   -zxvf   xx.tar.gz

.tar.bz2   格式解压为          tar   -jxvf    xx.tar.bz2
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值