Aurelien Jacobs <[EMAIL PROTECTED]> added the comment:

On Sat, 12 Jul 2008 14:11:34 +0000
Mans Rullgard <[EMAIL PROTECTED]> wrote:

> 
> Mans Rullgard <[EMAIL PROTECTED]> added the comment:
> 
> ProgrammingKid <[EMAIL PROTECTED]> writes:
> 
> > ProgrammingKid <[EMAIL PROTECTED]> added the comment:
> >
> > Here is the complete error message: 
> >
> > In file included from ffmpeg.c:34:
> > libavformat/framehook.h:25:2: warning: #warning VHOOK is
> > deprecated. Please help finishing libavfilter instead of wasting 
> > your time writing new filters for this crappy filter system.
> > In file included from ffmpeg.c:41:
> > /usr/include/sys/resource.h:81: error: field `ru_utime' has 
> > incomplete type
> > /usr/include/sys/resource.h:82: error: field `ru_stime' has 
> > incomplete type
> > make: *** [ffmpeg.o] Error 1
> 
> Your system is broken.

That's true. On the other hand, I would expect configure to
detect such a broken header (it's only used under
HAVE_SYS_RESOURCE_H).
The following patch may fix this.
(Moreover, it would allow to drop the check_cpp function)

--- configure   (revision 14182)
+++ configure   (working copy)
@@ -472,7 +472,7 @@
     shift
     var=`echo $header | sed 's/[^A-Za-z0-9_]/_/g'`
     disable $var
-    check_cpp "$@" <<EOF && enable $var
+    check_cc "$@" <<EOF && enable $var
 #include <$header>
 int x;
 EOF

Aurel

______________________________________________________
FFmpeg issue tracker <[EMAIL PROTECTED]>
<https://roundup.mplayerhq.hu/roundup/ffmpeg/issue521>
______________________________________________________

Reply via email to