From 2e836ac7d3d9264efb9ae5a06bfe8c7149e22eac Mon Sep 17 00:00:00 2001 From: Werner LEMBERG Date: Fri, 21 Jul 2000 10:23:30 +0000 Subject: [PATCH] * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for commands that fail. Don't assume that "export a=b" is valid shell syntax. This is needed for Solaris 2.5.1. * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix comment about missing Solaris headers. * PROBLEMS: Add section about problems with Sun Make and VPATH. * src/roff/nroff/nroff.sh: Fix main loop syntax. --- ChangeLog | 13 ++++++++++++- Makefile.in | 8 ++++++-- PROBLEMS | 18 ++++++++++++++++++ src/libs/libgroff/tmpfile.cc | 3 ++- src/utils/indxbib/indxbib.cc | 3 ++- 5 files changed, 40 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9be77c1c..2c3f0f67 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2000-06-28 Paul Eggert + + * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for + commands that fail. Don't assume that "export a=b" is valid shell + syntax. This is needed for Solaris 2.5.1. + + * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix + comment about missing Solaris headers. + + * PROBLEMS: Add section about problems with Sun Make and VPATH. + 2000-06-25 Werner LEMBERG * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with @@ -212,7 +223,7 @@ 2000-05-28 Keith Thompson - * src/roff/nroff/nroff.sh: Fix infinite loop syntax. + * src/roff/nroff/nroff.sh: Fix main loop syntax. * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp(). diff --git a/Makefile.in b/Makefile.in index ab07b8c6..ccbd522d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -368,8 +368,12 @@ TARGETS=all install install_bin install_data clean distclean mostlyclean \ # This ENVSETUP gork is required by the DJGPP build on Windows 9X, # where Make needs to be case-sensitive to find files like BI and VERSION. -ENVSETUP=`test -f $(srcdir)/makefile.ccpg*\ - && test -f $(srcdir)/Makefile.ccpg* && echo export FNCASE=y` +ENVSETUP=\ + if test -f $(srcdir)/makefile.ccpg* && \ + test -f $(srcdir)/Makefile.ccpg*; \ + then FNCASE=y; export FNCASE; \ + else :; \ + fi do=all dodirs=$(ALLDIRS) dot diff --git a/PROBLEMS b/PROBLEMS index 391fcdac..b73db2f4 100644 --- a/PROBLEMS +++ b/PROBLEMS @@ -98,6 +98,24 @@ argument is a const char *. Fix the declaration of open() in ---------------------------------------------------------------------- +* On a host using Unix make (e.g. Solaris), if you are compiling for + multiple architectures by building in a subdirectory, the make stops + with a message like this: + + make: Fatal error: Don't know how to make target `assert.o' + + or like this: + + make: Fatal error: Can't find /u/src/groff/src/include/Makefile.sub': No such file or directory + +This occurs because GNU make and Unix make handle VPATH differently, +and the groff build relies on GNU make's VPATH handling. + +Use GNU make to work around the problem. In Solaris 8, GNU make is +on the Software Companion CD and is installed as /opt/sfw/bin/gmake. + +---------------------------------------------------------------------- + * On Ultrix, the make stops with the message *** Error code 1 diff --git a/src/libs/libgroff/tmpfile.cc b/src/libs/libgroff/tmpfile.cc index 378fc929..ffc165ce 100644 --- a/src/libs/libgroff/tmpfile.cc +++ b/src/libs/libgroff/tmpfile.cc @@ -30,7 +30,8 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "nonposix.h" extern "C" { - // Sun's stdlib.h fails to declare this. + // Solaris 2.5.1 has these functions, + // but its stdlib.h fails to declare them. char *mktemp(char *); int mkstemp(char *); } diff --git a/src/utils/indxbib/indxbib.cc b/src/utils/indxbib/indxbib.cc index bd4780d7..3185fe2c 100644 --- a/src/utils/indxbib/indxbib.cc +++ b/src/utils/indxbib/indxbib.cc @@ -38,7 +38,8 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "nonposix.h" extern "C" { - // Sun's stdlib.h fails to declare this. + // Solaris 2.5.1 has these functions, + // but its stdlib.h fails to declare them. char *mktemp(char *); int mkstemp(char *); } -- 2.11.4.GIT