From owner-freebsd-ports Mon Feb 12 15:48:33 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA13977 for ports-outgoing; Mon, 12 Feb 1996 15:48:33 -0800 (PST) Received: from hda.com (hda.com [199.232.40.182]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id PAA13967 for ; Mon, 12 Feb 1996 15:48:27 -0800 (PST) Received: (from dufault@localhost) by hda.com (8.6.11/8.6.9) id SAA17691; Mon, 12 Feb 1996 18:54:47 -0500 From: Peter Dufault Message-Id: <199602122354.SAA17691@hda.com> Subject: Re: "ld: -lstdc++: no match" with pgcc To: graichen@omega.physik.fu-berlin.de (Thomas Graichen) Date: Mon, 12 Feb 1996 18:54:46 -0500 (EST) Cc: ports@FreeBSD.ORG In-Reply-To: <4flepg$2qr@prospero.physik.fu-berlin.de> from "Thomas Graichen" at Feb 11, 96 07:07:28 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-ports@FreeBSD.ORG Precedence: bulk > ... > : Then I had a problem with no ".weak" directive in the assembler. So I pulled > ... > > the old story - you have to uncomment the part dealing with WEAK in > config/i386/freebsd.h - i sent it to gcc-bugs - hope that it is in the next > version (haven't heared any response about it) > > t > > p.s.: config/i386/freebsd.h in the gcc distribution Yes, this is the problem. I tried the "#define SUPPORTS_WEAK 0" recommended elsewhere and that didn't do the trick. Thanks, Thomas. This should be changed in the port. The problem is subtle enough that if you go with a ".weak" supporting assembler but not loader you can compile lots of stuff before hitting the problem. *** freebsd.h.b4 Mon Feb 12 18:40:53 1996 --- freebsd.h Mon Feb 12 18:41:25 1996 *************** *** 122,130 **** --- 122,134 ---- /* This is how we tell the assembler that a symbol is weak. */ + #if 0 + /* This requires support in both the assembler and the loader: + */ #define ASM_WEAKEN_LABEL(FILE,NAME) \ do { fputs ("\t.weak\t", FILE); assemble_name (FILE, NAME); \ fputc ('\n', FILE); } while (0) + #endif /* The following macro defines the format used to output the second operand of the .type assembler directive. Different svr4 assemblers -- Peter Dufault Real-Time Machine Control and Simulation HD Associates, Inc. Voice: 508 433 6936 dufault@hda.com Fax: 508 433 5267