From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23361 invoked from network); 2 Jun 2001 15:50:34 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 2 Jun 2001 15:50:34 -0000 Received: (qmail 26597 invoked by alias); 2 Jun 2001 15:50:13 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14685 Received: (qmail 26578 invoked from network); 2 Jun 2001 15:50:12 -0000 From: "Bart Schaefer" Message-Id: <1010602154909.ZM11443@candle.brasslantern.com> Date: Sat, 2 Jun 2001 15:49:09 +0000 X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: PATCH: "make check" with libzsh (e.g. FreeBSD) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In zsh-workers/14451, Andrej wrote: } } On Wed, 23 May 2001, Oliver Kiddle wrote: } } > x86 FreeBSD 4.2-stable } > } > make check yields several } > /usr/libexec/ld-elf.so.1: Shared object "libzsh-4.0.1-pre-5.so" not found } > } > It seems that make check uses a `make install.modules' but libzsh is } > installed as part of `make install.bin'. We need to fix this but I'm not } > sure I fully understand this part of the Makefiles. Isn't this an issue } > for cygwin? } > } } No, it was there long before. I suspect, that tests were never run on a } system that needed libzsh (or already installed version was silently } used). } } Exactly on Cygwin it runs correctly, because it tries first to find DLL in } the same directory as executable. Does this patch fix it? Unfortunately $(DLLD) is the only reasonable symbol to test that is available in Test/Makefile; $(LIBZSH) is defined in Src/Makefile.in only. So this may needlessly export LD_LIBRARY_PATH on a system that does not require libzsh, but that should be harmless, right? Index: Test/Makefile.in =================================================================== diff -c -r1.1.1.1 Test/Makefile.in --- Test/Makefile.in 2001/04/09 20:14:14 1.1.1.1 +++ Test/Makefile.in 2001/06/02 15:29:29 @@ -45,7 +45,11 @@ cd $(dir_top) && \ $(MAKE) MODDIR=`pwd`/$(subdir)/Modules install.modules > /dev/null; \ fi - -for f in $(sdir)/$(TESTNUM)*.ztst; do \ + -if test -n "$(DLLD)"; then \ + LD_LIBRARY_PATH="`cd $(dir_top); pwd`/Src:$$LD_LIBRARY_PATH"; \ + export LD_LIBRARY_PATH; \ + fi; \ + for f in $(sdir)/$(TESTNUM)*.ztst; do \ $(dir_top)/Src/zsh +Z -f $(sdir)/ztst.zsh $$f; \ done rm -rf Modules .zcompdump -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net