bug-bash
[Top][All Lists]
Advanced

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

Re: so-called pipe files (sh-np-*) do not get deleted when processes clo


From: Michael Felt
Subject: Re: so-called pipe files (sh-np-*) do not get deleted when processes close.
Date: Wed, 17 Mar 2021 10:20:23 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1


On 16/03/2021 16:21, Chet Ramey wrote:
On 3/16/21 11:07 AM, Michael Felt wrote:

On 16/03/2021 14:38, Chet Ramey wrote:
On 3/16/21 8:04 AM, Michael Felt wrote:

Decided to give bash-5.1 a try. I doubt it is major, but I get as far as:

"../../../src/bash-5.1.0/lib/sh/tmpfile.c", line 289.11: 1506-068 (W) Operation between types "char*" and "int" is not allowed.
ld: 0711-317 ERROR: Undefined symbol: .mkdtemp

Then how does configure find it? It's a POSIX function, and that file includes the appropriate headers.
Haven't looked at configure yet - but do not find it in the usual places:

root@x065:[/data/prj/gnu/bash/bash-5.0.18]grep mkdtemp /usr/include/*.h
root@x065:[/data/prj/gnu/bash/bash-5.0.18]grep mkdtemp /usr/include/sys/*.h

Also, not found on AIX 6.1 (TL9), but did find on AIX 7.1 TL4.

Sure, but configure checks for it, and bash only uses mkdtemp if configure
finds it. Why does configure find it?
Correct: configure did not find it. (captured stdout of ../src/bash-5.1.0/configure ...
checking for mkstemp... yes
checking for mkdtemp... no
checking for arc4random... no

Results in base directory:
config.h:/* Define if you have the mkdtemp function.  */
config.h:/* #undef HAVE_MKDTEMP */
config.log:configure:13967: checking for mkdtemp
config.log:ld: 0711-317 ERROR: Undefined symbol: .mkdtemp
config.log:| /* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp.
config.log:| #define mkdtemp innocuous_mkdtemp
config.log:|     which can conflict with char mkdtemp (); below.
config.log:| #undef mkdtemp
config.log:| char mkdtemp ();
config.log:| #if defined __stub_mkdtemp || defined __stub___mkdtemp
config.log:| return mkdtemp ();
config.log:ac_cv_func_mkdtemp=no
root@x065:[/data/prj/gnu/bash/bash-5.1.0]

Attaching both configure.out and make.(std)out as well as config.log and config.status.

Hope this helps!

Michael


Attachment: make.out
Description: Text document

Attachment: configure.out
Description: Text document

Attachment: config.status
Description: Text document

Attachment: config.log
Description: Text document

Attachment: OpenPGP_0x722BFDB61F396FC2.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

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