From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31293 invoked by alias); 13 Aug 2004 07:14:06 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 31260 invoked from network); 13 Aug 2004 07:14:05 -0000 Received: from unknown (HELO sunsite.ms.mff.cuni.cz) (195.113.15.26) by sourceware.org with SMTP; 13 Aug 2004 07:14:05 -0000 Received: from sunsite.ms.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1]) by sunsite.ms.mff.cuni.cz (8.12.8/8.12.8) with ESMTP id i7D4v23j009304; Fri, 13 Aug 2004 06:57:02 +0200 Received: (from jakub@localhost) by sunsite.ms.mff.cuni.cz (8.12.8/8.12.8/Submit) id i7D4v2R0009302; Fri, 13 Aug 2004 06:57:02 +0200 Date: Fri, 13 Aug 2004 07:14:00 -0000 From: Jakub Jelinek To: Ulrich Drepper Cc: Andreas Schwab , libc-hacker@sources.redhat.com Subject: Re: Fix building with linuxthreads/--without-__thread on ia64 Message-ID: <20040813045702.GC30497@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek References: <411C5545.1060705@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <411C5545.1060705@redhat.com> User-Agent: Mutt/1.4.1i X-SW-Source: 2004-08/txt/msg00053.txt.bz2 On Thu, Aug 12, 2004 at 10:44:37PM -0700, Ulrich Drepper wrote: > Applied. This is not enough. I have http://sources.redhat.com/ml/libc-hacker/2004-08/msg00015.html and http://sources.redhat.com/ml/libc-hacker/2004-08/msg00022.html in my tree to cure this problem instead. If __res_initstamp is moved to res-init.c instead, still the msg00022.html patch needs to be applied (though it doesn't apply cleanly, so I'm attaching a new one): 2004-08-09 Jakub Jelinek * libc-tsd.c: Move resolv.h include before the #if. (__res_maybe_init): New function. Add libc_hidden_def. --- libc/linuxthreads/libc-tsd.c.jj 2004-08-13 09:10:49.000000000 +0200 +++ libc/linuxthreads/libc-tsd.c 2004-08-13 09:11:55.416058909 +0200 @@ -1,5 +1,5 @@ /* Special hack used to build link-time libc.so object for linking libpthread. - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2004 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -18,13 +18,13 @@ Boston, MA 02111-1307, USA. */ #include +#include #if ! USE___THREAD /* Special hack used to build link-time libc.so object for linking libpthread. See Makefile comments near libc_pic_lite.os rule for what this is for. */ -# include # undef _res int _errno; @@ -32,3 +32,10 @@ int _h_errno; struct __res_state _res; #endif + +int +__res_maybe_init (res_state resp, int preinit) +{ + return -1; +} +libc_hidden_def (__res_maybe_init) Jakub