bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compile error with patch 2.5.4 on Mac OS X


From: Petter Reinholdtsen
Subject: Compile error with patch 2.5.4 on Mac OS X
Date: Fri, 21 Mar 2003 17:51:03 +0100

Patch version 2.5.4 fail to compile on Mac OS X.  This is an except
from the compile log:

  checking for setmode... yes
  [...]
  cc-wrapper -c  -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I. -g -O2 pch.c
  pch.c: In function `open_patch_file':
  pch.c:113: too many arguments to function `setmode'
  make: *** [pch.o] Error 1

The setmode function seem to be different from the one expected by
patch.  The manual page on Mac OS X informs about this usage:

  #include <unistd.h>
  void *setmode(const char *mode_str);

It also claims this function first appeared in 4.4BSD.

No other platforms we compile patch on have this function.  I've
tested Redhat 6.2 and 7.2, Solaris 8, HP/UX 11, AIX 5.1, Irix 6.15 and
Tru64 Unix.

I guess the test in configure should be modified to check if the
setmode() function is usable before using it.  I do not know what the
expected function is supposed to do, so I do not have a patch to send.

I just wanted to let you know about the problem.

Is there a newer version of patch available?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]