[MPlayer-cygwin] lrintf nondetection on 2.95.3-10

Sycotic Smith sycotic at linuxmail.org
Fri Nov 22 22:31:45 CET 2002


Hi,

I am using gcc2.95.3-10 in my cygwin enviro, and when configure looks for lrintf, it says it doesn't find it.  I have looked at configure and configure.log, and it seems to be missing it.  I looked in the <math.h> file and it IS in fact there, on line 225:
extern long int lrintf _PARAMS((float));

As a result, there are multiple warnings about lrintf within the libavcodec folder:

gcc -O4 -march=i686 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OF
FSET_BITS=64 -D__CYGWIN__ -Wall -g -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURC
E -D_GNU_SOURCE -c -o utils.o utils.c
In file included from utils.c:20:
dsputil.h:285: warning: static declaration for `lrintf' follows non-static
...

Am I missing something, or is this different from what it should be on linux, and it doesn't detect due to wrong number for detection routine (should it be 1.0 instead of 0.0, etc?), or missing lib on cmdline for detection?

configure.log section:
============ Checking for lrintf ============

#include <math.h>
int main(void) { (void) lrintf(0.0); return 0; }

gcc   -L/usr/local/lib /tmp/mplayer-conf--5452.c -o /tmp/mplayer-conf--5452.o -lm
/cygdrive/c/TEMP/cch3mo7T.o(.text+0x11):mplayer-conf--5452.c: undefined reference to `lrintf'
collect2: ld returned 1 exit status

ldd /tmp/mplayer-conf--5452.o
gcc /tmp/mplayer-conf--5452.o
gcc: /tmp/mplayer-conf--5452.o: No such file or directory
gcc: No input files
perlld: *** system() failed to execute
gcc /tmp/mplayer-conf--5452.o


Result is: no

I do understand the error that there's no such file, since it didn't compile, but what can we do to make it work?
-- 
______________________________________________
http://www.linuxmail.org/
Now with POP3/IMAP access for only US$19.95/yr

Powered by Outblaze



More information about the MPlayer-cygwin mailing list