I get this error when I compile stock 21.4.11 or 12 using cc on
Solaris 9:
aar:/usr/local/src/xemacs-build/xemacs-21.4.12(673)$ cc -V
cc: Forte Developer 7 C 5.4 2002/03/09
usage: cc [ options] files. Use 'cc -flags' for details
aar@williams:/usr/local/src/xemacs-build/xemacs-21.4.12(674)$ /usr/ccs/bin/make
cd ./lib-src && /usr/ccs/bin/make CC='cc'
CFLAGS='-xtarget=ultra' LDFLAGS='' CPPFLAGS='' all
cd ./lwlib && /usr/ccs/bin/make CC='cc'
CFLAGS='-xtarget=ultra' LDFLAGS='' CPPFLAGS='' all
cd ./src && /usr/ccs/bin/make CC='cc' CFLAGS='-xtarget=ultra'
LDFLAGS='' CPPFLAGS='' all
cc -c -xtarget=ultra -Demacs -I. -DHAVE_CONFIG_H -I/usr/include -I/usr/local/include
-I/usr/sfw/include -I/usr/openwin/share/include/X11 -I/usr/include/sys -I/usr/ucbinclude
-I/usr/dt/include callproc.c
"/usr/ucbinclude/vfork.h", line 21: identifier redeclared: fork
current : function(void) returning int
previous: function(void) returning long : "/usr/include/unistd.h",
line 249
cc: acomp failed for callproc.c
*** Error code 2
make: Fatal error: Command failed for target `callproc.o'
Current working directory /usr/local/src/xemacs-build/xemacs-21.4.12/src
*** Error code 1
make: Fatal error: Command failed for target `src'
This patch makes the problem go away:
------------------
aar:/usr/local/src/xemacs-build/xemacs-21.4.12/src(737)$ gdiff -u sysproc.h.orig
sysproc.h
--- sysproc.h.orig 2001-04-12 13:24:23.000000000 -0500
+++ sysproc.h 2003-01-21 14:37:49.266631000 -0600
@@ -23,9 +23,11 @@
#ifndef INCLUDED_sysproc_h_
#define INCLUDED_sysproc_h_
+/* Commented out to see if it repairs the /usr/ucbinclude/vfork.h problem
#ifdef HAVE_VFORK_H
# include <vfork.h>
#endif
+*/
#include "systime.h" /* necessary for sys/resource.h; also gets the
FD_* defines on some systems. */
------------------
Is this asking for trouble? I've experienced some occasional
crashes[1] doing this with 21.4.11, but I'm not sure if they're
related.
Now that I'm seeing it again with .12, I thought I'd mention it.
-Drew
Footnotes:
[1]
http://list-archive.xemacs.org/xemacs-beta/200212/msg00450.html