[Ffmpeg-devel] Re: [PATCH] Fix compilation when using --disable-opts

Ramiro Ribeiro Polla ramiro
Mon Mar 19 16:32:14 CET 2007


Hello,

Panagiotis Issaris wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi
>
> Panagiotis Issaris schreef:
> ...
>   
>>>>>>>>>>>> Diego Biurrun said:
>>>>>>>>>>>>                         
>>>>>>>>>>>>> On Thu, Mar 15, 2007 at 05:58:35PM +0100, Panagiotis Issaris wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>                           
>>>>>>>>>>>>>> The attached patch fixes compilation when using the --disable-opts
>>>>>>>>>>>>>> parameter. This to help those interested in using a debugger to
>>>>>>>>>>>>>> debug
>>>>>>>>>>>>>> FFmpeg.
>>>>>>>>>>>>>>                             
>>>>>> [...]
>>>>>>             
>>> Updated patch attached.
>>>       
>> Ahum. Please ignore this one...
>>     
> Updated patch attached.
>
>   
[...]
>  
> +if test $arch = "x86_32" -o $arch = "x86_64"; then
> +    if test "$targetos" = "mingw32" -o "$targetos" = "CYGWIN"; then
> +        cat <<EOF
> +WARNING: The following test might cause a testapp to crash (intentionally)
> +resulting in the appearance of a dailog box. Please click OK and ignore it.
>   
s/dailog/dialog/
> +EOF
> +    fi
> +
> +    # check whether EBP is available on x86
> +    # As 'i' is stored on the stack, this program will crash
> +    # if the base pointer is used to access it because the
> +    # base pointer is cleared in the inline assembly code.
> +    check_exec <<EOF && enable ebp_available
> +int main(){
> +    volatile int i=0;
> +    asm volatile (
> +        "xorl %%ebp, %%ebp"
> +    ::: "%ebp");
> +    return i;
> +}
> +EOF
> +
> +    # check wether EBX is available on x86
> +    check_cc <<EOF && enable ebx_available
> +int main(){
> +    asm volatile ("":::"%ebx");
> +}
> +EOF
> +fi
> +
>  # check for assembler specific support
>   

I don't have access to Windows right now, but I'll check later on today 
if it keeps running (IIRC it does) and if OK is the right button name.

I'm waiting for this patch so that I can also make a test that might 
crash (to check for unaligned data access). So it's probably better to 
make this a function that can be called many times but runs only once.

Ramiro Polla




More information about the ffmpeg-devel mailing list