[Ffmpeg-devel] compile errors on Solaris 10

may nothing may_241913
Wed Aug 30 10:16:28 CEST 2006

Ya, I've heard about it.  Mike Melanson ah ... solved ... this Problem. :
Mike Melanson wrote:

>joelbberk at netscape.net wrote:
>> I get the following compilation errors:
>> rtp.c: In function `rtp_parse_mp4_au':
>> rtp.c:321: error: invalid operands to binary &
>> rtp.c:321: error: invalid operands to binary >>
>> gmake[1]: *** [rtp.o] Error 1
>> The offending code line is:
>>     au_headers_length = BE_16(buf);
>> Any known workarounds or fixes?
>    If you are in the hacking mood, open libavcodec/avcodec.h and find this 
>/* endian macros */
>#if !defined(BE_16) || !defined(BE_32) || !defined(LE_16) || !defined(LE_32)
>add the following lines between the comment and the #if:
>#undef LE_16
>#undef LE_32
>#undef BE_16
>#undef BE_32
>See if your specific problem goes away and please report back.
The problem I was having was just with BE_16, so I added the lines:

#ifdef BE_16
#undef BE_16

but the problem remained.  
Then I substituted the BE_16 macro expansion itself for the reference and got past my problem.

Can you tell me how to "substituted the BE_16 macro expansion itself" ?
If I rename the macros, which other files use them ?

----- Original Message ----
From: M?ns Rullg?rd <mru at inprovide.com>
To: FFMpeg development discussions and patches <ffmpeg-devel at mplayerhq.hu>
Sent: Tuesday, August 29, 2006 7:55:43 PM
Subject: Re: [Ffmpeg-devel] compile errors on Solaris 10

Michel Bardiaux said:
> may nothing wrote:
>> Hi everyone,
>> I try to compile ffmpeg on a Sparc Solaris 10 box. I use gcc-4.1.1 and gnu
>> ld. This is what I got:
>> gmake[1]: Entering directory `/space/ffmpeg/libavformat'
>> gcc -I.. -I/space/ffmpeg -I/space/ffmpeg/libavutil
>> -I/space/ffmpeg/libavcodec -g -Wdeclaration-after-statement -Wall
>> -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE  -c -o utils.o utils.c
> [snip]
>> rtp.c: In function 'rtp_parse_mp4_au':
>> rtp.c:321: error: invalid operands to binary &
>> rtp.c: In function 'rtp_parse_packet':
>> rtp.c:498: warning: pointer targets in assignment differ in signedness
>> gmake[1]: *** [rtp.o] Error 1
>> gmake[1]: Leaving directory `/space/ffmpeg/libavformat'
>> gmake: *** [lib] Error 2
>> bash-3.00#
>> Can somebody help me ?
> Are you sure you're up-to-date wrt svn? What exactly is there on the
> offending line in your files?

There is a BE16 macro defined somewhere in ffmpeg that conflicts with another
macro of the same name in a Solaris system header.

M?ns Rullg?rd
mru at inprovide.com
ffmpeg-devel mailing list
ffmpeg-devel at mplayerhq.hu

More information about the ffmpeg-devel mailing list