[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
patch: compile for for diffutils 2.8.1 on HP-UX / ia64
From: |
Petter Reinholdtsen |
Subject: |
patch: compile for for diffutils 2.8.1 on HP-UX / ia64 |
Date: |
Tue, 30 Mar 2004 12:54:36 +0200 |
The latest version of diffutils I am aware of, version 2.8,1, fail to
build on HP-UX/ia64. This is the error message:
cc-wrapper -DLOCALEDIR=\"/local/share/locale\" -DHAVE_CONFIG_H
-I. -I. -I.. -I../lib -I../lib -g -c `test -f diff.c || echo
'./'`diff.c
Error 628: "diff.h", line 135 # "re_pattern_buffer
function_regexp" ["diff.h", line 135] cannot be defined to have an
incomplete type.
XTERN struct re_pattern_buffer function_regexp;
^^^^^^^^^^^^^^^
Error 628: "diff.h", line 138 # "re_pattern_buffer ignore_regexp"
["diff.h", line 138] cannot be defined to have an incomplete type.
XTERN struct re_pattern_buffer ignore_regexp;
^^^^^^^^^^^^^
Warning 863: "diff.c", line 799 # Result of operator << is widened
from int to unsigned long.
reglist->buf->fastmap = xmalloc (1 << CHAR_BIT);
^^^^^^^^^^^^^
The fix is to make sure <regex.h> (from ../lib/regex/) is included
when the struct is needed in diff.h. This patch fixed the compile
problem:
diff -ur src-2.8.1/src/diff.h src-2.8.1-local/src/diff.h
--- src-2.8.1/src/diff.h 2002-03-11 22:24:42.000000000 +0100
+++ src-2.8.1-local/src/diff.h 2004-03-30 12:50:40.000000000 +0200
@@ -22,6 +22,7 @@
#include "system.h"
#include <stdio.h>
+#include <regex.h> /* for struct re_pattern_buffer on HP-UX/ia64 */
#define TAB_WIDTH 8
Please include it in a future version of diffutils.
- patch: compile for for diffutils 2.8.1 on HP-UX / ia64,
Petter Reinholdtsen <=