bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nscd fails to build


From: Ludovic Courtès
Subject: nscd fails to build
Date: Wed, 02 Jul 2014 14:26:56 +0200
User-agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux)

Hello!

Manolis reported that nscd fails to build with Savannah’s libc, and with
libpthread used as an add-on:

--8<---------------cut here---------------start------------->8---
i686-pc-gnu-gcc getpwnam_r.c -c -std=gnu99 -fgnu89-inline  -O2 -Wall -Winline 
-Wwrite-strings -fmerge-all-constants -frounding-math -g -Wno-parentheses 
-Wstrict-prototypes   -Wa,-mtune=i686   -fpie    -I../include 
-I/tmp/nix-build-glibc-hurd-cross-i686-pc-gnu-2.18.drv-0/build/nscd  
-I/tmp/nix-build-glibc-hurd-cross-i686-pc-gnu-2.18.drv-0/build  
-I../libpthread/sysdeps/mach/hurd/i386  -I../sysdeps/mach/hurd/i386  
-I../libpthread/sysdeps/mach/hurd  -I../libpthread/sysdeps/hurd  
-I../libpthread/sysdeps/pthread  -I../sysdeps/pthread  -I../sysdeps/mach/hurd  
-I../sysdeps/gnu  -I../sysdeps/unix/bsd/bsd4.4  -I../sysdeps/mach/i386  
-I../libpthread/sysdeps/mach  -I../sysdeps/mach  -I../sysdeps/i386/i686/fpu  
-I../sysdeps/i386/i686  -I../sysdeps/i386/i486  -I../sysdeps/i386/fpu  
-I../sysdeps/x86/fpu  -I../libpthread/sysdeps/i386  -I../sysdeps/i386  
-I../sysdeps/x86  -I../sysdeps/wordsize-32  -I../sysdeps/ieee754/ldbl-96  
-I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32  -I../sysdeps/unix/bsd 
 -I../sysdeps/unix/inet  -I../sysdeps/ieee754  -I../sysdeps/unix  
-I../sysdeps/posix  -I../libpthread/sysdeps/posix  -I../sysdeps/generic  
-I../libpthread/include -I../libpthread  -I../ports -I../hurd 
-I/tmp/nix-build-glibc-hurd-cross-i686-pc-gnu-2.18.drv-0/build/hurd/ -I../mach 
-I/tmp/nix-build-glibc-hurd-cross-i686-pc-gnu-2.18.drv-0/build/mach/ -I.. 
-I../libio -I. -nostdinc -isystem 
/gnu/store/r3zflcz1l7959f34i4r1hdy9x49ranjm-gcc-cross-sans-libc-i686-pc-gnu-4.8.2/lib/gcc/i686-pc-gnu/4.8.2/include
 -isystem 
/gnu/store/r3zflcz1l7959f34i4r1hdy9x49ranjm-gcc-cross-sans-libc-i686-pc-gnu-4.8.2/lib/gcc/i686-pc-gnu/4.8.2/include-fixed
 -isystem 
/gnu/store/0m6iv2lbkbjb3imjy29vqdrkv48wrjk0-linux-libre-headers-3.3.8/include 
-I../libpthread/include  -D_LIBC_REENTRANT -include ../include/libc-symbols.h   
-DNOT_IN_libc=1 -DIS_IN_nscd=1 -D_FORTIFY_SOURCE=2    -o 
/tmp/nix-build-glibc-hurd-cross-i686-pc-gnu-2.18.drv-0/build/nscd/getpwnam_r.o 
-MD -MP -MF 
/tmp/nix-build-glibc-hurd-cross-i686-pc-gnu-2.18.drv-0/build/nscd/getpwnam_r.o.dt
 -MT 
/tmp/nix-build-glibc-hurd-cross-i686-pc-gnu-2.18.drv-0/build/nscd/getpwnam_r.o
In file included from ../sysdeps/mach/hurd/tls.h:28:0,
                 from ../sysdeps/mach/hurd/i386/tls.h:24,
                 from ../sysdeps/mach/hurd/bits/libc-lock.h:24,
                 from ../sysdeps/mach/hurd/dirstream.h:22,
                 from ../include/dirent.h:3,
                 from nscd.c:22:
