[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
coreutils 4.5.2 fail to build on AIX
From: |
Petter Reinholdtsen |
Subject: |
coreutils 4.5.2 fail to build on AIX |
Date: |
Sat, 12 Oct 2002 15:14:52 +0200 |
coreutils 4.5.2 fail to compile on AIX. This is the error message:
cc-wrapper -DLOCALEDIR=\"/local/share/locale\"
-DSHAREDIR=\"/local/share\" -DHAVE_CONFIG_H
-I. -I. -I.. -I.. -I. -I../lib -I../lib -g -c `test -f 'fmt.c' ||
echo './'`fmt.c
cc: 1501-210 command option t contains an incorrect subargument
"fmt.c", line 137.10: 1506-009 (S) Bit-field paren must be of type
signed int, unsigned int or int.
"fmt.c", line 138.10: 1506-009 (S) Bit-field period must be of type
signed int, unsigned int or int.
"fmt.c", line 139.10: 1506-009 (S) Bit-field punct must be of type
signed int, unsigned int or int.
"fmt.c", line 140.10: 1506-009 (S) Bit-field final must be of type
signed int, unsigned int or int.
make[1]: Leaving directory
`/usit/hufflepuff/local/store/hufflepuff/coreutils-c/src-4.5.2-rs6aix5/src'
make[1]: *** [fmt.o] Error 1
This is a patch to fix the problem:
diff -ur src-4.5.2/src/fmt.c src-4.5.2-local/src/fmt.c
--- src-4.5.2/src/fmt.c 2002-09-24 10:50:20.000000000 +0200
+++ src-4.5.2-local/src/fmt.c 2002-10-12 14:28:48.000000000 +0200
@@ -134,10 +134,10 @@
const char *text; /* the text of the word */
int length; /* length of this word */
int space; /* the size of the following space */
- bool paren:1; /* starts with open paren */
- bool period:1; /* ends in [.?!])* */
- bool punct:1; /* ends in punctuation */
- bool final:1; /* end of sentence */
+ unsigned int paren:1; /* starts with open paren */
+ unsigned int period:1; /* ends in [.?!])* */
+ unsigned int punct:1; /* ends in punctuation */
+ unsigned int final:1; /* end of sentence */
/* The remaining fields are computed during the optimization. */
After fixing this the compile fails with a new error message:
cc-wrapper -DLOCALEDIR=\"/local/share/locale\"
-DSHAREDIR=\"/local/share\" -DHAVE_CONFIG_H
-I. -I. -I.. -I.. -I. -I../lib -I../lib -g -c `test -f 'pathchk.c'
|| echo './'`pathchk.c
cc: 1501-210 command option t contains an incorrect subargument
"pathchk.c", line 69.11: 1506-213 (S) Macro name
NEED_PATHCONF_WRAPPER cannot be redefined.
"pathchk.c", line 69.11: 1506-358 (I) "NEED_PATHCONF_WRAPPER" is
defined on line 61 of pathchk.c.
make[1]: *** [pathchk.o] Error 1
Here is a patch to fix that problem:
diff -ur src-4.5.2/src/pathchk.c src-4.5.2-local/src/pathchk.c
--- src-4.5.2/src/pathchk.c 2002-09-02 09:43:38.000000000 +0200
+++ src-4.5.2-local/src/pathchk.c 2002-10-12 14:58:05.000000000 +0200
@@ -66,7 +66,9 @@
# endif /* not PATH_MAX */
# ifndef NAME_MAX
# define NAME_MAX_FOR(p) pathconf_wrapper ((p), _PC_NAME_MAX);
-# define NEED_PATHCONF_WRAPPER 1
+# ifndef NEED_PATHCONF_WRAPPER
+# define NEED_PATHCONF_WRAPPER 1
+# endif
# endif /* not NAME_MAX */
#else
After fixing this I ran into another problem:
cc-wrapper -g -o pathchk pathchk.o ../lib/libfetish.a
../lib/libfetish.a
ld: 0711-317 ERROR: Undefined symbol: .pathconf_wrapper
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
make[1]: Leaving directory
`/usit/hufflepuff/local/store/hufflepuff/coreutils-c/src-4.5.2-rs6aix5/src'
make[1]: *** [pathchk] Error 8
I gave up after this.
I'll try to find time to keep porting this program to AIX later.
Please include the patches in the next version.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- coreutils 4.5.2 fail to build on AIX,
Petter Reinholdtsen <=