[Tech] problemi di compilazione

Enrico Natale natale137@gmail.com
Dom 19 Nov 2006 01:23:30 CET


2006/11/19, Fabio Nigi - <nigifabio@gmx.it>:
>
> 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.
> _______________________________________________
> FLUG - Discussioni tecniche - tech@firenze.linux.it
> URL: https://lists.firenze.linux.it/mailman/listinfo/tech
> Archivio: http://lists.firenze.linux.it/pipermail/tech
> Ricerca nell'archivio: http://www.firenze.linux.it/search




Sembra un problema di conflitto librerie.  Ne e' che hai installato due
diverse librerie?
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.linux.it/pipermail/flug-tech/attachments/20061119/e85229e9/attachment.htm>


Maggiori informazioni sulla lista flug-tech