[mythtv-commits] Ticket #9400: MacOS X Compile failure
MythTV
noreply at mythtv.org
Sun Dec 26 08:12:58 UTC 2010
#9400: MacOS X Compile failure
-------------------------------------------------+-------------------------
Reporter: Craig Treleaven <ctreleaven@…> | Owner: nigel
Type: Bug Report | Status: new
Priority: minor | Milestone: unknown
Component: Ports - OSX | Version:
Severity: medium | 0.24-fixes
Keywords: | Resolution:
| Ticket locked: 0
-------------------------------------------------+-------------------------
Comment (by nigel):
On Mac OS X, /usr/include/sys/resource.h contains:
{{{
struct rusage {
struct timeval ru_utime; /* user time used (PL) */
struct timeval ru_stime; /* system time used (PL) */
#if defined(_POSIX_C_SOURCE) && !defined(_DARWIN_C_SOURCE)
long ru_opaque[14]; /* implementation defined */
#else /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
/*
* Informational aliases for source compatibility with programs
* that need more information than that provided by standards,
* and which do not mind being OS-dependent.
*/
long ru_maxrss; /* max resident set size (PL) */
}}}
which, because _POSIX_C_SOURCE is defined, is half of the cause of this
fault.
[[BR]]
The other half is commit 8c6de4675, which enabled building the ffmpeg
binary - we never used to compile it before.
[[BR]]
Until someone researches the ffmpeg-user or ffmpeg-devel archives to find
out the real story, it is simplest to just disable it on OS X:
{{{
% git diff
diff --git a/mythtv/configure b/mythtv/configure
index 7099422..c0e038c 100755
--- a/mythtv/configure
+++ b/mythtv/configure
@@ -3046,6 +3046,7 @@ case $target_os in
enable backend
enable darwin
disable dvb
+ disable ffmpeg
# Prevent linker problems on default Intel 10.5 XCode:
ldver=$(ld -v 2>&1 | sed -e s/^[^-]*-//)
osxver=$(uname -r | cut -c 1)
%
}}}
--
Ticket URL: <http://code.mythtv.org/trac/ticket/9400#comment:1>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list