[x264-devel] x264 --disable-pthread bug + solution

Stijn de Waele stijn.de.waele at philips.com
Thu Sep 13 12:43:29 CEST 2007


dear all,

the current version of x264 does not compile successfully under linux with
pthreads disabled:

./configure --disable-pthread

The result is:
In file included from /usr/include/sys/types.h:270,
                 from /usr/include/stdlib.h:438,
                 from common/common.h:67,
                 from muxers.c:21:
/usr/include/bits/pthreadtypes.h:36: error: two or more data types in
declaration specifiers
/usr/include/bits/pthreadtypes.h:73: error: two or more data types in
declaration specifiers
/usr/include/bits/pthreadtypes.h:99: error: two or more data types in
declaration specifiers

The cause can be found in the order of includes in common/common.h
/****************************************************************************
 * Includes

****************************************************************************/
#include "osdep.h"
#include <stdarg.h>
#include <stdlib.h>

Things compile OK with
/****************************************************************************
 * Includes

****************************************************************************/
#include <stdlib.h>
#include "osdep.h"
#include <stdarg.h>

kind regards.
stijn.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.videolan.org/pipermail/x264-devel/attachments/20070913/fcd6be8a/attachment.htm 


More information about the x264-devel mailing list