From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) by sourceware.org (Postfix) with ESMTPS id 78400385C406 for ; Tue, 13 Jul 2021 13:30:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 78400385C406 Received: by mail-ot1-x32c.google.com with SMTP id 59-20020a9d0ac10000b0290462f0ab0800so22420930otq.11 for ; Tue, 13 Jul 2021 06:30:51 -0700 (PDT) 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:content-transfer-encoding; bh=Jb0xuA5dtx8wp7AmQwxQQFH0lbTo1G6kgDvyzxDGZ0k=; b=kWYsTiuUVCBCRsM2nqaoGFgNPi9bfK2BL3fjvgqqBBWx8qiLacbxl4oRmWWy3G5b6M wrYhpTOHa+QxNbJjBDYtS//XUMdRDv+4TActRJpmyVHX+ps7NlC9ItmofacNpNpb/2vV q7Ju096s3LUhnYMIvAa0Al7QhTgbcxYF3A9rZE1D/NOp3VVVHCLe1CoHPQHcwY0P2DwX miku7g43HxjM949rc1N/qXhLEeVQGtzfrvGyyTmXwEYvvFh3YnYY2YIZsAjWDQWFGSJH F1SPl3D24UbFnUgK4qDpzvTcd1Fks1BcNBVFIa3zhNKAG7YwuxT4+8thACz3UT0MUvo6 NfoA== X-Gm-Message-State: AOAM532MRJkauqVr1l7wmQJB2+KYyKBF9JgLkYB3Wa0cTUUzD8ojvNQn Vg1Y0dm/kW4ItpA5R8Uuvls24LO3QAPEC//s+lKd15J2NNU= X-Google-Smtp-Source: ABdhPJx3ATkZJ/nGdMSzXTFx7oHFtKXG1feOm7eWziQJ5TH6q2C5vCA+QuxtPbV3urmvkbRQT5CZu6pd0Tf09/k/qkY= X-Received: by 2002:a9d:51c5:: with SMTP id d5mr3668925oth.186.1626183050930; Tue, 13 Jul 2021 06:30:50 -0700 (PDT) MIME-Version: 1.0 References: <878s2ajqf5.fsf@oldenburg.str.redhat.com> In-Reply-To: <878s2ajqf5.fsf@oldenburg.str.redhat.com> From: Manuel Lauss Date: Tue, 13 Jul 2021 15:30:15 +0200 Message-ID: Subject: Re: nss buildfailure in latest git sources To: Florian Weimer Cc: Manuel Lauss via Libc-help Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.5 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.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Tue, 13 Jul 2021 13:30:53 -0000 >From the source of nss_module.c: #if defined USE_NSCD && (!defined DO_STATIC_NSS || defined SHARED) /* Nonzero if this is the nscd process. */ static bool is_nscd; /* The callback passed to the init functions when nscd is used. */ static void (*nscd_init_cb) (size_t, struct traced_file *); #endif [...] static bool module_load_nss_files (struct nss_module *module) { if (is_nscd) { void (*cb) (size_t, struct traced_file *) =3D nscd_init_cb; # ifdef PTR_DEMANGLE PTR_DEMANGLE (cb); # endif _nss_files_init (cb); } configure --enable-stack-protector=3Dno --enable-stackguard-randomization --disable-cet --enable-kernel=3D3.2.0 --without-selinux --without-cvs --disable-werror --enable-bind-now --buil d=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --disable-profile --without-gd --with-headers=3D/usr/include --prefix=3D/usr --sysconfdir=3D/etc --localstatedir=3D/var --libdir=3D$(prefix)/lib64 --mandir=3D$(prefix)/share/man --infodir=3D$(prefix)/share/ info --libexecdir=3D$(libdir)/misc/glibc --with-bugurl=3Dhttps://bugs.gentoo.org/ --with-pkgversion=3D"Gentoo 2.33-r1 p4" --disable-crypt --disable-static-pie --disable-systemtap --disable-nscd libc_cv_complocaledir=3D${exec_prefix}/lib/locale libc_cv _include_x86_isa_level=3Dno libc_cv_have_x86_lahf_sahf=3Dno libc_cv_have_x86_movbe=3Dno --disable-timezone-tools Gentoo's default build. Manuel On Tue, Jul 13, 2021 at 3:26 PM Florian Weimer wrote: > > * Manuel Lauss: > > > Hello, > > nss_module.c: In function =E2=80=98module_load_nss_files=E2=80=99: > > nss_module.c:117:7: error: =E2=80=98is_nscd=E2=80=99 undeclared (first = use in this function) > > 117 | if (is_nscd) > > | ^~~~~~~ > > nss_module.c:117:7: note: each undeclared identifier is reported only > > once for each function it appears in > > nss_module.c:119:51: error: =E2=80=98nscd_init_cb=E2=80=99 undeclared (= first use in > > this function); did you mean =E2=80=98nscd_init=E2=80=99? > > 119 | void (*cb) (size_t, struct traced_file *) =3D nscd_init_cb= ; > > | ^~~~~~~~~~~~ > > | nscd_init > > > > seems that is_nscd and nscd_init_cb are not always defined. > > We don't see this. How do you configure glibc? > > Thanks, > Florian >