Opened 12 years ago

Closed 12 years ago

#33466 closed defect (fixed)

ipmitool fails to build with clang

Reported by: arno.barbier@… Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc:
Port: ipmitool

Description

Hello,

I couldn't build ipmitool due to the following error:

:info:build ipmi_sdradd.c:201:5: warning: implicit declaration of function 'sleep' is invalid in C99 [-Wimplicit-function-declaration]
:info:build     sleep(1);
:info:build     ^
:info:build ipmi_sdradd.c:339:10: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration]
:info:build   while (read(fd, binHdr, 5) == 5) {
:info:build          ^
:info:build 2 warnings generated.

The package source name is ipmitool-1.8.11_0.darwin_11.x86_64.tbz2

Thanks for your help

Change History (2)

comment:1 Changed 12 years ago by drkp (Dan Ports)

Keywords: implicit declaration removed
Owner: changed from macports-tickets@… to dports@…
Status: newassigned
Summary: Building ipmitool failed due to implicit declaration of function 'sleep' and 'read'ipmitool fails to build with clang

comment:2 Changed 12 years ago by drkp (Dan Ports)

Resolution: fixed
Status: assignedclosed

Thanks for the report. Now fixed in r90401, so please selfupdate and give it another try.

Note: See TracTickets for help on using tickets.