tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] Problem with elf versioning


From: Herman ten Brugge
Subject: [Tinycc-devel] Problem with elf versioning
Date: Sun, 01 May 2011 08:27:00 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Thunderbird/3.1.10

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]