From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28951 invoked by alias); 2 Sep 2002 17:53:55 -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 28944 invoked from network); 2 Sep 2002 17:53:54 -0000 Received: from unknown (HELO anora.org) (12.227.4.60) by sources.redhat.com with SMTP; 2 Sep 2002 17:53:54 -0000 Received: (qmail 2485 invoked from network); 2 Sep 2002 17:53:36 -0000 Received: from unknown (HELO vaghn.anora.org) (root@192.168.1.177) by 12-227-4-60.client.attbi.com with SMTP; 2 Sep 2002 17:53:36 -0000 Date: Mon, 02 Sep 2002 10:53:00 -0000 From: GRE Spam Mail To: Der Herr Hofrat Cc: me@rupey.net, gcc-help@gcc.gnu.org Subject: Re: undefined reference to `__errno_location(void)'x Message-Id: <20020902135402.7c9a2d98.gre_spam@anora.org> In-Reply-To: <200209021618.g82GI4530795@hofr.at> References: <20020902130644.34af2db7.gre_spam@anora.org> <200209021618.g82GI4530795@hofr.at> Organization: Anora Computer Services Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2002-09/txt/msg00015.txt.bz2 On Mon, 2 Sep 2002 18:18:04 +0200 (CEST) Der Herr Hofrat wrote: > > > > How do I check for the symbol? > > > > I tried this to see if the symbol was there, I don't know if this is the right > > way to check: > > [root@vaghn (/)] 01:02:53 $ grep "__errno_location" /usr/lib/libpthread.a > > Binary file /usr/lib/libpthread.a matches > > [root@vaghn (/)] 01:02:56 $ grep "__errno_location" /usr/lib/libpthread.so > > Binary file /usr/lib/libpthread.so matches > > > nm /usr/lib/libpthread.a | grep errno should be safe. > > hofrat > OK, I did that for libpthread.a and libpthread.so and this is the output: root@vaghn (~)] 01:51:32 $ nm /usr/lib/libpthread.a | grep errno U __errno_location U __errno_location U __errno_location U __errno_location U _errno U _h_errno U __errno_location U __errno_location errno.o: 00000000 T __errno_location 00000054 T __h_errno_location U __errno_location [root@vaghn (~)] 01:51:49 $ nm /usr/lib/libpthread.so | grep errno 00009c24 T __errno_location 00009ca0 T __h_errno_location U _errno@@GLIBC_2.0 U _h_errno@@GLIBC_2.0 U errno@@GLIBC_2.0 U h_errno@@GLIBC_2.0