[mythtv] Ticket #3062: Freebsd compatibility patches

usleepless at gmail.com usleepless at gmail.com
Thu Feb 15 08:04:11 UTC 2007


Nigel,

On 2/15/07, Nigel Pearson <nigel at ind.tansu.com.au> wrote:
> > cd libmythupnp && make -f Makefile
> > WARNING: Failure to find: version.cpp
> > echo 'const char *myth_source_version =' '"'`(svnversion
> > /usr/home/usleep/mythtv2/mythtv 2>/dev/null) || echo Unknown`'";' >
> > .vers.new ; diff .vers.new version.cpp > .vers.diff 2>&1 ; if test -s
> > .vers.diff ; then mv -f .vers.new version.cpp ; fi ; rm -f .vers.new
> > .vers.diff
> > *** Error code 2
> >
> > Stop in /usr/home/jan/mythtv2/mythtv/libs/libmythupnp.
> > *** Error code 1
> >
> > my guess is that the code is being executed in (t)csh instead of sh (
> > even when i run the make command from a sh-shell ). maybe a cleaner
> > solution is to create a version.sh and call that from version.pro?
> 
> That was my original approach, but having
> two files to do one thing seemed wasteful.
> 
> 
> 
> One other clarification question. Was this change:
> 
> Index: programs/mythbackend/backendutil.cpp
> ===================================================================
> --- programs/mythbackend/backendutil.cpp	(revision 12793)
> +++ programs/mythbackend/backendutil.cpp	(working copy)
> @@ -1,7 +1,7 @@
> #include <cstdlib> // for llabs
> #include "mythconfig.h"
> -#ifdef CONFIG_DARWIN
> +#if defined(CONFIG_DARWIN) || defined(__FreeBSD__)
> #include <sys/param.h>
> #include <sys/mount.h>
> static inline long long int abs(long long int v) { return llabs(v); }
> 
> for the headers, or something to do with abs()?

the headers/types, otherwise i get:

backendutil.cpp: In function `void BackendQueryDiskSpace(QStringList&, QMap<int, EncoderLink*>*, bool, bool)':
backendutil.cpp:57: error: aggregate `statfs statbuf' has incomplete type and cannot be defined

thanks and regards,

usleep


More information about the mythtv-dev mailing list