+ Responder ao Tópico



  1. #1

    Padrão problemas com pthread

    a pouco mais de uma semana, fiz uma atualização no debian com o aptitude upgrade

    desde então venho tendo seguidos problemas com minha pthread

    todo programa que tento compilar da problema com a pthread erros desse tipo...

    file SConstruct,line 464:
    Configure(confdir = .sconf_temp)
    scons: Configure: Checking for C++ header file boost/shared_ptr.hpp...
    .sconf_temp/conftest_2.cpp <-
    |
    |#include <boost/shared_ptr.hpp>
    |
    |
    g++ -o .sconf_temp/conftest_2.o -c .sconf_temp/conftest_2.cpp
    /usr/include/pthread.h:285: error: conflicting declaration 'typedef struct pthread_st* pthread_t'
    /usr/include/bits/pthreadtypes.h:152: error: 'pthread_t' has a previous declaration as 'typedef long unsigned int pthread_t'
    /usr/include/pthread.h:286: error: conflicting declaration 'typedef struct pthread_attr_st* pthread_attr_t'
    /usr/include/bits/pthreadtypes.h:54: error: 'pthread_attr_t' has a previous declaration as 'typedef struct __pthread_attr_s pthread_attr_t'
    /usr/include/pthread.h:287: error: conflicting declaration 'typedef int pthread_key_t'
    /usr/include/bits/pthreadtypes.h:82: error: 'pthread_key_t' has a previous declaration as 'typedef unsigned int pthread_key_t'
    /usr/include/pthread.h:289: error: conflicting declaration 'typedef int pthread_mutexattr_t'
    /usr/include/bits/pthreadtypes.h:102: error: 'pthread_mutexattr_t' has a previous declaration as 'typedef struct pthread_mutexattr_t pthread_mutexattr_t'
    /usr/include/pthread.h:290: error: conflicting declaration 'typedef struct pthread_mutex_st* pthread_mutex_t'
    /usr/include/bits/pthreadtypes.h:95: error: 'pthread_mutex_t' has a previous declaration as 'typedef struct pthread_mutex_t pthread_mutex_t'
    /usr/include/pthread.h:291: error: conflicting declaration 'typedef int pthread_condattr_t'
    /usr/include/bits/pthreadtypes.h:79: error: 'pthread_condattr_t' has a previous declaration as 'typedef struct pthread_condattr_t pthread_condattr_t'
    /usr/include/pthread.h:292: error: conflicting declaration 'typedef struct pthread_cond_st* pthread_cond_t'
    /usr/include/bits/pthreadtypes.h:72: error: 'pthread_cond_t' has a previous declaration as 'typedef struct pthread_cond_t pthread_cond_t'
    /usr/include/pthread.h:293: error: conflicting declaration 'typedef int pthread_rwlockattr_t'
    /usr/include/bits/pthreadtypes.h:128: error: 'pthread_rwlockattr_t' has a previous declaration as 'typedef struct pthread_rwlockattr_t pthread_rwlockattr_t'
    /usr/include/pthread.h:294: error: conflicting declaration 'typedef struct pthread_rwlock_st* pthread_rwlock_t'
    /usr/include/bits/pthreadtypes.h:120: error: 'pthread_rwlock_t' has a previous declaration as 'typedef struct _pthread_rwlock_t pthread_rwlock_t'
    scons: Configure: no
    eu não fiz mais nada além de excutar o comando "aptitude upgrade", depois disso começou a dar o problemas.

    uso debian-3.1 com kernel 2.6.18, gcc-4.1.

    alguém tem idéia do que seja isso?

    valeu.

  2. #2

    Padrão

    ta com cara de que vc tem 2 libs pthread diferentes, ou entao a sua lib ta zuada, ja peguei uns casos estranhos disso com o apt, se vc nao tiver usando source list original (nao br ou qualquer outro, o principal mesmo) recomendo vc alterar o source-list remover essa biblioteca e mandar atualizar tudo denovo



  3. #3

    Padrão

    eu retirei a pthread e voltou a funcionar, valeu.