[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compile time error: bash 4.1 on HP-UX 11.31
From: |
Crowe, Edward |
Subject: |
Compile time error: bash 4.1 on HP-UX 11.31 |
Date: |
Fri, 20 Aug 2010 10:07:02 -0500 |
Hello,
I was trying to compile bash 4.1 for HP-UX 11.31 on Itanium with
HP's compiler (version: "(Bundled) cc: HP C/aC++ B3910B A.06.12 [Oct 11
2006]"). I ran ./configure without options and ran into the following
error.
(Bundled) cc: warning 922: "-g" is unsupported in the bundled compiler,
ignored.
"./printf.def", line 175: error #2147: declaration is incompatible with
"int vsnprintf(char *, size_t, const char *, __va_list)"
(declared
at line 693 of "/usr/include/stdio.h")
extern int vsnprintf __P((char *, size_t, const char *, ...))
__attribute__((__format__ (printf, 3, 4)));
^
1 error detected in the compilation of "printf.c".
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
I looked at builtins/printf.def, and since the vsnprintf definition
seemed optional in the #if/#endif, I commented it out like so:
/*#if !HAVE_VSNPRINTF
extern int vsnprintf __P((char *, size_t, const char *, ...))
__attribute__((__format__ (printf, 3, 4)));
#endif
*/
I re-ran make and it compiled without errors, and the resulting binary
seems to work just fine. Although, I haven't had time to test it too
much yet. Here's the diff:
# diff builtins/printf.def.original builtins/printf.def
174c174
< #if !HAVE_VSNPRINTF
---
> /*#if !HAVE_VSNPRINTF
176a177
> */
Thanks for all the great work!
Ed Crowe
"Why program by hand in five days
what you can spend five years of your life automating?"
- Terence Parr
- Compile time error: bash 4.1 on HP-UX 11.31,
Crowe, Edward <=