From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25402 invoked by alias); 2 Sep 2002 06:38:54 -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 25395 invoked from network); 2 Sep 2002 06:38:53 -0000 Received: from unknown (HELO anchor-post-35.mail.demon.net) (194.217.242.85) by sources.redhat.com with SMTP; 2 Sep 2002 06:38:53 -0000 Received: from mailgate.softwire.co.uk ([62.49.203.138] helo=polarbear) by anchor-post-35.mail.demon.net with esmtp (Exim 3.36 #2) id 17lkrN-0006ff-0U; Mon, 02 Sep 2002 07:38:53 +0100 From: "Rupert Wood" To: "'GRE Spam Mail'" Cc: Subject: RE: undefined reference to `__errno_location(void)' Date: Sun, 01 Sep 2002 23:38:00 -0000 Message-ID: <616BE6A276E3714788D2AC35C40CD18D561765@whale.softwire.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: <616BE6A276E3714788D2AC35C40CD18D7D2511@whale.softwire.co.uk> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-SW-Source: 2002-09/txt/msg00005.txt.bz2 Gordon Ellsworth wrote: > /home/muvie/muvie/src/socket_class.c:211: undefined reference to > `__errno_location(void)' : > And when you link make sure to add -lpthread, > since the symbol for errno_location is defined > in the libpthread library on Linux. : > I tried this, but it did not get rid of the problem. Can I confirm that you tried the '-lpthread' in addition to the #include in the PR comment? If so, can you confirm that you've got a libpthread.a or libpthread.so in /lib or /usr/lib and that it contains the symbol __errno_location? As you said you haven't upgraded, the system *ought* to work as shipped. But it's possible (albeit unlikely) that your C library was not build with threading support or that you're missing the ptherad library - maybe you need to install it as a separate package? Good luck, Rup.