<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Apr 6, 2014, at 5:39 PM, Grayson Manley <<a href="mailto:gray.manley@gmail.com">gray.manley@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family: Helvetica, Arial; font-size: 13px; margin: 0px;"><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;">Apologies if I'm making any mailing list faux pas.</div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;"><br></div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;">The master version of libbluray has been failing to compile on my machine: OS X 10.9.2-x86_64.</div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;">The current stable version successfully compiles.</div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;"><br></div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;">Here is what appears to be the relevant part of the make output:</div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;"><br></div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;">libtool: compile: clang -DHAVE_CONFIG_H -I. -I.. -std=c99 -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112L -D_REENTRANT -I.. -Ifile -Ilibbluray -Ilibbluray/bdnav -I/usr/include/libxml2 -I/usr/local/Cellar/freetype/2.5.3_1/include/freetype2 -g -O2 -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wshadow -Werror=implicit-function-declaration -Wextra -Winline -O3 -fomit-frame-pointer -c libbluray/register.c -fno-common -DPIC -o libbluray/.libs/register.o</div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;">In file included from libbluray/bluray.c:65:</div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;">/usr/include/sys/ucred.h:91:2: error: unknown type name 'u_long'; did you mean 'long'?</div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;"> u_long cr_ref; /* reference count */</div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;"> ^</div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;">/usr/include/sys/ucred.h:133:9: error: unknown type name 'u_int'</div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;"> u_int cr_version; /* structure layout version */</div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;"> ^</div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;">In file included from libbluray/bluray.c:66:</div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;">In file included from /usr/include/sys/mount.h:76:</div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;">/usr/include/sys/attr.h:78:2: error: unknown type name 'u_short'; did you mean 'short'?</div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;"> u_short bitmapcount; /* number of attr. bit sets in list (should be 5) */</div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;"> ^</div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;">/usr/include/sys/attr.h:442:2: error: unknown type name 'u_long'; did you mean 'long'?</div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;"> u_long maxmatches;</div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;"> ^</div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;">/usr/include/sys/attr.h:455:2: error: unknown type name 'u_char'; did you mean 'char'?</div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;"> u_char ss_fsstate[548]; // fs private</div><div id="bloop_customfont" style="font-family: Menlo, Arial; margin: 0px;"> ^</div><br style="font-family: Menlo, Arial;"><br style="font-family: Menlo, Arial;"><span style="font-family: Menlo, Arial;">I also attached a full log file if needed.</span><div style="font-family: Menlo, Arial;"><br><br>After adding '-D_DARWIN_C_SOURCE' to CFLAGS I was able to successfully compile master.<br><br><br><div>I have limited knowledge of the subject but, if it is at all helpful, here is some info I found.</div><div><br></div><div>It appears that a relevant part of the makefile may may be 'src/Makefile.am:1' and '-D_POSIX_C_SOURCE=200112L'.</div><div><br></div><div>Here are some resources I found by googling:</div><div><br></div><div><a href="https://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man5/compat.5.html">https://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man5/compat.5.html</a></div><div><a href="https://gitorious.org/xorg/x11proto-core/commit/22878c30d21580146200c00070478f88d969bcaa">https://gitorious.org/xorg/x11proto-core/commit/22878c30d21580146200c00070478f88d969bcaa</a></div><div><br></div><div>Let me know if any other info would be helpful.</div></div></div></div></blockquote></div><br><div><div>Looking at /usr/include/sys/types.h it looks like the correct fix is to add the -D_DARWIN_C_SOURCE to the Makefile.am on OSX. Let me see if I can put together a patch.</div><div><br></div><div>-Nathan</div></div></body></html>