From xemacs-m  Mon Feb 10 06:03:10 1997
Received: from venus.Sun.COM (venus.Sun.COM [192.9.25.5])
	by xemacs.org (8.8.5/8.8.5) with SMTP id GAA08645
	for <xemacs-beta@xemacs.org>; Mon, 10 Feb 1997 06:03:09 -0600 (CST)
Received: from Eng.Sun.COM ([129.146.1.25]) by venus.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id EAA11732 for <xemacs-beta@xemacs.org>; Mon, 10 Feb 1997 04:02:39 -0800
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id EAA00983; Mon, 10 Feb 1997 04:02:38 -0800
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id EAA26794; Mon, 10 Feb 1997 04:02:36 -0800
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id EAA29152; Mon, 10 Feb 1997 04:02:34 -0800
Date: Mon, 10 Feb 1997 04:02:34 -0800
Message-Id: <199702101202.EAA29152@xemacs.eng.sun.com>
From: Martin Buchholz <mrb@Eng.Sun.COM>
To: XEmacs Beta Test <xemacs-beta@xemacs.org>
Subject: XEmacs 20.0/Mule success on Solaris 2.6
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>
Mime-Version: 1.0 (generated by tm-edit 7.100)
Content-Type: text/plain; charset=US-ASCII

First patch for 20.1?

Martin

Sad, but true, here's a contorted fragment of the Solaris 2.6 header
file unistd.h:

#if defined(_XPG4_2) || defined(__EXTENSIONS__)
extern int gethostname(char *, size_t);
#elif !defined(_XOPEN_SOURCE)
extern int gethostname(char *, int);
#endif

Solaris 2.5 had gethostname in libc, but there was no prototype.

When we're building XEmacs on Solaris, __EXTENSIONS__ is always defined.

The following should do the Right Thing on all versions of Solaris.

*** /tmp/geta6102	Mon Feb 10 03:45:44 1997
--- sol2.h	Mon Feb 10 03:25:41 1997
***************
*** 41,47 ****
  /* The standard Solaris library nsl has this function in it which is
     supposed to only be in the BSD compat stuff.  Yuck.  Of course,
     there isn't a prototype for it other than in /usr/ucbinclude. */
! int gethostname (char *, int);
  
  /* Get non-ANSI functions from ANSI header files in cc -Xc mode.
     Sun has promised to fix setjmp.h */
--- 41,47 ----
  /* The standard Solaris library nsl has this function in it which is
     supposed to only be in the BSD compat stuff.  Yuck.  Of course,
     there isn't a prototype for it other than in /usr/ucbinclude. */
! int gethostname (char *, size_t);
  
  /* Get non-ANSI functions from ANSI header files in cc -Xc mode.
     Sun has promised to fix setjmp.h */



Configured for `sparc-sun-solaris2.6'.

  Where should the build process find the source code?    /net/kingfisher/export/kingfisher1/mrb/xemacs-S/editor
  What installation prefix should install use?		  /net/sparcworks/export/set/sparcworks6/xemacs-aux
  What operating system and machine description files should XEmacs use?
        `s/sol2-6.h' and `m/sparc.h'
  What compiler should XEmacs be built with?              perl /net/kingfisher/export/kingfisher1/mrb/xemacs-S/build/cc-xemacs cc -v -xstrconst -mr -Qn -xO4 -xdepend
  Should XEmacs use the GNU version of malloc?            yes
  Should XEmacs use the relocating allocator for buffers? yes
  What window system should XEmacs use?                   x11
  Where do we find X Windows header files?                /usr/dt/include -I/usr/openwin/include
  Where do we find X Windows libraries?                   /usr/dt/lib -L/usr/openwin/lib
  Additional header files:                                /net/sparcworks/export/set/sparcworks6/xemacs-aux/include
  Additional libraries:                                   /net/sparcworks/export/set/sparcworks6/xemacs-aux/sparc-S2/lib
  Compiling in support for XAUTH.
  Compiling in support for XPM.
  Compiling in support for X-Face headers.
  Compiling in support for GIF image conversion.
  Compiling in support for JPEG image conversion.
  Compiling in support for PNG image conversion.
  Compiling in support for GNU DBM.
  Compiling in support for ToolTalk.
  Compiling in Mule (multi-lingual) support.
  Compiling in XIM (X11R5+ I18N input method) support.
    Using Motif to provide XIM support.
  Compiling in support for SparcWorks.
  Using the Lucid menubar.
  Using the Lucid scrollbar.
  Using the Motif dialog boxes.

