From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by sourceware.org (Postfix) with ESMTPS id 7BA0438582A5 for ; Mon, 1 Aug 2022 17:09:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7BA0438582A5 Received: by mail-pj1-x102b.google.com with SMTP id p14-20020a17090a74ce00b001f4d04492faso6537582pjl.4 for ; Mon, 01 Aug 2022 10:09:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc; bh=piR8jCPHQl20K056tBxbRZnOAd5N1SsCitaTO7Cr/WY=; b=wGYLRQ/Rv+Byj5CG79TfHYqT+neEeepWD6JC70sAENKAMDd3ZEAEcI+vwcLu2qJ/ZF zluKZ4S5W+x+KkOOgq2nfJnov/rtAZX6A1itDtoBehsIs16AHzpqvILhaQHwZR5fb38v VVm7+/E8ZA0Fzs5bFfVlffQQMoUl2uNautURZwWReQim8Wmd6qoBp9c5A+fy3hso0tEU 6MSbTue8y7FbsdiumvAWMSTH014js2WYibHvRHuLpNTEtUR0BmIPNaM7vU/t5/b+avbC GLhth03YJR6E4DqVZ9jhFnkDNxCEap7gXyA+ejxGmi1tsnuVwWP6LGM+qPee7uuf6IOc o5pQ== X-Gm-Message-State: ACgBeo30PtwatO3vSF5se+I084WyYd969fKUd/ZKBhOs2AyfHXts1i6P VT8RZKS3bz6NHGdllg1tFg2ZVXQTf/ySFmpResGe4PuChlE= X-Google-Smtp-Source: AA6agR58wIhRuqcsVck73ILOmk6xlexizOMIgYLZL0lRO8T6h9UbOi6AZk8NjFPRSrBJL2wr8vdiYIMt28/R6r8COTE= X-Received: by 2002:a17:902:cf09:b0:16d:3b47:d2dc with SMTP id i9-20020a170902cf0900b0016d3b47d2dcmr17091546plg.123.1659373788312; Mon, 01 Aug 2022 10:09:48 -0700 (PDT) MIME-Version: 1.0 From: Andrew Pinski Date: Mon, 1 Aug 2022 10:09:34 -0700 Message-ID: Subject: Build failure with --enable-static-nss in glibc 2.35 To: GNU C Library Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2022 17:09:50 -0000 Hi all, I get the following build failure if I use --enable-static-nss while configuring: nss_module.c: In function =E2=80=98module_load_nss_files=E2=80=99: nss_module.c:153:7: error: =E2=80=98is_nscd=E2=80=99 undeclared (first use = in this function) 153 | if (is_nscd) | ^~~~~~~ nss_module.c:153:7: note: each undeclared identifier is reported only once for each function it appears in nss_module.c:155:51: error: =E2=80=98nscd_init_cb=E2=80=99 undeclared (firs= t use in this function); did you mean =E2=80=98nscd_init=E2=80=99? 155 | void (*cb) (size_t, struct traced_file *) =3D nscd_init_cb; | ^~~~~~~~~~~~ | nscd_init nss_module.c: In function =E2=80=98module_load=E2=80=99: nss_module.c:248:7: error: =E2=80=98is_nscd=E2=80=99 undeclared (first use = in this function) 248 | if (is_nscd) | ^~~~~~~ nss_module.c:266:55: error: =E2=80=98nscd_init_cb=E2=80=99 undeclared (firs= t use in this function); did you mean =E2=80=98nscd_init=E2=80=99? 266 | void (*cb) (size_t, struct traced_file *) =3D nscd_init_c= b; | ^~~~~~~~~~~~ | nscd_init is_nscd is conditional included by: #if defined USE_NSCD && (!defined DO_STATIC_NSS || defined SHARED) /* Nonzero if this is the nscd process. */ static bool is_nscd; But is conditional used by something different: #ifdef USE_NSCD if (is_nscd) The source has not changed on the head of the git repo either. Thanks, Andrew