X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_40,J_CHICKENPOX_92,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <49BF21A5.1060209@gmail.com> Date: Tue, 17 Mar 2009 04:05:57 +0000 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: under cygwin, zsh cannot run when built against ncurses9-5.7-13 References: <20a807210903131414g62e0a53cyefd3938c3fe8af33 AT mail DOT gmail DOT com> <49BADAC1 DOT 80709 AT cwilson DOT fastmail DOT fm> <49BF1770 DOT 9020007 AT gmail DOT com> In-Reply-To: <49BF1770.9020007@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Dave Korn wrote: > I'm now going to try building it again, from scratch, but with the LDFLAGS > edited to a) remove "-lm -lc" and b) add "-Wl,--enable-auto-import". Let's > see if that improves things any. Right, works nicely. Also I discovered about "make install.modules" in the meantime, which helps, and now it just works: $ zsh --login (admin AT ubik)[1] ~ $ echo "Hello world from ZSH" Hello world from ZSH (admin AT ubik)[2] ~ $ exit $ echo $? 0 So, what I did was not suitable for upstream, but I'll leave you to work that one out with them. I ... a) Deleted these lines from configure.ac and regnerated configure: $ diff -pu zsh/zsh-4.3.9/configure.ac zsh3/zsh-4.3.9/configure.ac --- zsh/zsh-4.3.9/configure.ac 2008-10-30 13:04:44.000000000 +0000 +++ zsh3/zsh-4.3.9/configure.ac 2009-03-17 03:39:19.218750000 +0000 @@ -642,9 +642,10 @@ dnl in case they require objects that ex dnl and might not be compiled into the zsh executable. dnl On ReliantUNIX -lc better be the last library, else funny things dnl may happen. -AC_CHECK_LIB(c, printf, [LIBS="$LIBS -lc"]) - -AC_CHECK_LIB(m, pow) +dnl On cygwin this is a no-no +dnl AC_CHECK_LIB(c, printf, [LIBS="$LIBS -lc"]) +dnl +dnl AC_CHECK_LIB(m, pow) dnl Various features of ncurses depend on having the right header dnl (the system's own curses.h may well not be good enough). $ b) Modified the build script to enable auto import. $ diff -pu zsh/zsh-4.3.9-1.sh zsh3/zsh-4.3.9-1.sh --- zsh/zsh-4.3.9-1.sh 2009-03-17 02:22:13.875000000 +0000 +++ zsh3/zsh-4.3.9-1.sh 2009-03-17 03:45:06.828125000 +0000 @@ -105,6 +105,7 @@ conf() { --enable-multibyte \ --with-curses-terminfo \ --with-install-prefix=${instdir} \ + --enable-ldflags=-Wl,--enable-auto-import \ ${ZSHCONFDEBUG} ) } build() { $ Everything built and runs ok, and the testsuite reports: /usr/src/zsh3/zsh-4.3.9/Test/C02cond.ztst: starting. Warning: Not testing [[ -b blockdevice ]] (no devices found) Warning: Not testing [[ -f blockdevice ]] (no devices found) Warning: Not testing [[ -p pipe ]] (FIFOs not supported) Test /usr/src/zsh/zsh-4.3.9/Test/C02cond.ztst failed: bad status 1, expected 0 from: if (( EUID == 0 )); then print -u$ZTST_fd 'Warning: Not testing [[ ! -r file ]] (root reads anything) ' [[ -r zerolength && -r unmodish ]] else [[ -r zerolength && ! -r unmodish ]] fi Was testing: -r cond /usr/src/zsh3/zsh-4.3.9/Test/C02cond.ztst: test failed. /usr/src/zsh3/zsh-4.3.9/Test/V01zmodload.ztst: starting. *** /tmp/zsh.ztst.err.1400 Tue Mar 17 04:01:22 2009 --- /tmp/zsh.ztst.terr.1400 Tue Mar 17 04:01:23 2009 *************** *** 0 **** --- 1,2 ---- + (eval):3: failed to load module `zsh/net/tcp': No such process + (eval):3: failed to load module `zsh/net/tcp': No such process Test /usr/src/zsh3/zsh-4.3.9/Test/V01zmodload.ztst failed: error output differs from expected as shown above for: for m in $mods do zmodload -i $m || mods[(r)$m]=() done Was testing: Test loading of all compiled modules /usr/src/zsh3/zsh-4.3.9/Test/V01zmodload.ztst: test failed. ************************************** 34 successful test scripts, 2 failures, 1 skipped ************************************** -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/