Marc On line 70 of /usr/include/bits/pthreadtypes.h, change }; to } __NOT_ANON_UNION_TCC;
The union has to have a name. Fred Weigel. On Sat, 2006-10-28 at 15:05 +0100, Marc van Dongen wrote: > Dear all, > > I'm migrating to a new machine, when I got the following error with libtcc: > In file included from /tmp/bordewijkRpFK11.c:2: > In file included from /usr/include/stdlib.h:438: > In file included from /usr/include/sys/types.h:270: > /usr/include/bits/pthreadtypes.h:69: identifier expected > tcc: file 'AS_NEEDED' not found > /usr/lib/libc.so:3: filename expected > /usr/lib/libc.so:3: unrecognized file type > The following is a snipped of /usr/include/bits/pthreadtypes.h > 55: typedef union > 56: { > 57: struct __pthread_mutex_s > 58: { > 59: int __lock; > 60: unsigned int __count; > 61: int __owner; > 62: /* KIND must stay at this position in the structure to maintain > 63: binary compatibility. */ > 64: int __kind; > 65: unsigned int __nusers; > 66: __extension__ union > 67: { > 68: int __spins; > 69: __pthread_slist_t __list; > 70: }; > 71: } __data; > 72: char __size[__SIZEOF_PTHREAD_MUTEX_T]; > 73: long int __align; > 74: } pthread_mutex_t; > > I'm using gcc version 4.1.0 (SUSE Linux) and tcc-0.9.22/. > > I noticed there was a thread reporting a similar problem. > Any suggestions on how to solve this would be much appreciated. > > Regards, > > > Marc van Dongen _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/tinycc-devel