#68928 closed defect (worksforme)

glib2 @2.78.0: error: implicit declaration of function 'utimensat' is invalid in C99

Reported by: tufty (Simon Stapleton) Owned by: tufty (Simon Stapleton)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: glib2

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Trying to install glib2 as a dependency, I get a build error, log attached. -Werror=implicit-function-declaration is kicking up on function utimensat(), as far as I can tell this should be getting picked up from <sys/stat.h> but fr some reason it isn't.

command line :

sudo port install glib2 +quartz -x11

Attachments (1)

main.log (1.0 MB) - added by tufty (Simon Stapleton) 11 months ago.
build log

Download all attachments as: .zip

Change History (5)

Changed 11 months ago by tufty (Simon Stapleton)

Attachment: main.log added

build log

comment:1 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: set to mascguy
Status: newassigned
Summary: glib2 build problem on OSX 10.13glib2 @2.78.0: error: implicit declaration of function 'utimensat' is invalid in C99

comment:2 Changed 11 months ago by tufty (Simon Stapleton)

I think I'm going to tentatively put this one down to user error. I just updated my system, and now everything works. Looking back through the update list, I see xcode tools 10.1 followed by xcode tools 8.2, which s the el cap version for some reason, and then with the last update, back to 10.1. So my bugged compilation seems to be caused by using teh el cap xcode tools on high sierra, i think, maybe. In any case, "it works now".

Merry Christmas.

comment:3 Changed 11 months ago by tufty (Simon Stapleton)

Owner: changed from mascguy to tufty

comment:4 Changed 11 months ago by kencu (Ken)

Resolution: worksforme
Status: assignedclosed

great you sorted it out!

Note: See TracTickets for help on using tickets.