From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18833 invoked by alias); 27 Apr 2003 16:11:18 -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 18817 invoked from network); 27 Apr 2003 16:11:17 -0000 Received: from unknown (HELO mout2.freenet.de) (194.97.50.155) by sources.redhat.com with SMTP; 27 Apr 2003 16:11:17 -0000 Received: from [194.97.50.144] (helo=mx1.freenet.de) by mout2.freenet.de with asmtp (Exim 4.15) id 199okH-0002Gl-GY for libc-hacker@sources.redhat.com; Sun, 27 Apr 2003 18:11:17 +0200 Received: from b0199.pppool.de ([213.7.1.153] helo=whitebox.local) by mx1.freenet.de with esmtp (Exim 4.15 #3) id 199okG-0007di-Hv for libc-hacker@sources.redhat.com; Sun, 27 Apr 2003 18:11:17 +0200 Received: from whitebox.local (localhost [127.0.0.1]) by whitebox.local (8.12.7/8.12.7/SuSE Linux 0.6) with ESMTP id h3RCav7M014543 for ; Sun, 27 Apr 2003 14:36:58 +0200 Received: (from andreas@localhost) by whitebox.local (8.12.7/8.12.7/Submit) id h3RCavpk014539; Sun, 27 Apr 2003 14:36:57 +0200 X-Authentication-Warning: whitebox.local: andreas set sender to schwab@suse.de using -f To: libc-hacker@sources.redhat.com Subject: Incomplete dependencies for libio/old*.c X-Yow: If I have enough money to buy 5,000 CANS of NOODLE-RONI, can I get a VAT of MARSHMALLOW FLUFF free?? From: Andreas Schwab Date: Sun, 27 Apr 2003 16:11:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-04/txt/msg00072.txt.bz2 Dependencies are generated using the non-pic command line (ie. without -DSHARED). This is a problem with some of the compatibility sources which check SHLIB_COMPAT before including the headers, so that the generated dependency list is incomplete. Andreas. 2003-04-27 Andreas Schwab * Makeconfig (+mkdep): Add -DMAKING_DEPENDENCIES. * include/shlib-compat.h (SHLIB_COMPAT) [MAKING_DEPENDENCIES]: Define to 1. --- Makeconfig.~1.282.~ 2003-04-16 23:05:35.000000000 +0200 +++ Makeconfig 2003-04-27 14:21:24.000000000 +0200 @@ -557,7 +557,7 @@ endif # The -MP flag tells GCC >= 3.2 (which we now require) to produce dummy # targets for headers so that removed headers don't break the build. ifndef +mkdep -+mkdep = $(CC) -M -MP ++mkdep = $(CC) -DMAKING_DEPENDENCIES -M -MP endif # The program that makes Emacs-style TAGS files. --- include/shlib-compat.h.~1.10.~ 2002-10-14 11:06:09.000000000 +0200 +++ include/shlib-compat.h 2003-04-27 14:23:50.000000000 +0200 @@ -26,7 +26,12 @@ #include /* header generated by abi-versions.awk */ #endif -#if defined HAVE_ELF && defined SHARED && defined DO_VERSIONING +#ifdef MAKING_DEPENDENCIES + +/* While computing dependencies we want to see all headers. */ +# define SHLIB_COMPAT(lib, introduced, obsoleted) 1 + +#elif defined HAVE_ELF && defined SHARED && defined DO_VERSIONING /* The file abi-versions.h (generated by scripts/abi-versions.awk) defines symbols like `ABI_libm_GLIBC_2_0' for each version set in the source