samba-tng-alpha-2.2.tar.gz

David Allan Finch david.allan at finch.org
Mon Apr 10 10:39:22 GMT 2000


Attempted to build it on Solaris 8 with the following options:

---8<---
./configure --prefix=/opt/samba --with-automount --with-pam --with-nisplus --with-nisplus-home --with-utmp
---8<---

get the following build error

---8<---
Compiling lib/slprintf.c with libtool
Compiling lib/system.c with libtool
Compiling lib/doscalls.c with libtool
Compiling lib/time.c with libtool
Compiling lib/ufc.c with libtool
Compiling lib/util.c with libtool
In file included from lib/util.c:27:
/usr/include/rpcsvc/nis.h:519: warning: `GROUP' redefined
/usr/include/sys/acl.h:26: warning: this is the location of the previous definition
In file included from lib/util.c:27:
/usr/include/rpcsvc/nis.h:67: parse error before `('
lib/util.c: In function `standard_sub_vuser':
lib/util.c:2248: warning: passing arg 1 of `Get_Pwnam' discards `const' from pointer target type
lib/util.c:2262: warning: passing arg 1 of `automount_server' discards `const' from pointer target type
lib/util.c: In function `nametouid':
lib/util.c:2600: warning: passing arg 1 of `Get_Pwnam' discards `const' from pointer target type
make: *** [lib/util.lo] Error 1
---8<---

this is because both /usr/include/rpcsvc/nis.h & /usr/include/sys/acl.h
define GROUP

/usr/include/sys/acl.h
#define GROUP           (0x08)          /* additional groups */

/usr/include/rpcsvc/nis.h
#define GROUP(a, m)     (((a) & ((m) << 8)) != 0)

Also they is a class with GROUP_OBJ in /usr/include/rpcsvc/nis.h
and some where else in the Samba source.

BFN DAF.




More information about the samba-technical mailing list