From owner-freebsd-hackers Fri Jun 23 11:33:13 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA21317 for hackers-outgoing; Fri, 23 Jun 1995 11:33:13 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id LAA21305 for ; Fri, 23 Jun 1995 11:32:57 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA06098; Fri, 23 Jun 1995 20:29:40 +0200 Received: by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id UAA14062; Fri, 23 Jun 1995 20:29:39 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.6.11/8.6.9) id UAA29598; Fri, 23 Jun 1995 20:13:32 +0200 From: J Wunsch Message-Id: <199506231813.UAA29598@uriah.heep.sax.de> Subject: Re: gcc 2.7.0 and FreeBSD 2.0.5 To: amjudge@dsg.cs.tcd.ie (Alan Judge) Date: Fri, 23 Jun 1995 20:13:31 +0200 (MET DST) Cc: hackers@freebsd.org In-Reply-To: <9506231127.aa29671@longvalley.dsg.cs.tcd.ie> from "Alan Judge" at Jun 23, 95 11:27:29 am Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 671 Sender: hackers-owner@freebsd.org Precedence: bulk As Alan Judge wrote: > > However, when I try with a more complex program (basically any > multimodule program where a .weak symbol appears more than once, I > think), I get errors of the form: > ld: /var/tmp/cc0019921.o: unexpected multiple definitions of symbol `_f__1X', type 0xf > :1: Definition of symbol `_f__1X' (multiply defined) As Bruce did already remark, you should rather turn off .weak symbols at all (it's an option somewhere in the config files that has been turned on explicitly and erroneously for FreeBSD). -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)