/gnu/store/x760iihp152nxwyrsch6kmxcswbpi7zy-gnumach-headers-cross-i686-pc-gnu-1.4/include/mach/mig_errors.h:71:3:
 warning: function declaration isn't a prototype [-Wstrict-prototypes]
   (*ms_routine)();
   ^
In file included from ../sysdeps/mach/hurd/tls.h:28:0,
                 from ../sysdeps/mach/hurd/i386/tls.h:24,
                 from ../sysdeps/i386/i486/bits/atomic.h:20,
                 from ../include/atomic.h:50,
                 from connections.c:21:
/gnu/store/x760iihp152nxwyrsch6kmxcswbpi7zy-gnumach-headers-cross-i686-pc-gnu-1.4/include/mach/mig_errors.h:71:3:
 warning: function declaration isn't a prototype [-Wstrict-prototypes]
   (*ms_routine)();
   ^
In file included from ../sysdeps/mach/hurd/tls.h:28:0,
                 from ../sysdeps/mach/hurd/i386/tls.h:24,
                 from ../sysdeps/i386/i486/bits/atomic.h:20,
                 from ../include/atomic.h:50,
                 from ../nss/getXXbyYY_r.c:20,
                 from getpwnam_r.c:31:
/gnu/store/x760iihp152nxwyrsch6kmxcswbpi7zy-gnumach-headers-cross-i686-pc-gnu-1.4/include/mach/mig_errors.h:71:3:
 warning: function declaration isn't a prototype [-Wstrict-prototypes]
   (*ms_routine)();
   ^
In file included from ../sysdeps/mach/hurd/tls.h:28:0,
                 from ../sysdeps/mach/hurd/i386/tls.h:24,
                 from ../sysdeps/i386/i486/bits/atomic.h:20,
                 from ../include/atomic.h:50,
                 from nscd-client.h:28,
                 from nscd.h:30,
                 from pwdcache.c:36:
/gnu/store/x760iihp152nxwyrsch6kmxcswbpi7zy-gnumach-headers-cross-i686-pc-gnu-1.4/include/mach/mig_errors.h:71:3:
 warning: function declaration isn't a prototype [-Wstrict-prototypes]
   (*ms_routine)();
   ^
connections.c:112:13: error: 
'PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP' undeclared here (not in a 
function)
     .lock = PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP,
             ^
connections.c: In function 'restart':
connections.c:1487:11: warning: ignoring return value of 'setuid', declared 
with attribute warn_unused_result [-Wunused-result]
    setuid (server_uid);
           ^
connections.c:1502:11: warning: ignoring return value of 'setuid', declared 
with attribute warn_unused_result [-Wunused-result]
    setuid (server_uid);
           ^
connections.c:1503:11: warning: ignoring return value of 'setgid', declared 
with attribute warn_unused_result [-Wunused-result]
    setgid (server_gid);
           ^
connections.c:1547:14: warning: ignoring return value of 'setuid', declared 
with attribute warn_unused_result [-Wunused-result]
       setuid (server_uid);
              ^
connections.c:1548:14: warning: ignoring return value of 'setgid', declared 
with attribute warn_unused_result [-Wunused-result]
       setgid (server_gid);
              ^
../o-iterator.mk:9: recipe for target 
'/tmp/nix-build-glibc-hurd-cross-i686-pc-gnu-2.18.drv-0/build/nscd/connections.o'
 failed
make[2]: *** 
[/tmp/nix-build-glibc-hurd-cross-i686-pc-gnu-2.18.drv-0/build/nscd/connections.o]
 Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory 
'/tmp/nix-build-glibc-hurd-cross-i686-pc-gnu-2.18.drv-0/glibc-hurd-2.18/nscd'
Makefile:233: recipe for target 'nscd/others' failed
make[1]: *** [nscd/others] Error 2
--8<---------------cut here---------------end--------------->8---

Is this a known issue?  How do you address that?

Thanks,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]