* nss buildfailure in latest git sources
@ 2021-07-13 13:15 Manuel Lauss
2021-07-13 13:26 ` Florian Weimer
0 siblings, 1 reply; 5+ messages in thread
From: Manuel Lauss @ 2021-07-13 13:15 UTC (permalink / raw)
To: Manuel Lauss via Libc-help; +Cc: Florian Weimer
Hello,
I get the following build failure in nss code:
86_64-pc-linux-gnu-gcc -m64 -O2 -march=znver3 -mtune=znver3 -pipe
-fpic -fPIC -fpic -fPIC -Wl,-O1 -Wl,--as-needed nss_module.c -c
-std=gnu11 -fgnu89-inline -O2 -march=znver3 -mtune=znver3 -pipe -fpic
-fPIC -fpic -fPIC -Wall -Wwrite-strings
-Wundef -fmerge-all-constants -frounding-math -fno-stack-protector
-fno-common -Wstrict-prototypes -Wold-style-definition -fmath-errno
-ftls-model=initial-exec -U_FORTIFY_SOURCE -I../include
-I/tmp-ram/portage/sys-libs/glibc-2.33-r
1/work/build-amd64-x86_64-pc-linux-gnu-nptl/nss
-I/tmp-ram/portage/sys-libs/glibc-2.33-r1/work/build-amd64-x86_64-pc-linux-gnu-nptl
-I../sysdeps/unix/sysv/linux/x86_64/64
-I../sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/x
86/include -I../sysdeps/unix/sysv/linux/x86 -I../sysdeps/x86/nptl
-I../sysdeps/unix/sysv/linux/wordsize-64 -I../sysdeps/x86_64/nptl
-I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux
-I../sysdeps/nptl -I../sysdeps/pthrea
d -I../sysdeps/gnu -I../sysdeps/unix/inet -I../sysdeps/unix/sysv
-I../sysdeps/unix/x86_64 -I../sysdeps/unix -I../sysdeps/posix
-I../sysdeps/x86_64/64 -I../sysdeps/x86_64/fpu/multiarch
-I../sysdeps/x86_64/fpu -I../sysdeps/x86/fpu -
I../sysdeps/x86_64/multiarch -I../sysdeps/x86_64
-I../sysdeps/x86/include -I../sysdeps/x86
-I../sysdeps/ieee754/float128 -I../sysdeps/ieee754/ldbl-96/include
-I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64
-I../sysdeps/ieee754
/flt-32 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754
-I../sysdeps/generic -I.. -I../libio -I. -nostdinc -isystem
/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include -isystem
/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed -isystem /us
r/include -D_LIBC_REENTRANT -include
/tmp-ram/portage/sys-libs/glibc-2.33-r1/work/build-amd64-x86_64-pc-linux-gnu-nptl/libc-modules.h
-DMODULE_NAME=libc -include ../include/libc-symbols.h -DPIC
-DTOP_NAMESPACE=glibc -o /tmp-ram/portage/
sys-libs/glibc-2.33-r1/work/build-amd64-x86_64-pc-linux-gnu-nptl/nss/nss_module.o
-MD -MP -MF /tmp-ram/portage/sys-libs/glibc-2.33-r1/work/build-amd64-x86_64-pc-linux-gnu-nptl/nss/nss_module.o.dt
-MT /tmp-ram/portage/sys-libs/glibc-2.33-r1/w
ork/build-amd64-x86_64-pc-linux-gnu-nptl/nss/nss_module.o
nss_module.c: In function ‘module_load_nss_files’:
nss_module.c:117:7: error: ‘is_nscd’ 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: ‘nscd_init_cb’ undeclared (first use in
this function); did you mean ‘nscd_init’?
119 | void (*cb) (size_t, struct traced_file *) = nscd_init_cb;
| ^~~~~~~~~~~~
| nscd_init
seems that is_nscd and nscd_init_cb are not always defined.
Manuel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: nss buildfailure in latest git sources
2021-07-13 13:15 nss buildfailure in latest git sources Manuel Lauss
@ 2021-07-13 13:26 ` Florian Weimer
2021-07-13 13:30 ` Manuel Lauss
0 siblings, 1 reply; 5+ messages in thread
From: Florian Weimer @ 2021-07-13 13:26 UTC (permalink / raw)
To: Manuel Lauss; +Cc: Manuel Lauss via Libc-help
* Manuel Lauss:
> Hello,
> nss_module.c: In function ‘module_load_nss_files’:
> nss_module.c:117:7: error: ‘is_nscd’ 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: ‘nscd_init_cb’ undeclared (first use in
> this function); did you mean ‘nscd_init’?
> 119 | void (*cb) (size_t, struct traced_file *) = 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: nss buildfailure in latest git sources
2021-07-13 13:26 ` Florian Weimer
@ 2021-07-13 13:30 ` Manuel Lauss
2021-07-13 14:40 ` Florian Weimer
0 siblings, 1 reply; 5+ messages in thread
From: Manuel Lauss @ 2021-07-13 13:30 UTC (permalink / raw)
To: Florian Weimer; +Cc: Manuel Lauss via Libc-help
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 *) = nscd_init_cb;
# ifdef PTR_DEMANGLE
PTR_DEMANGLE (cb);
# endif
_nss_files_init (cb);
}
configure --enable-stack-protector=no
--enable-stackguard-randomization --disable-cet --enable-kernel=3.2.0
--without-selinux --without-cvs --disable-werror --enable-bind-now
--buil
d=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --disable-profile
--without-gd --with-headers=/usr/include --prefix=/usr
--sysconfdir=/etc --localstatedir=/var --libdir=$(prefix)/lib64
--mandir=$(prefix)/share/man --infodir=$(prefix)/share/
info --libexecdir=$(libdir)/misc/glibc
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion="Gentoo
2.33-r1 p4" --disable-crypt --disable-static-pie --disable-systemtap
--disable-nscd libc_cv_complocaledir=${exec_prefix}/lib/locale libc_cv
_include_x86_isa_level=no libc_cv_have_x86_lahf_sahf=no
libc_cv_have_x86_movbe=no --disable-timezone-tools
Gentoo's default build.
Manuel
On Tue, Jul 13, 2021 at 3:26 PM Florian Weimer <fweimer@redhat.com> wrote:
>
> * Manuel Lauss:
>
> > Hello,
> > nss_module.c: In function ‘module_load_nss_files’:
> > nss_module.c:117:7: error: ‘is_nscd’ 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: ‘nscd_init_cb’ undeclared (first use in
> > this function); did you mean ‘nscd_init’?
> > 119 | void (*cb) (size_t, struct traced_file *) = 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
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: nss buildfailure in latest git sources
2021-07-13 13:30 ` Manuel Lauss
@ 2021-07-13 14:40 ` Florian Weimer
2021-07-13 14:50 ` Manuel Lauss
0 siblings, 1 reply; 5+ messages in thread
From: Florian Weimer @ 2021-07-13 14:40 UTC (permalink / raw)
To: Manuel Lauss; +Cc: Manuel Lauss via Libc-help
* Manuel Lauss:
> 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 *) = nscd_init_cb;
> # ifdef PTR_DEMANGLE
> PTR_DEMANGLE (cb);
> # endif
> _nss_files_init (cb);
> }
Cooper Qu posted a fix for building with --disable-nscd:
Fix build error when disable nscd.
<https://sourceware.org/pipermail/libc-alpha/2021-July/128987.html>
Does it fix your issue, too?
Thanks,
Florian
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: nss buildfailure in latest git sources
2021-07-13 14:40 ` Florian Weimer
@ 2021-07-13 14:50 ` Manuel Lauss
0 siblings, 0 replies; 5+ messages in thread
From: Manuel Lauss @ 2021-07-13 14:50 UTC (permalink / raw)
To: Florian Weimer; +Cc: Manuel Lauss via Libc-help
On Tue, Jul 13, 2021 at 4:40 PM Florian Weimer <fweimer@redhat.com> wrote:
> <https://sourceware.org/pipermail/libc-alpha/2021-July/128987.html>
>
> Does it fix your issue, too?
Yes yes it does. Thanks!
Manuel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-07-13 14:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-13 13:15 nss buildfailure in latest git sources Manuel Lauss
2021-07-13 13:26 ` Florian Weimer
2021-07-13 13:30 ` Manuel Lauss
2021-07-13 14:40 ` Florian Weimer
2021-07-13 14:50 ` Manuel Lauss
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).