From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29924 invoked by alias); 18 Mar 2007 17:46:26 -0000 Received: (qmail 29899 invoked by uid 22791); 18 Mar 2007 17:46:25 -0000 X-Spam-Check-By: sourceware.org Received: from sunsite.ms.mff.cuni.cz (HELO sunsite.mff.cuni.cz) (195.113.15.26) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 18 Mar 2007 17:46:03 +0000 Received: from sunsite.mff.cuni.cz (localhost.localdomain [127.0.0.1]) by sunsite.mff.cuni.cz (8.13.8/8.13.8) with ESMTP id l2IHo6Qa008669; Sun, 18 Mar 2007 18:50:06 +0100 Received: (from jj@localhost) by sunsite.mff.cuni.cz (8.13.8/8.13.8/Submit) id l2IHo65v008668; Sun, 18 Mar 2007 18:50:06 +0100 Date: Sun, 18 Mar 2007 17:46:00 -0000 From: Jakub Jelinek To: Ulrich Drepper Cc: Glibc hackers Subject: [PATCH] Fix nscd build on ia64 Message-ID: <20070318175006.GT1826@sunsite.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00028.txt.bz2 Hi! __libc_alloca_cutoff is only defined in libc.so. After the latest changes to check_pf.c nscd fails to link on ia64, because it is not defined. For nscd we know the stack size (at least for non-initial threads) and limiting alloca to __MAX_ALLOCA_CUTOFF is ok. 2007-03-18 Jakub Jelinek * nscd/gai.c: Include alloca.h. (__libc_use_alloca): Define. --- libc/nscd/gai.c 2007-01-17 10:00:57.000000000 +0100 +++ libc/nscd/gai.c 2007-03-18 13:00:25.000000000 +0100 @@ -15,6 +15,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include /* This file uses the getaddrinfo code but it compiles it without NSCD support. We just need a few symbol renames. */ #define __inet_aton inet_aton @@ -25,6 +26,8 @@ #define __sendto sendto #define __strchrnul strchrnul #define __getline getline +/* nscd uses 1MB or 2MB thread stacks. */ +#define __libc_use_alloca(size) (size <= __MAX_ALLOCA_CUTOFF) #include Jakub