[MPlayer-dev-eng] Re: [PATCH] Mplayer fails to compile with libavcodec from cvs

Tobias Diedrich ranma at gmx.at
Wed Dec 3 00:50:11 CET 2003


ismail 'cartman' dönmez wrote:

> A little investigation showed that particular definition in libavcodec/common.h :
> 
> #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
> #    define always_inline __attribute__((always_inline)) inline
> #else
> #    define always_inline inline
> #endif
> 
> was the problem. Attached path fixors this. My gcc is :

Debian user?
If so, try updating your linux-kernel-headers package.
The problem is in the linux-2.6 kernel headers redefining inline
depending on compiler version, quoting from
/usr/src/kernel-source-2.6.0-test9/include/linux/compiler-gcc3.h:
|#if __GNUC_MINOR__ >= 1
|# define inline>>-------__inline__ __attribute__((always_inline))
|# define __inline__>----__inline__ __attribute__((always_inline))
|# define __inline>------__inline__ __attribute__((always_inline))
|#endif

At least for Debian this is fixed since at least version
2.5.999-test7-bk-6 of the linux-kernel-headers package, quoting from
/usr/share/doc/linux-kernel-headers/changelog.Debian.gz:
|linux-kernel-headers (2.5.999-test7-bk-6) unstable; urgency=low
|
|  * Add .cvsignore.
|  * Replace old versions of dvb-dev (Closes: #218387).
|  * Don't use __u64 in <asm-i386/byteorder.h> if it wasn't defined.
|  * Don't include <linux/config.h> in <asm-alpha/param.h> (Closes:
|  * #212101).
|  * Disable the guts of <linux/compiler.h> in userspace
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|    (Closes: #218447, #218482).
|
| -- Daniel Jacobowitz <dan at debian.org>  Sat,  1 Nov 2003 17:34:44 -0500


-- 
/* Tobias */  int main(int a,char **b){char i,j,t,*r=*++b;srand(getpid());for(;
*r;){for(;*r&&!isalpha(*r);r++);for(i=1;isalpha(r[i+1]);i++){j=rand()%i;t=r[i];
r[i]=r[++j];r[j]=t;}r+=i+1;}puts(*b);}       /* PGP: http://9ac7e0bc.2ya.com */
np: mutagene: http://remix.overclocked.org 99 - Radical Dreamers Grainy OC ReMix []



More information about the MPlayer-dev-eng mailing list