The following program:
#include <stdio.h>
#include <pthread.h>
#include <errno.h>
int
main(void)
{
pthread_condattr_t attr;
pthread_cond_t condition;
pthread_condattr_init (&attr);
pthread_condattr_setpshared (&attr, PTHREAD_PROCESS_SHARED);
int ret = pthread_cond_init (&condition, &attr);
if (ret) {
errno = ret;
perror ("pthread_cond_init");
}
pthread_condattr_destroy (&attr);
return 0;
}
when compiled with tiny cc return an error when compiled on fedora 14
with libc 2.13.
The same code works fine when compiled with gcc.
It looks like the wrong version of the libpthread code is run. So
something must go
wrong with the versioning information in the libpthread elf library.
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel