delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/08/06:54:28

Date: Sun, 8 Mar 1998 13:52:37 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Andrew Cottrell <acottrel AT magna DOT com DOT au>
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: <Pine.SUN.3.91.980308135218.22686P-100000@is>
MIME-Version: 1.0

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019