From owner-freebsd-bugs Mon Jan 21 17:10:10 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 43E4037B400 for ; Mon, 21 Jan 2002 17:10:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0M1A2x75315; Mon, 21 Jan 2002 17:10:02 -0800 (PST) (envelope-from gnats) Date: Mon, 21 Jan 2002 17:10:02 -0800 (PST) Message-Id: <200201220110.g0M1A2x75315@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Ian Dowse Subject: Re: gnu/13525: gcc fails load against library with both C++ and C modules Reply-To: Ian Dowse Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR gnu/13525; it has been noted by GNATS. From: Ian Dowse To: Keith Bostic Cc: freebsd-gnats-submit@freebsd.org Subject: Re: gnu/13525: gcc fails load against library with both C++ and C modules Date: Tue, 22 Jan 2002 01:06:25 +0000 In message <200201212132.g0LLWwH11686@abyssinian.sleepycat.com>, Keith Bostic w rites: >Sorry, but I haven't the slightest idea -- it's been 2 1/2 years. >There's a test case in the PR, so you should be able to find out. Thanks for the reply - yes, it seems that the issue is still present. The following script reproduces it directly (cc'd to gnats for future reference). Ian #!/bin/sh cat > a.c << EOF void a(void) {} EOF cat > b.cc << EOF #include extern "C" { void a(void); } class b { public: void A(); }; void b::A() { a(); cout << "a"; } EOF cat > c.c << EOF extern void a(void); int main() { a(); return 0; } EOF gcc -Wall -c -fpic a.c c++ -Wall -c -fpic b.cc gcc -shared -o libab.so a.o b.o gcc -Wall -o c c.c ./libab.so To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message