[Ffmpeg-devel] compiling on Solaris 10

Måns Rullgård mru
Thu Dec 7 16:16:35 CET 2006


Bjoern Rost said:
> On Thu, 2006-12-07 at 13:50 +0000, M?ns Rullg?rd wrote:
>> > so I changed #!/bin/sh to #!/bin/bash
>>
>> Oh boy, is your shell broken.
>
> I didn't do it =)
>
>> Smells of broken sed.
>
> Of course, it's system V sed, not gsed...
> I didn't think of that one when I replaced make, ld, ar and so on with
> the GNU versions/

SUSv3 sed should be good enough for the ffmpeg configure script.  I checked
the specs carefully.

> But after patching, configure doesn't return any more errors and I don't
> have to add the DLFCN stuff manually.

Good.

>> Someone forgot to add a file to svn.  Use configure --disable-encoder=zmbv
>> for now.
>
> ok, something was also wrong with amr, so I removed those
> enable-parameters aswell
>
> Then, I get this error:
>
> In file included from rtp.c:21:
> avformat.h:243: warning: `AVFrac' is deprecated (declared at
> avformat.h:94)
> rtp.c: In function `rtp_parse_mp4_au':
> rtp.c:511: error: invalid operands to binary &
> rtp.c:511: error: invalid operands to binary >>
>
> and
>
> In file included from rtp_h264.c:39:
> avformat.h:243: warning: `AVFrac' is deprecated (declared at
> avformat.h:94)
> rtp_h264.c: In function `h264_handle_packet':
> rtp_h264.c:216: error: invalid operands to binary &
> rtp_h264.c:216: error: invalid operands to binary >>
>
> I got around these by using pointers dereference thingies ('*buf'
> instead of 'buf')

Yes, that's a known problem.  The correct fix is to rename the offending
macros in ffmpeg.

> At the end, I still get this error because make is using my (broken)
> shell
>
> /bin/sh: test: unknown operator -nt
> make: *** [.libs] Error 1
>
> And I can get around this one by setting SHELL=/bin/bash in config.mak

Actually, test -nt is not POSIX.  Try the attached patch.

-- 
M?ns Rullg?rd
mru at inprovide.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-nt.patch
Type: application/octet-stream
Size: 507 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061207/ca471f44/attachment.obj>



More information about the ffmpeg-devel mailing list