Opened 4 years ago

Closed 3 years ago

#62436 closed defect (fixed)

gti @1.6.1-universal: implicit declaration of function 'usleep'

Reported by: zman0900 (Dan Ziemba) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: haspatch Cc:
Port: gti

Description

Attempting to install "gti" fails on Big Sur 11.2.3 with build errors:

gti.c:231:5: error: implicit declaration of function 'usleep' [-Werror,-Wimplicit-function-declaration]
    usleep(FRAME_TIME);
    ^
gti.c:252:5: error: implicit declaration of function 'usleep' [-Werror,-Wimplicit-function-declaration]
    usleep(FRAME_TIME * 10);
    ^
gti.c:273:5: error: implicit declaration of function 'usleep' [-Werror,-Wimplicit-function-declaration]
    usleep(FRAME_TIME * 8);
    ^

Attachments (1)

gti-build.log (9.7 KB) - added by zman0900 (Dan Ziemba) 4 years ago.

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by zman0900 (Dan Ziemba)

Attachment: gti-build.log added

comment:1 Changed 4 years ago by jmroot (Joshua Root)

It's setting _POSIX_C_SOURCE to 1 which is equivalent to 199009L, but for usleep to be available, it has to be at least 199506L.

Last edited 4 years ago by jmroot (Joshua Root) (previous) (diff)

comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added
Owner: changed from g5pw to ryandesign
Status: assignedaccepted

Thanks Josh, that fixes it. I'll report it to the developer and get a patch committed soon.

comment:3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In d7c993172cfb33e0d4759492ae2f3e58e573fc9d/macports-ports (master):

gti: Update to 1.7.0

Closes: #62436

Note: See TracTickets for help on using tickets.