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
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