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

multiple defined symbol



i am trying to link a large application on my debian machine but i end
up with multiple defined symbols:

/lib/libpthread.so.0(*IND*+0x0): multiple definition of `pthread_mutex_unlock'
/lib/libpthread.so.0(.text+0x23ec): first defined here
/lib/libpthread.so.0(*IND*+0x0): multiple definition of `pthread_mutex_destroy'
/lib/libpthread.so.0(.text+0x207c): first defined here
/lib/libpthread.so.0(*IND*+0x0): multiple definition of `pthread_mutex_lock'
/lib/libpthread.so.0(.text+0x22a4): first defined here
/lib/libpthread.so.0(*IND*+0x0): multiple definition of `pthread_mutex_init'
/lib/libpthread.so.0(.text+0x2040): first defined here
collect2: ld returned 1 exit status
make[2]: *** [/home/romosan/BbrRel/8.2.9/bin/Linux2/BetaApp] Error 1
make[1]: *** [bin] Error 2
make: *** [BetaUser.all] Error 2

does anybody have any idea of what's going on here? one possible
explanation is that one of the libraries used in the linking process
was compiled on a redhat machine which uses glibc 2.0.7 where the
above mentioned symbols where all defined as weak. this is not the
case anymore for glibc 2.1.2 (-5) (which i use on my debian machine).
is there a way to get around this?

--alex--

-- 
| I believe the moment is at hand when, by a paranoiac and active |
|  advance of the mind, it will be possible (simultaneously with  |
|  automatism and other passive states) to systematize confusion  |
|  and thus to help to discredit completely the world of reality. |


Reply to: