[Ffmpeg-devel] [Ffmpeg-devel-old] gcc4: todays cvs dies at utils.c

sean darcy seandarcy2
Mon Apr 25 01:09:16 CEST 2005


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
In file included from utils.c:28:
dsputil.h:612: error: static declaration of 'lrintf' follows
non-static declaration
make[1]: *** [utils.o] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/ffmpeg/libavcodec'


What's really odd, yes odder than gcc 4, is that lrintf is NOT
declared before, or indeed anyplace else in ffmpeg:

ffmpeg]$ grep -R lrintf *
configure:# test for lrintf in math.h
configure:int main( void ) { return (lrintf(3.999f) > 0)?0:1; }
configure:have_lrintf="no"
configure:  have_lrintf="yes"
configure:    $TMPE 2> /dev/null > /dev/null || have_lrintf="no"
configure:if test "$have_lrintf" = "yes" ; then
doc/ffmpeg-doc.texi:'replaces lrint by lrintf') , and why (for example
'*bsd isnt c99 compliant
ffmpeg.c:        ost->sync_opts= lrintf(ost->sync_ipts * enc->sample_rate)
ffmpeg.c:            nb_frames = lrintf(vdelta);
ffmpeg.c:        ost->sync_opts= lrintf(ost->sync_ipts *
enc->frame_rate / enc->frame_rate_base);
libavcodec/dsputil.h:static always_inline long int lrintf(float x)
libavcodec/faandct.c:        data[8*0 + i]= lrintf(SCALE(8*0 + i) *
(tmp10 + tmp11));
libavcodec/faandct.c:        data[8*4 + i]= lrintf(SCALE(8*4 + i) *
(tmp10 - tmp11));
libavcodec/faandct.c:        data[8*2 + i]= lrintf(SCALE(8*2 + i) *
(tmp13 + z1));
libavcodec/faandct.c:        data[8*6 + i]= lrintf(SCALE(8*6 + i) *
(tmp13 - z1));
libavcodec/faandct.c:        data[8*5 + i]= lrintf(SCALE(8*5 + i) * (z13 + z2));
libavcodec/faandct.c:        data[8*3 + i]= lrintf(SCALE(8*3 + i) * (z13 - z2));
libavcodec/faandct.c:        data[8*1 + i]= lrintf(SCALE(8*1 + i) * (z11 + z4));
libavcodec/faandct.c:        data[8*7 + i]= lrintf(SCALE(8*7 + i) * (z11 - z4));
libavcodec/faandct.c:        data[8*0 + i] = lrintf(SCALE(8*0 + i) *
(tmp10 + tmp11));
libavcodec/faandct.c:        data[8*4 + i] = lrintf(SCALE(8*4 + i) *
(tmp10 - tmp11));
libavcodec/faandct.c:        data[8*2 + i] = lrintf(SCALE(8*2 + i) *
(tmp13 + z1));
libavcodec/faandct.c:        data[8*6 + i] = lrintf(SCALE(8*6 + i) *
(tmp13 - z1));
libavcodec/faandct.c:   data[8*1 + i] = lrintf(SCALE(8*0 + i) * (tmp10
+ tmp11));
libavcodec/faandct.c:   data[8*5 + i] = lrintf(SCALE(8*4 + i) * (tmp10
- tmp11));
libavcodec/faandct.c:   data[8*3 + i] = lrintf(SCALE(8*2 + i) * (tmp13 + z1));
libavcodec/faandct.c:   data[8*7 + i] = lrintf(SCALE(8*6 + i) * (tmp13 - z1));
libavcodec/mpegaudiodec.c:        ptr[-1-j] = lrintf(tmp0 * csa[0+4*j]
- tmp1 * csa[1+4*j]);\
libavcodec/mpegaudiodec.c:        ptr[   j] = lrintf(tmp0 * csa[1+4*j]
+ tmp1 * csa[0+4*j]);
libavcodec/mpegvideo.c:            vbv_delay= lrintf(90000 *
s->rc_context.buffer_index / s->avctx->rc_max_rate);
libavcodec/mpegvideo.c:                    basis[perm_index][8*x + y]=
lrintf(s * cos((M_PI/8.0)*i*(x+0.5)) * cos((M_PI/8.0)*j*(y+0.5)));
libavcodec/resample2.c:            v = clip(lrintf(tab[i] * scale /
norm + e), FELEM_MIN, FELEM_MAX);
libavcodec/snow.c:        qexp[i]= lrintf(v);
libavcodec/wmadec.c:            a = lrintf(*iptr++);

puzzled

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_ide95&alloc_id396&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