Re: Erros Compiling nss-pam-ldapd on Solaris 10/x86
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
Re: Erros Compiling nss-pam-ldapd on Solaris 10/x86
- From: Peter Ohlerich <peter.ohlerich [at] uni-bielefeld.de>
- To: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: Re: Erros Compiling nss-pam-ldapd on Solaris 10/x86
- Date: Wed, 29 Sep 2010 13:13:53 +0200
Am 24.09.2010 15:08, schrieb Arthur de Jong:
> ...
> Solaris has a nss_status_t type, while Glibc uses enum nss_status. Also
> the status constants are named differently. I've just committed (r1214)
> the outstanding changes that should support either variant. So at least
> the SVN version should now compile on Solaris.
> ...
Hello Arthur!
As I wrote earlier to Ted the compilation with enabled nslcd fails.
I checked out r1225 and it failed to compile with an equal error
like the Symas version:
gmake all-recursive
gmake[1]: Entering directory `/home/swadm1/NON_PADL/nss-pam-ldapd-SVN'
Making all in compat
gmake[2]: Entering directory
`/home/swadm1/NON_PADL/nss-pam-ldapd-SVN/compat'
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -fPIC -MT ether.o -MD -MP -MF
.deps/ether.Tpo -c -o ether.o ether.c
ether.c:42: error: conflicting types for 'ether_ntoa'
/usr/include/sys/ethernet.h:123: error: previous declaration of
'ether_ntoa' was here
ether.c:42: error: conflicting types for 'ether_ntoa'
/usr/include/sys/ethernet.h:123: error: previous declaration of
'ether_ntoa' was here
ether.c: In function `ether_ntoa_r':
ether.c:47: warning: passing arg 1 of `ether_ntoa' discards qualifiers
from pointer target type
ether.c: At top level:
ether.c:59: error: conflicting types for 'ether_aton'
/usr/include/sys/ethernet.h:124: error: previous declaration of
'ether_aton' was here
ether.c:59: error: conflicting types for 'ether_aton'
/usr/include/sys/ethernet.h:124: error: previous declaration of
'ether_aton' was here
ether.c: In function `ether_aton_r':
ether.c:64: warning: passing arg 1 of `ether_aton' discards qualifiers
from pointer target type
gmake[2]: *** [ether.o] Error 1
gmake[2]: Leaving directory `/home/swadm1/NON_PADL/nss-pam-ldapd-SVN/compat'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/swadm1/NON_PADL/nss-pam-ldapd-SVN'
gmake: *** [all] Error 2
I looked inside /usr/include/sys/ethernet.h and it looks like this:
#ifdef _KERNEL
extern int localetheraddr(struct ether_addr *, struct ether_addr *);
extern char *ether_sprintf(struct ether_addr *);
extern int ether_aton(char *, uchar_t *);
#else /* _KERNEL */
#ifdef __STDC__
extern char *ether_ntoa(const struct ether_addr *);
extern struct ether_addr *ether_aton(const char *);
extern int ether_ntohost(char *, const struct ether_addr *);
extern int ether_hostton(const char *, struct ether_addr *);
extern int ether_line(const char *, struct ether_addr *, char *);
#else /* __STDC__ */
extern char *ether_ntoa();
extern struct ether_addr *ether_aton();
extern int ether_ntohost();
extern int ether_hostton();
extern int ether_line();
#endif /* __STDC__ */
#endif /* _KERNEL */
With regards,
Peter Ohlerich.
--
----------------------------------------------------------------------
HRZ der Universitaet Bielefeld Phone: +49 521 106-00
Dipl.-Inf. Peter Ohlerich Email: Peter.Ohlerich@uni-bielefeld.de
P.O.Box 100131 WWW: http://www.uni-bielefeld.de/hrz/
D-33501 Bielefeld (Germany)
--
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-users
Re: Erros Compiling nss-pam-ldapd on Solaris 10/x86,
Peter Ohlerich