Mail Archives: cygwin/2009/03/16/22:56:32
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/
- Raw text -