[Tech] problemi di compilazione

Fabio Nigi - nigifabio@gmx.it
Dom 19 Nov 2006 00:12:44 CET


il problema sembrerà banale ma non riesco a capire da cosa derivi:
su alcuni sorgenti, il gcc mi genera 2 tipologie di errori

/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/cstdlib:135: err or: '::system' has not been declared

questa è la prima..

e questa la seconda:
/usr/include/pthread.h:285: error: conflicting types for 'pthread_t'
/usr/include/bits/pthreadtypes.h:152: error: previous declaration of 'pthread_t' was here
/usr/include/pthread.h:286: error: conflicting types for 'pthread_attr_t'
/usr/include/bits/pthreadtypes.h:54: error: previous declaration of 'pthread_attr_t' was here
/usr/include/pthread.h:287: error: conflicting types for 'pthread_key_t'
/usr/include/bits/pthreadtypes.h:82: error: previous declaration of 'pthread_key_t' was here
/usr/include/pthread.h:289: error: conflicting types for 'pthread_mutexattr_t'
/usr/include/bits/pthreadtypes.h:102: error: previous declaration of 'pthread_mutexattr_t' was here
/usr/include/pthread.h:290: error: conflicting types for 'pthread_mutex_t'
/usr/include/bits/pthreadtypes.h:95: error: previous declaration of 'pthread_mutex_t' was here
/usr/include/pthread.h:291: error: conflicting types for 'pthread_condattr_t'
/usr/include/bits/pthreadtypes.h:79: error: previous declaration of 'pthread_condattr_t' was here
/usr/include/pthread.h:292: error: conflicting types for 'pthread_cond_t'
/usr/include/bits/pthreadtypes.h:72: error: previous declaration of 'pthread_cond_t' was here
make: *** [cmd.clearinfo.o] Error 1


il bello è che lo stesso sorgente su un altra macchina compila e funziona!
dando un sbirciatina di google scopro che sono entrambe legate alle librerie pthread.

dove può essere il problema?

Fabio
-- 
Fabio Nigi nigifabio(at)gmx.it // blog: fabiolone.debianhardstyle.net
debian hard style project:http://www.debianhardstyle.net
You are fighting for survival in your own sweet and gentle way.



Maggiori informazioni sulla lista flug-tech