[mythtv] Ticket #3062: Freebsd compatibility patches

usleepless at gmail.com usleepless at gmail.com
Fri Mar 9 22:32:13 UTC 2007


List, Janne,

On 3/9/07, Janne Grunau <janne-mythtv at grunau.be> wrote:
> On Friday 09 March 2007 17:12:24 usleepless at gmail.com wrote:
> >
> > currently, i am trying to get mythtv-svn building on Freebsd-i386 and
> > amd64 ( 64 bits ).
> >
> > there are a couple of problems:
> >
> > in configure:
> >   toupper() fails the way it is on fbsd: it turns RPZA into RP]A,
> > ZMBV into ]MBV. every codec with a Z in it is mangled. this makes the
> > build fail. is it possible to have a specific workaround for solaris?
> > ( "tr" is called the way it is because of solaris, see definition of
> > toupper() in configure ). if i create a patch, should it be posted to
> > this ticket? or should i create a new one?
>
> please neither. It should be reproduceable with ffmpeg's configure.
> Pleae report the error there.

i investigated it further, and the mystery is it only happens on my
machine. i will forget about this one for a while...

> > in configure:
> >   has_library() calls sed with curly braces. freebsd-sed errors on
> > these. are these braces necessary (for certain platforms)? if i
> > create a patch, should it be posted to this ticket? or should i
> > create a new one?
>
> I hope not, fixed

thank you very much.

> > in configure:
> >   when testing for 64-bits, "$cc -dumpmachine" is called. there is a
> > bug on fbsd for cc which doesn't support "-dumpmachine". strange
> > enough c++ DOES support "-dumpmachine". changing "$cc -dumpmachine"
> > to "$cxx -dumpmachine" solves the problem. if i create a patch,
> > should it be posted to this ticket? or should i create a new one?
>
> Please reproduce with ffmpeg and report to it there.

i submitted a problem report to freebsd instead. thanks.

> > dsputil.c:
> >   on fbsd-amd64-64 it gives a mysterious error message in
> > ff_check_alignment():
> >
> > dsputil.c: In function `ff_check_alignment':
> > dsputil.c:3826: error: unrecognizable insn:
> > (insn 64 10 12 0 (set (reg:SI 0 ax [61])
> >         (subreg:SI (plus:DI (subreg:DI (reg:SI 7 sp) 0)
> >                 (const_int -4 [0xfffffffffffffffc])) 0)) -1 (nil)
> >     (nil))
> > dsputil.c:3826: internal compiler error: in extract_insn, at
> > recog.c:2083
> >
> > changing the type of "aligned" from "int" to "long" solves the
> > problem. this is on gcc3.4.6.
>
> Please reproduce with ffmpeg and report to it there.

this is something about ffmpeg indeed. still not sure what it is though.

i wasn't aware that these problems are related to ffmpeg mostly
instead of mythtv.

sorry for the fuzz.

thanks and regards,

usleep


More information about the mythtv-dev mailing list