[Tech] problemi di compilazione

Fabio Nigi - nigifabio@gmx.it
Dom 19 Nov 2006 14:06:01 CET


On domenica 19 novembre 2006, alle 01:23, Enrico Natale wrote:
> 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? 

> Sembra un problema di conflitto librerie.  Ne e' che hai installato due
> diverse librerie?

hai ragione e non me ne ero assolutamente accorto

sono incluse sia nel pacchetto libc6 sia nel libpthread-dev..
bug di qualche pacchetto o stupidità dell' utente(io per la precisione..)?

rimosso il pacchetto libpthread-dev funziona tutto a modino!

Fabio

[~@vaiolo] dlocate pthread
libc6: /lib/libpthread-0.10.so
libc6: /lib/tls/libpthread-2.3.6.so
libc6: /lib/libpthread.so.0
libc6: /lib/tls/libpthread.so.0
manpages: /usr/share/man/man7/pthreads.7.gz
perl: /usr/lib/perl/5.8.8/bits/pthreadtypes.ph
libc6-dev: /usr/include/pthread.h
libc6-dev: /usr/include/nptl/pthread.h
libc6-dev: /usr/include/nptl/bits/pthreadtypes.h
libc6-dev: /usr/include/bits/pthreadtypes.h
libc6-dev: /usr/lib/nptl/libpthread.a
libc6-dev: /usr/lib/nptl/libpthread_nonshared.a
libc6-dev: /usr/lib/nptl/libpthread.so
libc6-dev: /usr/lib/libpthread.so
libc6-dev: /usr/lib/libpthread_nonshared.a
libc6-dev: /usr/lib/libpthread.a
libwine: /usr/lib/wine/wine-pthread
libpthread20: /.
libpthread20: /usr
libpthread20: /usr/lib
libpthread20: /usr/lib/libpthread.so.20.0.27
libpthread20: /usr/share
libpthread20: /usr/share/doc
libpthread20: /usr/share/doc/libpthread20
libpthread20: /usr/share/doc/libpthread20/HISTORY
libpthread20: /usr/share/doc/libpthread20/THANKS.gz
libpthread20: /usr/share/doc/libpthread20/README
libpthread20: /usr/share/doc/libpthread20/copyright
libpthread20: /usr/share/doc/libpthread20/NEWS.gz
libpthread20: /usr/share/doc/libpthread20/ANNOUNCE
libpthread20: /usr/share/doc/libpthread20/SUPPORT
libpthread20: /usr/share/doc/libpthread20/changelog.gz
libpthread20: /usr/share/doc/libpthread20/AUTHORS
libpthread20: /usr/share/doc/libpthread20/USERS
libpthread20: /usr/share/doc/libpthread20/changelog.Debian.gz
libpthread20: /usr/lib/libpthread.so.20
libpthread-dev: /.
libpthread-dev: /usr
libpthread-dev: /usr/lib
libpthread-dev: /usr/lib/libpthread.la
libpthread-dev: /usr/lib/libpthread.a
libpthread-dev: /usr/include
libpthread-dev: /usr/include/pthread.h


-- 
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