From owner-freebsd-current Mon Mar 13 09:37:21 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id JAA13444 for current-outgoing; Mon, 13 Mar 1995 09:37:21 -0800 Received: from trout.sri.MT.net (trout.sri.MT.net [204.182.243.12]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id JAA13438 for ; Mon, 13 Mar 1995 09:37:14 -0800 Received: (from nate@localhost) by trout.sri.MT.net (8.6.9/8.6.9) id KAA03047; Mon, 13 Mar 1995 10:40:42 -0700 Date: Mon, 13 Mar 1995 10:40:42 -0700 From: Nate Williams Message-Id: <199503131740.KAA03047@trout.sri.MT.net> In-Reply-To: "Andrey A. Chernov, Black Mage" "Re: _regerror multiply defined" (Mar 13, 6:48pm) X-Mailer: Mail User's Shell (7.2.5 10/14/92) To: "Andrey A. Chernov, Black Mage" , Remy CARD Subject: Re: _regerror multiply defined Cc: current@FreeBSD.org Sender: current-owner@FreeBSD.org Precedence: bulk [ gdb: multiple _regerror definitions which causes link errors ] > > Actually, regerror seems to be defined twice in libcompat. It is > >defined in lib/libcompat/4.3/regex.c and in lib/libcompat/regexp/regerror.c. > > > I have commented out the definition of regerror in the first file > >and it seems to be Ok. BTW, I am not sure which file regerror should be > >removed from. > > Wrong move, _both_ regerror are needed. Better to spent some time to fix > ld to use sequental linking for mixed (shared & non-shared) libs. I'm working on it, really. :-) Paul K. just sent me a patch that allows the link to occur, but the patch still has some problems in that it brings in additional definitions of referenced files that are not needed. The problem is much more difficult than I had initally anticipated, since you don't want to change the format of the shared libraries and you want additional functionality that it wasn't originally designed for. Nate