Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Compile of Zsh 4.0.1 on NetBSD/sparc64 fails..

> G'day,
> I can't get zsh 4.0.1 (or 3.1.9) to compile, or more
> specifically, link.  Sorry for the long lines:
> % make
> `complete.mdh' is up to date.
> rm -f stamp-modobjs.tmp
> gcc -c -I.  -DHAVE_CONFIG_H -Wall -Wno-implicit -Wmissing-prototypes -O2 -fpic 
> -o utils.o utils.c utils.c: In function `gettempname':                         
> utils.c:1106: warning: cast to pointer from integer of different size          
> gcc -c -I.  -DHAVE_CONFIG_H -Wall -Wno-implicit -Wmissing-prototypes -O2 -fpic 
> -o watch.o watch.c
> echo '' builtin.o compat.o cond.o exec.o glob.o hashtable.o hist.o init.o input
> .o jobs.o lex.o linklist.o loop.o math.o mem.o module.o options.o params.o pars
> e.o pattern.o prompt.o signals.o signames.o string.o subst.o text.o utils.o wat
> ch.o >> ../Src/stamp-modobjs.tmp
> Updated `stamp-modobjs'.
> rm -f libzsh-4.0.1.so
> gcc  -s -Wl,-x -shared --whole-archive -o libzsh-4.0.1.so  `cat stamp-modobjs` 
> -ltermcap -lm  -lc
> hist.o: In function `herrflush':                                     
> hist.o(.text+0x444): relocation truncated to fit: R_SPARC_GOT13 strin  
> hist.o: In function `getsubsargs':
> hist.o(.text+0x4fc): relocation truncated to fit: R_SPARC_GOT13 hsubr  
> hist.o(.text+0x500): relocation truncated to fit: R_SPARC_GOT13 hsubl  
> Log at http://www.physics.purdue.edu/~will/zsh-4.0.1.log ...
> Incidentally, there are two patches in the NetBSD
> pkgsrc/shells/zsh package which apparently solve this problem.
> See:
> http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/shells/zsh/patches/patch-aa
> http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/shells/zsh/patches/patch-ab
> Apparently both patches have been in that tree for ~4 years.  Does
> anyone feel like merging them into mainstream zsh to get rid of them?
> -- 
> wca

patch-ab uses -fPIC instead of -fpic for generating relocatable code.
-fpic will not work for some architectures.  See the documentation
for gcc.

Actually, that patch is only a couple of weeks old (since zsh was
updated to 4.0.1 -- the older zsh-3.0.8 didn't use dynamically
loadable modules).  zsh-3.0.8 has been relocated to pkgsrc/shells/zsh3
for the moment.


Jason Beegan

$NetBSD: patch-ab,v 1.4 2001/06/05 16:28:08 jtb Exp $

--- configure.orig	Fri Jun  1 14:52:49 2001
+++ configure
@@ -6771,7 +6771,7 @@
   if test -n "$GCC"; then
-    DLCFLAGS="${DLCFLAGS=-fpic}"
     case "$host_os" in
       hpux*)                 DLCFLAGS="${DLCFLAGS=+z}" ;;

Messages sorted by: Reverse Date, Date, Thread, Author