Subject: Re: CVS commit: src/lib/libc/rpc
To: None <ks@ub.uni-mainz.de, current-users@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: current-users
Date: 09/10/2005 13:19:52
On Sep 9, 11:03pm, ks@ub.uni-mainz.de (Kurt Schreiner) wrote:
-- Subject: CVS commit: src/lib/libc/rpc

| Hi,
| 
| this breaks compiling -current for me:
| 
|     compile  libc/clnt_dg.ln
| /u/NetBSD/src/lib/libc/rpc/clnt_dg.c(325): assignment type mismatch [171]
| /u/NetBSD/src/lib/libc/rpc/clnt_dg.c(398): warning: argument is incompatible with prototype, arg #4 
| [155]

Hmm, this is really strange. It works for me. And at 325 the assignment is

	sigset_t mask, *maskp = &mask;

which is fine.

| *** Failed target:  clnt_dg.ln
| *** Failed command: CC=/u/NetBSD/arch/i386/TOOLS/bin/i386--netbsdelf-gcc /u/NetBSD/arch/i386/TOOLS/b
| in/i386--netbsdelf-lint -chapbxzF -w -X 272 -d /u/NetBSD/arch/i386/dest/usr/include -D_LIBC -DLIBC_S
| CCS -DSYSLIBC_SCCS -D_REENTRANT -I/u/NetBSD/src/lib/libc/include -I/u/NetBSD/src/lib/libc -DHESIOD -
| DINET6 -DNLS -DYP -D__DBINTERFACE_PRIVATE -DI18NMODULE_MAJOR=4 -DCITRUS -I/u/NetBSD/src/libexec/ld.e
| lf_so -I/u/NetBSD/src/lib/libc/dlfcn -DCITRUS_ICONV -DWITH_RUNE -I/u/NetBSD/src/lib/libc -DPOSIX_MIS
| TAKE -DCOMPAT__RES -DPORTMAP -DFLOATING_POINT -DALL_STATE -DUSG_COMPAT -i /u/NetBSD/src/lib/libc/rpc
| /clnt_dg.c
| *** Error code 1
| 
| Stop.
| nbmake: stopped in /u/NetBSD/src/lib/libc
| 
| 
| I've no good idea how to fix this, but glancing over the code I found "mask"
| -which seems only to be defined "#ifdef REENTRNANT"- used in places which where
| not enclosed by "#ifdef REENTRNANT". Am I missing something???

the thr_foo() macro expands to nothing if !_REENTRANT.

christos