[Ffmpeg-devel] Re: [Ffmpeg-devel-old] gcc4: todays cvs dies at utils.c
sean
seandarcy2
Tue Apr 26 02:06:14 CEST 2005
Dave Dodge wrote:
> On Sun, Apr 24, 2005 at 07:09:16PM -0400, sean darcy wrote:
>
>>gcc -O3 -g -Wall -Wno-switch -O2 -fPIC -ffast-math -mtune=athlon64
>>-mtune=athlon64 -O2 -fPIC -DHAVE_AV_CONFIG_H -I..
>>-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o
>>utils.o utils.c
>
> [...]
>
>>What's really odd, yes odder than gcc 4, is that lrintf is NOT
>>declared before, or indeed anyplace else in ffmpeg:
>
>
> A simple thing to try: replace the "-o utils.o" with "-E" and run that
> gcc command by hand. That will dump the preprocessor output, which
> will presumably contain the lrintf declarations/definitions along with
> enough information to figure out which file is producing them.
>
Interesting.
...................
typedef float float_t;
typedef double double_t;
# 47 "/usr/include/math.h" 2 3 4
# 70 "/usr/include/math.h" 3 4
# 1 "/usr/include/bits/mathcalls.h" 1 3 4
# 53 "/usr/include/bits/mathcalls.h" 3 4
extern double acos (double __x) __attribute__
((__nothrow__)); extern double __acos (double __x)
__attribute__ ((__nothrow__));
[.........]
extern long int lrintf (float __x) __attribute__
((__nothrow__)); extern long int __lrintf (float __x)
__attribute__ ((__nothrow__));
extern long long int llrintf (float __x) __attribute__
((__nothrow__)); extern long long int __llrintf (float __x)
__attribute__ ((__nothrow__));
.............
Looks like it comes from libm.
grep -R lrintf /usr/lib/*
Binary file libm.a matches
Binary file libm.so matches
FWIW,
gcc version 4.0.0 20050423
So - How do we change dsputil.h? Delete lrintf? ifdef gcc4?
Whine and complain?
sean
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Ffmpeg-devel mailing list
Ffmpeg-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ffmpeg-devel
More information about the ffmpeg-devel
mailing list