From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x12c.google.com (mail-il1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) by sourceware.org (Postfix) with ESMTPS id 8007B382E801 for ; Thu, 4 Mar 2021 16:56:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8007B382E801 Received: by mail-il1-x12c.google.com with SMTP id h18so25456423ils.2 for ; Thu, 04 Mar 2021 08:56:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qji6+K1v5ottKhMnz/9lQX7+e8TR1UM9AD9QhqkN6VA=; b=eBrk7F4te3mmV8La8Ylp57Y8ETRxpcl6eUi76C6/zCXausmPfTRJt9tPv7UsA3ABP/ oA4j9Hasv9vkvBgv++p2ohAjL4VkbuIl61GYmEvUn6eq1sr92qQuKH9OK09AVSVqeikq 1ixreRrkjhOg0hNoYo/xHt0y4B55kOGFcmY6mcr/4cUlNHoQF/zhpah5rcZSYsup4q38 t5L/KTzCMsG/eGfDG+z1fnWf0+oKCPJFeMZfKf3RLzSE98Z+Qlm8SXe87EjZu72gl5jt kmPNqQIvfnEzn9Np1BdodHTInpzXuqrnOag2oM9dJfgXkbw1Bi9GFSDXs4sL1qdzIthL P3cA== X-Gm-Message-State: AOAM532aA2zfpHAS4HlMG4EsI65qy43SldxTD3sXGUq6uEdtGmLmPedg ilpk4fuzd1XcGkPraS1xDhSJXHU+px9xSv1NdVU= X-Google-Smtp-Source: ABdhPJy4h/bH/I7DFa/97M3BeMQqzcqq0OKbk2qL3ePeGpJKxOxLGaP0HizQHgAuU6W/Agc71e04KoGgAX38UBUzQp8= X-Received: by 2002:a05:6e02:1a66:: with SMTP id w6mr4294485ilv.95.1614876991661; Thu, 04 Mar 2021 08:56:31 -0800 (PST) MIME-Version: 1.0 References: <87wnunnq3q.fsf@oldenburg.str.redhat.com> In-Reply-To: From: Peng Yu Date: Thu, 4 Mar 2021 10:56:20 -0600 Message-ID: Subject: Re: Directory structure of glibc and header files installed on Linux To: Adhemerval Zanella Cc: Florian Weimer , Peng Yu via Libc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2021 16:56:34 -0000 Hi Adhemerval and Florian, > That's why the simplest solution is as Florian has put it to build a > glibc to the target you want to > inspect and check the installed headers. I don't understand this part. When it is installed, it does copies or symlinks? If it is just copies, how to tell where they are originally from? How to avoid the conflict between user installed libc vs the system default installed libc (as. libc6-dev in debian lineage)? Do you have to build glibc before running build-many-glibcs.py? How to run build-many-glibcs.py? It seems that it have options. I am not sure what options I should use. Could you show me the complete command? Does macOS use glibc? On macOS, I see this. $ gcc -E -dD - <<< '#include ' |grep '^#define SOL_' #define SOL_SOCKET 0xffff On Linux, I see this. Is that macOS uses a completely different libc library? Or glibc has a specific target for macOS? $ gcc -E -dD - <<< '#include ' |grep '^#define SOL_' #define SOL_RAW 255 #define SOL_DECNET 261 #define SOL_X25 262 #define SOL_PACKET 263 #define SOL_ATM 264 #define SOL_AAL 265 #define SOL_IRDA 266 #define SOL_NETBEUI 267 #define SOL_LLC 268 #define SOL_DCCP 269 #define SOL_NETLINK 270 #define SOL_TIPC 271 #define SOL_RXRPC 272 #define SOL_PPPOL2TP 273 #define SOL_BLUETOOTH 274 #define SOL_PNPIPE 275 #define SOL_RDS 276 #define SOL_IUCV 277 #define SOL_CAIF 278 #define SOL_ALG 279 #define SOL_NFC 280 #define SOL_KCM 281 #define SOL_TLS 282 #define SOL_XDP 283 #define SOL_SOCKET 1 -- Regards, Peng