Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16349

Re: Arithmetic expansion in rediretion word is evaluated twice

From Oğuz <oguzismailuysal@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: Arithmetic expansion in rediretion word is evaluated twice
Date 2020-06-02 08:18 +0300
Message-ID <mailman.967.1591075128.2541.bug-bash@gnu.org> (permalink)
References <CAH7i3LppMnJky1g3Fm5N-qDTzG3Oz54VLtcFrk185pf=OUA7rA@mail.gmail.com> <f9664831-9f7d-2566-39fd-e2d30e2aea0b@case.edu> <CAH7i3Lqu3HgWv11oTYZj6C3z7wu2P7X0WCDr+Wa03k1HkuaAeg@mail.gmail.com> <CAH7i3LqhvGXAgDEe0=4L6E0U8xgXLXBfxWH8RjX66qZbyBaUvQ@mail.gmail.com>

Show all headers | View raw


Below is the error message from the compilation failure after git pull && make:

variables.o: In function `get_urandom':
/home/oguz/.local/src/bash/variables.c:1406: undefined reference to
`get_urandom32'
variables.o: In function `assign_random':
/home/oguz/.local/src/bash/variables.c:1356: undefined reference to `sbrand'
variables.o: In function `get_random_number':
/home/oguz/.local/src/bash/variables.c:1376: undefined reference to `brand'
/home/oguz/.local/src/bash/variables.c:1371: undefined reference to `seedrand'
/home/oguz/.local/src/bash/variables.c:1376: undefined reference to `brand'
variables.o: In function `initialize_shell_variables':
/home/oguz/.local/src/bash/variables.c:607: undefined reference to `seedrand'
/home/oguz/.local/src/bash/variables.c:608: undefined reference to `seedrand32'
collect2: error: ld returned 1 exit status
Makefile:581: recipe for target 'bash' failed
make: *** [bash] Error 1

On Mon, Jun 1, 2020 at 11:17 PM Oğuz <oguzismailuysal@gmail.com> wrote:
>
>
>
> 1 Haziran 2020 Pazartesi tarihinde Chet Ramey <chet.ramey@case.edu> yazdı:
>>
>> On 6/1/20 3:34 PM, Oğuz wrote:
>> > See:
>> >
>> >     $ unset foo
>> >     $ : <$((foo+=42))
>> >     bash: 84: No such file or directory
>> >     $ echo $foo
>> >     84
>> >
>> > Reproducible on 4.4.20 and 5.0.11, couldn't try on development version
>> > because since the last push it doesn't compile
>>
>> How about an error message from the compile failure?
>>
> It was something about underlying $RANDOM functions in variables.c, tomorrow I can mail the full error messages.
>
>> --
>> ``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/
>
>
>
> --
> Oğuz
>


-- 
Oğuz

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Arithmetic expansion in rediretion word is evaluated twice Oğuz <oguzismailuysal@gmail.com> - 2020-06-02 08:18 +0300

csiph-web