I checked out pymedia, tried to compile it and encountered the error below.
In file included from /usr/include/fcntl.h:34,
from video/libavcodec/utils.c:39:
/usr/include/bits/fcntl.h:216: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘readahead’
/usr/include/bits/fcntl.h:226: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘vmsplice’
/usr/include/bits/fcntl.h:230: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘splice’
/usr/include/bits/fcntl.h:235: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘tee’
error: command 'gcc' failed with exit status 1
My environment is the following:
$uname -r
2.6.27.30-170.2.82.fc10.i686
$gcc --version
gcc (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7)
$python --version
Python 2.5.2
The attached patch fixes this error.
Another bug fixed in the patch is for O_BINARY which is not defined under linux.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
This patch is so cool! I can finish building, too.
Thanks a lot.
administrator@CF-T4 ~/pymedia $ uname -r
2.6.35-22-generic
administrator@CF-T4 ~/pymedia $ gcc --version
gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
administrator@CF-T4 ~/pymedia $ python --version
Python 2.6.6