Hi, I am facing an error in pthread.h while compiling my application using gcc 4.1.2. But I don't have any error if I compile same applicaiton using gcc 3.2.3. Can anyone help me?
GCC Build: Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux Thread model: posix gcc version 4.1.2 20071124 (Red Hat 4.1.2-42) Error: In file included from restart.c:48: /usr/include/pthread.h:495: error: expected specifier-qualifier-list before '__jmp_buf' make[3]: *** [restart.o] Error 1 make[2]: *** [lib] Error 2 make[1]: *** [svc_libs] Error 2 make[1]: Leaving directory `/home/skrishn4/services' make: *** [default] Error 2 -- Summary: Error in pthread.h Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: major Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: saravanan-2 dot krishnamoorthy-2 at cognizant dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38340