GNU bug report logs - #9141
Coreutils Compiler Warnings on OSX 10.7 (Lion)

Previous Next

Package: coreutils;

Reported by: Herb Wartens <hawartens <at> gmail.com>

Date: Thu, 21 Jul 2011 16:05:02 UTC

Severity: normal

Tags: moreinfo

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Herb Wartens <hawartens <at> gmail.com>
To: 9141 <at> debbugs.gnu.org
Subject: bug#9141: Coreutils Compiler Warnings on OSX 10.7 (Lion)
Date: Thu, 21 Jul 2011 02:16:32 -0700
[Message part 1 (text/plain, inline)]

OSX does have fdatasync defined as part of the libsystem_kernel.dylib library.  The problem is that there is no header on OSX that actually provides the function.  

There is another issue where I redefined PRIuMAX to "llu" and PRIdMAX to "lld" on OSX.  This was necessary because the build was picking up the lib/stdint.h provided with coreutils.  In there we ended up defining uintmax_t as a uint64_t.

<snip>
#elif defined GL_UINT64_T
# define uintmax_t uint64_t
#else
</snip>

However by default on OSX, PRIdMAX is defined as "jd" and PRIuMAX is defined as "ju."

I have added a hack to get coreutils to compile cleanly on OSX.  Hope this helps.

-Herb

[coreutils_warnings.diff (application/octet-stream, attachment)]

This bug report was last modified 6 years and 279 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.