From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15601 invoked by alias); 4 Sep 2002 16:03:31 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 15588 invoked from network); 4 Sep 2002 16:03:30 -0000 Received: from unknown (HELO wh2-19.st.uni-magdeburg.de) (141.44.162.19) by sources.redhat.com with SMTP; 4 Sep 2002 16:03:30 -0000 Received: by wh2-19.st.uni-magdeburg.de (Postfix, from userid 1000) id 13A6890F60; Wed, 4 Sep 2002 17:57:34 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15734.11629.151771.241596@wh2-19.st.uni-magdeburg.de> Date: Wed, 04 Sep 2002 09:03:00 -0000 From: "Claudio Bley" To: GRE Spam Mail Cc: bjensen@fastmail.fm, gcc-help@gcc.gnu.org Subject: Re: undefined reference to `__errno_location(void)' In-Reply-To: <20020904105144.0ccf54a0.gre_spam@anora.org> References: <20020902130644.34af2db7.gre_spam@anora.org> <200209021618.g82GI4530795@hofr.at> <20020902135402.7c9a2d98.gre_spam@anora.org> <20020903160930.0731252b.gre_spam@anora.org> <3D75B5F8.7010203@fastmail.fm> <20020904105144.0ccf54a0.gre_spam@anora.org> X-SW-Source: 2002-09/txt/msg00034.txt.bz2 >>>>> "GRE" == GRE Spam Mail writes: GRE> On Wed, 04 Sep 2002 09:27:52 +0200 bjorn rohde jensen GRE> wrote: >> Hi Gordon, >> >> Could you post some (small) code demonstrating the problem? I >> think, you might be confusing ld's in its handling of >> weak/strong symbols during linking. It would be nice with some >> code to experiment with:) >> >> Yours sincerely, >> >> Bjorn >> >> GRE> Sure enough! Here's the smallest code that I've written that GRE> has this problem. GRE> extern int errno; ^^^^^^^^^^^^^^^^^ Remove this line from your source. You get the error because errno is defined as a macro and the line is expanded to extern int (*__errno_location ()); Claudio