[mythtv] Ticket #3062: Freebsd compatibility patches

Janne Grunau janne-mythtv at grunau.be
Fri Mar 9 17:27:30 UTC 2007


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.

> 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

> 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.

> 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.

Janne


More information about the mythtv-dev mailing list