Cyrus SASL 2.1.25 on Solaris 11

Pascal Gienger pascal.gienger at uni-konstanz.de
Tue Jan 17 16:53:31 EST 2012


Compiling SASL 2.1.25 on Solaris 11 ends with an error in lib/saslutil.c 
due to:

saslutil.c:85:12: error: conflicting types for 'gethostname'
/usr/include/unistd.h:334:12: note: previous declaration of 
'gethostname' was here
saslutil.c: In function 'randinit':
saslutil.c:439:7: warning: extra tokens at end of #else directive


lib/saslutil.c:

Line 83++:

#ifdef sun
/* gotta define gethostname ourselves on suns */
extern int gethostname(char *, int);
#endif

Solaris 11 does not need this, more, it does not have to be there.


So a test for Oracle Solaris has to be included in autoconf et.al...



-- 
Pascal Gienger     Jabber/XMPP/Mail: pascal.gienger at uni-konstanz.de
University of Konstanz, IT Services Department ("Rechenzentrum")
Building V, Room V404, Phone +49 7531 88 5048, Fax +49 7531 88 3739
G+: https://plus.google.com/114525323843315818983/


More information about the Cyrus-sasl mailing list