[mythtv] Ticket #3062: Freebsd compatibility patches

usleepless at gmail.com usleepless at gmail.com
Fri Feb 9 11:33:56 UTC 2007


Nigel,

On 2/9/07, Nigel Pearson <nigel at ind.tansu.com.au> wrote:
>
> >>>  videoout_xv.cpp - I suspect NetBSD also lacks malloc.h. It
> >>> should probably
> >>>  be:
> >>>  {{{
> >>>  #ifdef _linux_
> >>>  #include <malloc.h>
> >>>  #endif
> >>>  }}}
> >> malloc.h is deprecated on FreeBSD. do i need to resubmit the patch
> >> with this changed?
> >
> > I don't need "malloc.h" on my Linux system. Does anyone know
> > what OS "malloc.h" is needed for?
>
>
> I am all for dropping it, but maybe for
> really old compilers or header sets,
> something like this would be more portable:
>
> #if !defined(_MALLOC_H) && !defined(_MALLOC_MALLOC_H_) && !defined
> (_SYS_MALLOC_H_)
>
>
>
> >>> version.pro - Curious. What is the behavior without the sh -c ?
> >>>  [[BR]]
> >> command fails. doesn't produce version.cpp, build fails.
> >
> > Nigel, "sh -c" should be ok on Linux, what about Darwin?
>
> It does, but that sh make rule is getting a little unweildy.
> The subshell part of it - (svnversion ...) || echo Unknown-
> in particular.
>
> Mr usleep, I don't suppose you could revert
> that and mail us the relevant make output?

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?

i think you should suppose i am willing to do what is necessary to get
mythtv compiling and working for freebsd right from svn.

regards,

usleep

>
> --
> Nigel Pearson, nigel at ind.tansu.com.au|"Reality is that which,
> Telstra Net. Eng., Sydney, Australia | when you stop believing
> Office: 9202 3900    Fax:  9261 3912 | in it, doesn't go away."
> Mobile: 0408 664435  Home: 9792 6998 | Philip K. Dick - 'Valis'
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>


More information about the mythtv-dev mailing list