hello all,
i'm trying to compile vlc latest release (0.8.6d) on S10U4.
I'm stucked at compiling libfaad:
  gcc -DHAVE_CONFIG_H -I. -I. -I.. 
-I/home/henry/vlc-0.8.6d/extras/contrib/include -I/include -O3 -MT 
bits.lo -MD -MP -MF .deps/bits.Tpo -c bits.c  -fPIC -DPIC -o .libs/bits.o
In file included from 
/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/include/math.h:27,
                  from common.h:344,
                  from bits.c:28:
/usr/include/iso/math_c99.h:200: error: conflicting types for 'lrintf'
common.h:311: error: previous definition of 'lrintf' was here
make[3]: *** [bits.lo] Error 1
make[3]: Leaving directory 
`/home/henry/vlc-0.8.6d/extras/contrib/src/faad/libfaad'

ultra20-henry% vi +311 ./libfaad/common.h
   #elif (defined(__i386__) && defined(__GNUC__))
     #define HAS_LRINTF
     // from http://www.stereopsis.com/FPU.html
     static INLINE int lrintf(float f)
     {
         int i;
         __asm__ __volatile__ (
             "flds %1        \n\t"
             "fistpl %0      \n\t"
             : "=m" (i)
             : "m" (f));
         return i;
     }
   #endif

but Sun has:
ultra20-henry% vi +200 /usr/include/iso/math_c99.h
extern long int lrintf __P((float));

How can i deal with this?

Thanks in advance,

PS: the goal of this is to have tools to build dvd, as with dvdauthor


-- 
Gerard HENRY

Reply via email to