From: Steven M. S. <sms@2BSD.COM> - 2003-04-30 16:10:25
|
Hi - > From: Kris Boutilier <Kri...@sc...> > Making all in mpeg2enc Is this with the CVS version or a released tarball kit? > readpic.cc: In function `void load_frame (int)': > readpic.cc:363: `PTHREAD_MUTEX_ERRORCHECK' undeclared (first use this Hmmm, RH-7.3 must have a goofed up <pthread.h> file then. I've build mjpegtools (the cvs version) on RH-8.0 and -9 plus SuSE 8.1 and 8.2 and never had a problem > I beleive it relates to the the reference to AC_GNU_SOURCE in configure.in. > I'm compiling on Redhat 7.3 which includes autoconf-2.53. Various documents > suggest the AC_GNU_SOURCE directive is only supported from 2.53b and up. > I've updated and it still isn't behaving. Did you re-run ./autogen.sh after installing autoconf-2.57 (which I believe is the current latest version)? > Any suggestions? Upgrade to RH 8 or 9? ;) The other things that can be tried would be to look at <pthread.h> and see what '#define' is needed to get that PTHREAD_MUTEX_ERRORCHECK defined. THere are a couple different names for that item though, PTHREAD_MUTEX_ERRORCHECK_NP is another one. The PTHREAD_MUTEX_ERRORCHECK related code is a 'safety belt' to catch any accidental non-portable mutex use. Linux threads by default use a non-portable default mutex attribute (not sure about the new Posix compatible threads in RH 9). Good Luck. Steven Schultz |