Date: Sun, 8 Mar 1998 13:52:37 +0200 (IST) From: Eli Zaretskii To: Andrew Cottrell cc: pthreads-bugs AT ada DOT cs DOT fsu DOT edu, djgpp AT delorie DOT com Subject: Re: Pthreads & LIBC link error In-Reply-To: <34FF4989.C5581B7D@magna.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Fri, 6 Mar 1998, Andrew Cottrell wrote: > c:/djgpp/lib/libc.a(sigprocm.o)(.text+0x1b8):sigprocm.c: multiple > definition of > `sigpending' > ../lib/libgthreads.a(signal.o)(.text+0x1940):signal.c: first defined > here It seems that this version of pthreads assumes that DJGPP doesn't have the `sigpending' function and provides its own version. This assumption is no longer true: DJGPP v2.01 has `sigpending' in its library, and therefore the linker complains about double definition. (The linker cannot avoid linking in `sigpending' because it is defined on the same module as `sigprocmask'.) A solution would be to define away the version that pthreads uses for DJGPP. (Or maybe there is a version of pthreads which is compatible with DJGPP v2.01.)