From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21708 invoked by alias); 21 Aug 2008 01:07:46 -0000 Received: (qmail 21699 invoked by uid 22791); 21 Aug 2008 01:07:46 -0000 X-Spam-Check-By: sourceware.org Received: from bender.grapevine.net.au (HELO bender.grapevine.net.au) (203.129.32.139) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 21 Aug 2008 01:07:06 +0000 Received: from localhost (localhost [127.0.0.1]) by bender.grapevine.net.au (Postfix) with ESMTP id 43EDEC038E; Thu, 21 Aug 2008 11:07:02 +1000 (EST) Received: from bender.grapevine.net.au ([127.0.0.1]) by localhost (bender.grapevine.net.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ltk-7DOZjlKw; Thu, 21 Aug 2008 11:07:02 +1000 (EST) Received: from localhost.localdomain (ppp-195.44.129.203.grapevine.net.au [203.129.44.195]) by bender.grapevine.net.au (Postfix) with ESMTP id BEB96C0376; Thu, 21 Aug 2008 11:07:01 +1000 (EST) Message-ID: <48ACBFB4.3050808@homemail.com.au> Date: Thu, 21 Aug 2008 01:07:00 -0000 From: Ross Johnson User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Pardeep Puar CC: pthreads-win32@sourceware.org Subject: Re: Help with issues on trying to compile ffmpeg with pthreads support References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org X-SW-Source: 2008/txt/msg00046.txt.bz2 I would guess that pid_t isn't defined. In sched.h line 116 you'll find:- #if defined(__MINGW32__) || defined(_UWIN) #if PTW32_LEVEL >= PTW32_LEVEL_MAX /* For pid_t */ # include /* Required by Unix 98 */ # include #endif /* PTW32_LEVEL >= PTW32_LEVEL_MAX */ #else typedef int pid_t; #endif PTW32_LEVEL is defined in pthread.h and is generally equal to PTW32_LEVEL_MAX (also defined in pthread.h), otherwise pid_t will not be defined, which is a bug. Could you try changing this to: #if defined(__MINGW32__) || defined(_UWIN) #if PTW32_LEVEL >= PTW32_LEVEL_MAX /* For pid_t */ # include /* Required by Unix 98 */ # include #else typedef int pid_t; #endif /* PTW32_LEVEL >= PTW32_LEVEL_MAX */ #else typedef int pid_t; #endif Check also that pid_t is defined in sys/types.h. Ross Pardeep Puar wrote: > Here is the configure command I am using: > ./configure --prefix=/c/dev/ffmpeg-build-shared --enable-memalign-hack > --enable-pthreads --disable-network --enable-shared --disable-static > Here is the error message I am getting: > In file included from > c:\msys\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/pthr > ead.h:288, > from libavcodec/pthread.c:24: > c:\msys\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/sche > d.h:152: error: expected ')' before 'pid' > c:\msys\mingw\bin\../lib/gcc/mingw32/4.2.1-sjlj/../../../../include/sche > d.h:154: error: expected ')' before 'pid' > make: *** [libavcodec/pthread.o] Error 1 > > Is there a problem with using pthreads with ffmpeg? > Thanks > Pardeep >