From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17544 invoked by alias); 6 Jan 2018 20:36:07 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23050 Received: (qmail 12149 invoked by uid 1010); 6 Jan 2018 20:36:07 -0000 X-Qmail-Scanner-Diagnostics: from mail-wm0-f44.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(74.125.82.44):SA:0(-0.9/5.0):. Processed in 1.879051 secs); 06 Jan 2018 20:36:07 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FREEMAIL_REPLYTO,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_PASS,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: linux.tech.guy@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to; bh=3oFppB4zif+qQAMMtukcNVW2wA2HJppmyQHdDmsNkyA=; b=CFtvAR3k3vykO1cfP8fA22wr5MV/S4MdoD7sezwCatGDRmfRAEXkRN9cKK/oNcBU0R upigX56Tfr9ecUeXW8aDmWeWZTWOWzPo2h665dS4m+wWDCQro++4tEo4IAzHxWzGlM9C VndvWrP9hk+GacuvWUShl1NpQzhiiZddvCpZGHuRMQUI62onG7Z6ponPVy5cjP+3riCx qfEl/wLz8/7dOQv2d3gHdUP+CXDkpkCpQQbVQteZsCspxWqStEqCyrJGaFkdshDbwLKW 9wlh02n4RnG2TSFvhWj18RreYo980qvQBcO7amSvSv8NNqKOQuD/KeAgaWZguCE+++VA WIZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to; bh=3oFppB4zif+qQAMMtukcNVW2wA2HJppmyQHdDmsNkyA=; b=mK2V5YB96p3p8QnR+WR9jj1CkcJYSFhEkLlnHdPSqTzPoi/GHTsp71R5JG+IjevI0s wGfYLF/ITTHFSXz48wwnRbXbZHEMG6CvFZgU8n4cpfYRQ5OUzxRY2BK/IAF2ebon7FlL yZ+Xq+4AUSDdbdRo2ODByL8qZUQ/hRG8LL6r8A+yEmtkCwZ/A8fpBfwPwLnVxCDs2aNX 6ROElP607AOJ/cDGU10ErDhPl9FdmTTvXmUfu09Gf1L8aD9Ihj2HRWrNFaUVCLRs5bhv chrEvTfBJplDhuWYShe4Nj55QmU5C1mq/mo9RuyOTo3w9nfBidY5LRX/FSIfm05nlhz2 Cfxg== X-Gm-Message-State: AKGB3mIN66zOPuXA0vKu4zeUjP0Z3AWKzVATiLAOSWKhQgBt3y5SkSD7 lXWX2tgNCBdafH+jUfaJsKrblqtWjbTaS0EGzW7hOA== X-Google-Smtp-Source: ACJfBova/AAJ1qJuTx4sXVIrsZjE3XNqOlsW1FLgmXNFJQw+IcifG04dvVVzQKxfC8zjqlfkm+7nwxEyCPF2MKuiq1U= X-Received: by 10.80.137.34 with SMTP id e31mr9790048ede.90.1515270960932; Sat, 06 Jan 2018 12:36:00 -0800 (PST) MIME-Version: 1.0 Reply-To: linuxtechguy@gmail.com In-Reply-To: References: From: Jim Date: Sat, 6 Jan 2018 14:36:00 -0600 Message-ID: Subject: Re: Zsh requires Bash? 2002 revisited To: zsh Content-Type: multipart/alternative; boundary="94eb2c0e48b65d6ac005622183fd" --94eb2c0e48b65d6ac005622183fd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Jan 6, 2018 at 11:23 AM, Bart Schaefer wrote: > On Sat, Jan 6, 2018 at 5:47 AM, Jim wrote: > > > > I had been testing different shells to be used as the default "sh" on > > my system. > > If this is failing in one of our scripts, as opposed to in a stock > autoconf test, we might be able to fix it; since it's "not exactly the > same" would you provide more details? > As I said I was testing different shells, it was by chance that /bin/sh and /bin/posh were linked when I started the build. I also tested dash, ksh, mksh, zsh and of course bash by linking them to /bin/sh in turn. The only time the zsh build failed was when /bin/sh and /bin/posh were linked. Last lines of make: make[3]: Leaving directory '/home/friartek/work/zsh/Repository/code/Src/Zle= ' make[2]: Leaving directory '/home/friartek/work/zsh/Repository/code/Src' mv: cannot stat =E2=80=98stamp-modobjs.tmp=E2=80=99: No such file or direct= ory Updated `stamp-modobjs'. make[2]: Entering directory '/home/friartek/work/zsh/Repository/code/Src' gawk -f ../Src/makepro.awk main.c Src > main.syms (echo '/* Generated automatically */'; sed -n '/^E/{s/^E//;p;}' < main.syms) \ > main.epro (echo '/* Generated automatically */'; sed -n '/^L/{s/^L//;p;}' < main.syms) \ > `echo main.epro | sed 's/\.epro$/.pro/'` gcc -c -I. -I../Src -DHAVE_CONFIG_H -Wall -Wmissing-prototypes -O2 -o main.o ./main.c make[2]: Leaving directory '/home/friartek/work/zsh/Repository/code/Src' make[2]: Entering directory '/home/friartek/work/zsh/Repository/code/Src' make[2]: Leaving directory '/home/friartek/work/zsh/Repository/code/Src' rm -f zsh gcc -s -rdynamic -o zsh main.o `cat stamp-modobjs` -lgdbm -L/usr/lib64 -lpcre -ldl -lncursesw -lrt -lm -lc cat: stamp-modobjs: No such file or directory main.o: In function `main': main.c:(.text.startup+0x1): undefined reference to `zsh_main' collect2: error: ld returned 1 exit status Makefile:227: recipe for target 'zsh' failed make[1]: *** [zsh] Error 1 make[1]: Leaving directory '/home/friartek/work/zsh/Repository/code/Src' Makefile:188: recipe for target 'all' failed make: *** [all] Error 1 The common thing I saw, between this output and the output of make from 2002 was the file name "stamp-modobjs". Coincidence? So my next step was to link sh to bash and verify that would allow the build to complete. It did. Sequence for each build of zsh-5.4.2-146-gc8e2f3c3d: git reset --hard HEAD git clean -f -d -x >/dev/null Util/preconfig configure make By the way, if there is a better way of preparing and doing builds, I'm open to suggestions. Also building on a newly created branch. Shell versions tested: posh: 0.12.6 mksh: @(#)MIRBSD KSH R56 2017/08/24 dash: 0.5.9.1-r3 ksh: Version ABIJM 93v- 2014-12-24 bash: 4.4.12(1)-release zsh: 5.3.1 Hope this was the info you needed. If you need more info, let me know. --94eb2c0e48b65d6ac005622183fd--