home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / utils / bug / 2350 < prev    next >
Encoding:
Text File  |  1993-01-08  |  10.6 KB  |  379 lines

  1. Newsgroups: gnu.utils.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!csee.lehigh.edu!wbader
  3. From: wbader@csee.lehigh.edu (wbader)
  4. Subject: gnu make 3.62 and sco unix
  5. Message-ID: <9301080024.AA05219@pluto>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Fri, 8 Jan 1993 00:24:37 GMT
  10. Approved: bug-gnu-utils@prep.ai.mit.edu
  11. Lines: 366
  12.  
  13. Here are changes I made to build make 3.62 under sco odt 2.0
  14. (a bundle with sco unix 3.2v4.0).
  15.  
  16. ------------------------------
  17. gdiff +context=3 ../x/make-3.62/Makefile Makefile
  18. *** ../x/make-3.62/Makefile    Tue Oct 29 21:04:26 1991
  19. --- Makefile    Thu Jan  7 16:13:18 1993
  20. ***************
  21. *** 19,26 ****
  22.   #    Makefile for GNU Make
  23.   #
  24.   
  25. ! CFLAGS = $(defines) -g
  26. ! LDFLAGS = -g
  27.   
  28.   # Define these for your system as follows:
  29.   #     -DUSG            System V
  30. --- 19,28 ----
  31.   #    Makefile for GNU Make
  32.   #
  33.   
  34. ! #CFLAGS = $(defines) -g
  35. ! CFLAGS = $(defines)
  36. ! #LDFLAGS = -g
  37. ! LDFLAGS =
  38.   
  39.   # Define these for your system as follows:
  40.   #     -DUSG            System V
  41. ***************
  42. *** 38,44 ****
  43.   #                without complaint but produce losing code,
  44.   #                so beware.
  45.   # NeXT 1.0a uses an old version of GCC, which required -D__inline=inline.
  46. ! defines =
  47.   
  48.   # Define these for your system as follows:
  49.   #    -DUMAX        Encore UMAX
  50. --- 40,46 ----
  51.   #                without complaint but produce losing code,
  52.   #                so beware.
  53.   # NeXT 1.0a uses an old version of GCC, which required -D__inline=inline.
  54. ! defines = -DUSG -DUSGr3 -D__SCO_WAIT3__ -DHAVE_SYS_WAIT
  55.   
  56.   # Define these for your system as follows:
  57.   #    -DUMAX        Encore UMAX
  58. ***************
  59. *** 52,58 ****
  60.   # Define:
  61.   #    -DNLIST_NAME_UNION    If `struct nlist' has a n_un member.
  62.   #    -DNLIST_NAME_ARRAY    If `n_name' is an array.
  63. ! LOAD_AVG =
  64.   
  65.   # If you don't want archive support, comment these out.
  66.   ARCHIVES = arscan.o ar.o
  67. --- 54,60 ----
  68.   # Define:
  69.   #    -DNLIST_NAME_UNION    If `struct nlist' has a n_un member.
  70.   #    -DNLIST_NAME_ARRAY    If `n_name' is an array.
  71. ! LOAD_AVG = -DNO_LDAV
  72.   
  73.   # If you don't want archive support, comment these out.
  74.   ARCHIVES = arscan.o ar.o
  75. ***************
  76. *** 63,69 ****
  77.   # libPW.a is broken on HP9000s300 and HP9000s400 machines.  Use
  78.   # alloca.c (below) instead on those machines.  SGI Irix needs -lmld
  79.   # for nlist.
  80. ! LOADLIBES =
  81.   
  82.   # If your system doesn't have alloca, or the one provided is bad,
  83.   # get it from the Emacs distribution and define these.
  84. --- 65,71 ----
  85.   # libPW.a is broken on HP9000s300 and HP9000s400 machines.  Use
  86.   # alloca.c (below) instead on those machines.  SGI Irix needs -lmld
  87.   # for nlist.
  88. ! LOADLIBES = -lPW -lsocket -lmalloc -lc_s
  89.   
  90.   # If your system doesn't have alloca, or the one provided is bad,
  91.   # get it from the Emacs distribution and define these.
  92. ------------------------------
  93. gdiff +context=3 ../x/make-3.62/arscan.c arscan.c
  94. *** ../x/make-3.62/arscan.c    Tue Oct 22 21:30:25 1991
  95. --- arscan.c    Thu Jan  7 16:11:52 1993
  96. ***************
  97. *** 160,166 ****
  98.     }
  99.   #else
  100.     {
  101. ! #ifndef M_XENIX
  102.       int buf;
  103.   #else
  104.       unsigned short int buf;
  105. --- 160,166 ----
  106.     }
  107.   #else
  108.     {
  109. ! #if defined(M_UNIX) || !defined(M_XENIX)
  110.       int buf;
  111.   #else
  112.       unsigned short int buf;
  113. ***************
  114. *** 187,193 ****
  115.       sscanf (fl_header.fl_fstmoff, "%12ld", &member_offset);
  116.       sscanf (fl_header.fl_lstmoff, "%12ld", &last_member_offset);
  117.   #else
  118. ! #ifndef    M_XENIX
  119.       register long int member_offset = sizeof (int);
  120.   #else    /* Xenix.  */
  121.       register long int member_offset = sizeof (unsigned short int);
  122. --- 187,193 ----
  123.       sscanf (fl_header.fl_fstmoff, "%12ld", &member_offset);
  124.       sscanf (fl_header.fl_lstmoff, "%12ld", &last_member_offset);
  125.   #else
  126. ! #if    defined(M_UNIX) || !defined(M_XENIX)
  127.       register long int member_offset = sizeof (int);
  128.   #else    /* Xenix.  */
  129.       register long int member_offset = sizeof (unsigned short int);
  130. ***************
  131. *** 281,287 ****
  132.   #endif
  133.       }
  134.   
  135. ! #ifndef    M_XENIX
  136.       sscanf (member_header.ar_mode, "%o", &eltmode);
  137.       eltsize = atol (member_header.ar_size);
  138.   #else    /* Xenix.  */
  139. --- 281,287 ----
  140.   #endif
  141.       }
  142.   
  143. ! #if    defined(M_UNIX) || !defined(M_XENIX)
  144.       sscanf (member_header.ar_mode, "%o", &eltmode);
  145.       eltsize = atol (member_header.ar_size);
  146.   #else    /* Xenix.  */
  147. ***************
  148. *** 292,298 ****
  149.       fnval =
  150.         (*function) (desc, name, member_offset,
  151.                  member_offset + sizeof (member_header), eltsize,
  152. ! #ifndef    M_XENIX
  153.                  atol (member_header.ar_date),
  154.                  atoi (member_header.ar_uid),
  155.                  atoi (member_header.ar_gid),
  156. --- 292,298 ----
  157.       fnval =
  158.         (*function) (desc, name, member_offset,
  159.                  member_offset + sizeof (member_header), eltsize,
  160. ! #if    defined(M_XENIX) || !defined(M_UNIX)
  161.                  atol (member_header.ar_date),
  162.                  atoi (member_header.ar_uid),
  163.                  atoi (member_header.ar_gid),
  164. ------------------------------
  165. gdiff +context=3 ../x/make-3.62/default.c default.c
  166. *** ../x/make-3.62/default.c    Fri Oct  4 17:42:22 1991
  167. --- default.c    Thu Jan  7 15:19:08 1993
  168. ***************
  169. *** 95,107 ****
  170.       "cat $< >$@ \n chmod a+x $@",
  171.   
  172.       ".s.o",
  173. ! #if !defined(M_XENIX) || defined(__GNUC__)
  174.       "$(COMPILE.s) -o $@ $<",
  175.   #else    /* Xenix.  */
  176.       "$(COMPILE.s) -o$@ $<",
  177.   #endif    /* Not Xenix.  */
  178.       ".S.o",
  179. ! #if !defined(M_XENIX) || defined(__GNUC__)
  180.       "$(COMPILE.S) -o $@ $<",
  181.   #else    /* Xenix.  */
  182.       "$(COMPILE.S) -o$@ $<",
  183. --- 95,107 ----
  184.       "cat $< >$@ \n chmod a+x $@",
  185.   
  186.       ".s.o",
  187. ! #if !defined(M_XENIX) || defined(M_UNIX) || defined(__GNUC__)
  188.       "$(COMPILE.s) -o $@ $<",
  189.   #else    /* Xenix.  */
  190.       "$(COMPILE.s) -o$@ $<",
  191.   #endif    /* Not Xenix.  */
  192.       ".S.o",
  193. ! #if !defined(M_XENIX) || defined(M_UNIX) || defined(__GNUC__)
  194.       "$(COMPILE.S) -o $@ $<",
  195.   #else    /* Xenix.  */
  196.       "$(COMPILE.S) -o$@ $<",
  197. ***************
  198. *** 242,248 ****
  199.       "COMPILE.s", "$(AS) $(ASFLAGS) $(TARGET_MACH)",
  200.       "LINK.S", "$(CC) $(ASFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_MACH)",
  201.       "COMPILE.S", "$(CC) $(ASFLAGS) $(CPPFLAGS) $(TARGET_MACH) -c",
  202. ! #if !defined(M_XENIX) || defined(__GNUC__)
  203.       "PREPROCESS.S", "$(CC) -E $(CPPFLAGS)",
  204.   #else    /* Xenix.  */
  205.       "PREPROCESS.S", "$(CC) -EP $(CPPFLAGS)",
  206. --- 242,248 ----
  207.       "COMPILE.s", "$(AS) $(ASFLAGS) $(TARGET_MACH)",
  208.       "LINK.S", "$(CC) $(ASFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_MACH)",
  209.       "COMPILE.S", "$(CC) $(ASFLAGS) $(CPPFLAGS) $(TARGET_MACH) -c",
  210. ! #if !defined(M_XENIX) || defined(M_UNIX) || defined(__GNUC__)
  211.       "PREPROCESS.S", "$(CC) -E $(CPPFLAGS)",
  212.   #else    /* Xenix.  */
  213.       "PREPROCESS.S", "$(CC) -EP $(CPPFLAGS)",
  214. ***************
  215. *** 252,258 ****
  216.       "LINT.c", "$(LINT) $(LINTFLAGS) $(CPPFLAGS) $(TARGET_ARCH)",
  217.   
  218.   #ifndef    NO_MINUS_C_MINUS_O
  219. ! #if !defined(M_XENIX) || defined(__GNUC__)
  220.       "OUTPUT_OPTION", "-o $@",
  221.   #else    /* Xenix.  */
  222.       "OUTPUT_OPTION", "-Fo$@",
  223. --- 252,258 ----
  224.       "LINT.c", "$(LINT) $(LINTFLAGS) $(CPPFLAGS) $(TARGET_ARCH)",
  225.   
  226.   #ifndef    NO_MINUS_C_MINUS_O
  227. ! #if !defined(M_XENIX) || defined(M_UNIX) || defined(__GNUC__)
  228.       "OUTPUT_OPTION", "-o $@",
  229.   #else    /* Xenix.  */
  230.       "OUTPUT_OPTION", "-Fo$@",
  231. ------------------------------
  232. gdiff +context=3 ../x/make-3.62/misc.c misc.c
  233. *** ../x/make-3.62/misc.c    Mon Oct  7 18:04:20 1991
  234. --- misc.c    Thu Jan  7 15:08:06 1993
  235. ***************
  236. *** 481,487 ****
  237.   }
  238.   #endif
  239.   
  240. ! #if    !defined(POSIX) && !defined(__GNU_LIBRARY__)
  241.   extern int getuid (), getgid (), geteuid (), getegid ();
  242.   #ifdef    USG
  243.   extern int setuid (), setgid ();
  244. --- 481,487 ----
  245.   }
  246.   #endif
  247.   
  248. ! #if    !defined(POSIX) && !defined(__GNU_LIBRARY__) && !defined(M_UNIX)
  249.   extern int getuid (), getgid (), geteuid (), getegid ();
  250.   #ifdef    USG
  251.   extern int setuid (), setgid ();
  252. ------------------------------
  253. gdiff +context=3 ../x/make-3.62/job.c job.c
  254. *** ../x/make-3.62/job.c    Thu Oct 24 17:58:33 1991
  255. --- job.c    Thu Jan  7 15:07:18 1993
  256. ***************
  257. *** 60,66 ****
  258.   #define    WAIT_NOHANG(status) \
  259.     wait3((union wait *) (status), WNOHANG, (struct rusage *) 0)
  260.   
  261. ! #if    !defined (wait) && !defined (POSIX)
  262.   extern int wait ();
  263.   #endif
  264.   #endif    /* HAVE_SYS_WAIT || !USG */
  265. --- 60,66 ----
  266.   #define    WAIT_NOHANG(status) \
  267.     wait3((union wait *) (status), WNOHANG, (struct rusage *) 0)
  268.   
  269. ! #if    !defined (wait) && !defined (POSIX) && !defined(M_UNIX)
  270.   extern int wait ();
  271.   #endif
  272.   #endif    /* HAVE_SYS_WAIT || !USG */
  273. ***************
  274. *** 113,120 ****
  275. --- 113,122 ----
  276.   extern int dup2 ();
  277.   extern int execve ();
  278.   extern void _exit ();
  279. + #ifndef M_UNIX
  280.   extern int geteuid (), getegid ();
  281.   extern int setgid (), getgid ();
  282. + #endif
  283.   #endif    /* GNU C library.  */
  284.   
  285.   #ifndef USG
  286. ------------------------------
  287. gdiff +context=3 ../x/make-3.62/commands.c commands.c
  288. *** ../x/make-3.62/commands.c    Tue Oct  8 16:20:29 1991
  289. --- commands.c    Thu Jan  7 15:02:08 1993
  290. ***************
  291. *** 25,31 ****
  292.   
  293.   extern int remote_kill ();
  294.   
  295. ! #if    !defined(POSIX) && !defined(__GNU_LIBRARY__)
  296.   extern int getpid ();
  297.   #endif
  298.   
  299. --- 25,31 ----
  300.   
  301.   extern int remote_kill ();
  302.   
  303. ! #if    !defined(POSIX) && !defined(__GNU_LIBRARY__) && !defined(M_UNIX)
  304.   extern int getpid ();
  305.   #endif
  306.   
  307. ------------------------------
  308. gdiff +context=3 ../x/make-3.62/function.c function.c
  309. *** ../x/make-3.62/function.c    Mon Oct 21 17:44:24 1991
  310. --- function.c    Thu Jan  7 14:21:16 1993
  311. ***************
  312. *** 326,332 ****
  313. --- 326,334 ----
  314.         
  315.       case function_shell:
  316.         {
  317. + #ifndef M_UNIX
  318.       extern int fork ();
  319. + #endif
  320.       extern int pipe ();
  321.       char **argv;
  322.       char *error_prefix;
  323. ------------------------------
  324. gdiff +context=3 ../x/make-3.62/make.h make.h
  325. *** ../x/make-3.62/make.h    Sat Oct 26 17:19:58 1991
  326. --- make.h    Thu Jan  7 15:02:08 1993
  327. ***************
  328. *** 212,218 ****
  329.   #define    VFORK_NAME    "vfork"
  330.   #endif    /* USG and don't have vfork.  */
  331.   
  332. ! #if    defined(__GNU_LIBRARY__) || defined(POSIX)
  333.   
  334.   #include <unistd.h>
  335.   
  336. --- 212,218 ----
  337.   #define    VFORK_NAME    "vfork"
  338.   #endif    /* USG and don't have vfork.  */
  339.   
  340. ! #if    defined(__GNU_LIBRARY__) || defined(POSIX) || defined(M_UNIX)
  341.   
  342.   #include <unistd.h>
  343.   
  344. ***************
  345. *** 243,249 ****
  346.   extern char *getwd ();
  347.   #endif    /* Not USG or POSIX, or maybe GNU C library.  */
  348.   
  349. ! #if !defined(__GNU_LIBRARY__) && (!defined(vfork) || !defined(POSIX))
  350.   #ifdef    POSIX
  351.   extern pid_t vfork ();
  352.   #else
  353. --- 243,249 ----
  354.   extern char *getwd ();
  355.   #endif    /* Not USG or POSIX, or maybe GNU C library.  */
  356.   
  357. ! #if !defined(__GNU_LIBRARY__) && (!defined(vfork) || !defined(POSIX)) && !defined(M_UNIX)
  358.   #ifdef    POSIX
  359.   extern pid_t vfork ();
  360.   #else
  361. ------------------------------
  362. gdiff +context=3 ../x/make-3.62/glob/glob.c glob/glob.c
  363. *** ../x/make-3.62/glob/glob.c    Sat Oct 19 16:39:23 1991
  364. --- glob/glob.c    Thu Jan  7 14:34:43 1993
  365. ***************
  366. *** 132,137 ****
  367. --- 132,141 ----
  368.   
  369.   #endif /* Not STDC_HEADERS or __GNU_LIBRARY__.  */
  370.   
  371. + #ifdef M_UNIX
  372. + #define STDC_STRINGS
  373. + #endif
  374.   #ifndef    STDC_STRINGS
  375.   #define    memcpy(d, s, n)    bcopy((s), (d), (n))
  376.   #define    strrchr    rindex
  377.  
  378.