help-bash
[Top][All Lists]
Advanced

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

Re: Error while building the devel branch: relocatable.c:31: error: expe


From: Chet Ramey
Subject: Re: Error while building the devel branch: relocatable.c:31: error: expected identifier or '(' at end of input
Date: Fri, 30 Aug 2024 10:40:17 -0400
User-agent: Mozilla Thunderbird

On 8/30/24 4:13 AM, Eduardo A. Bustamante López wrote:
On Thu, Aug 29, 2024 at 06:08:22PM +0300, Yuri Kanivetsky wrote:
(...)
Can you explain what exactly is happening here? Is it an issue with
bash, fortify-headers or anything else? Judging from the `gcc -E`
output it looks like preprocessed relocatable.c ends with
__extension__, which is... an error? Is it because `#include_next
<stdlib.h>` produces no output? Why?

The problem seems to be the inclusion order of system headers on Alpine Linux.
If "wchar.h" is included prior to "stdlib.h", the '#include_next' directive for
"stdlib.h" produces no output.

Yes, that seems like an Alpine or musl/fortify problem. There's no
requirement that an application include anything (or not) before stdlib.h
or wchar.h. The system just needs to ensure that all the necessary symbols
are defined.

--
``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/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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