bug-bash
[Top][All Lists]
Advanced

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

Re: siglist.c fails to compile for bash-5.1.8 on HP-UX


From: Chet Ramey
Subject: Re: siglist.c fails to compile for bash-5.1.8 on HP-UX
Date: Tue, 17 Aug 2021 10:36:45 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 8/17/21 8:03 AM, Osipov, Michael (LDA IT PLM) wrote:
> Folks,
> 
> my compiler (aCC) tells me:
>> /opt/aCC/bin/aCC -Ae  -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"ia64"'
>> -DCONF_OSTYPE='"hpux11.31"' -DCONF_MACHTYPE='"ia64-hp-hpux11.31"'
>> -DCONF_VENDOR='"hp"' -DLOCALEDIR='"/opt/ports/share/locale"'
>> -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H -DHPUX -DTGETENT_BROKEN
>> -DTGETFLAG_BROKEN   -I.  -I. -I./include -I./lib   -I/opt/ports/include
>> -g   -c siglist.c
>> "general.h", line 221: error #2020: identifier "WORD_DESC" is undefined
>>   typedef int sh_wdesc_func_t PARAMS((WORD_DESC *));
>>                                       ^
>>
>> "general.h", line 222: error #2020: identifier "WORD_LIST" is undefined
>>   typedef int sh_wlist_func_t PARAMS((WORD_LIST *));
>>                                       ^
>>
>> "general.h", line 240: error #2020: identifier "WORD_DESC" is undefined
>>   typedef int sh_wassign_func_t PARAMS((WORD_DESC *, int));
>>                                         ^
>>
>> "general.h", line 245: error #2020: identifier "WORD_LIST" is undefined
>>   typedef int sh_builtin_func_t PARAMS((WORD_LIST *)); /* sh_wlist_func_t */
>>                                         ^
>>
>> "general.h", line 323: error #2020: identifier "WORD_DESC" is undefined
>>   extern int check_identifier PARAMS((WORD_DESC *, int));
>>                                       ^
>>
>> 5 errors detected in the compilation of "siglist.c".
>> gmake: *** [Makefile:101: siglist.o] Error 2
> 
> Weird. I have added #include "command.h" right after chartypes.h in general.h
> 
> Known issue? Platform-specific?

I think this is an HP-UX specific issue. It's the rare system that lacks
sys_siglist *and* strsignal(), so any fix should be in siglist.c. Does
adding the include of command.h before including general.h in siglist.c
work?

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

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