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

Compile of Zsh 4.0.1 on NetBSD/sparc64 fails..



[.. please keep me on cc:, i'm not subscribed ..]

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 parse.o pattern.o prompt.o signals.o signames.o string.o subst.o text.o utils.o watch.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  
hist.o(.text+0x510): relocation truncated to fit: R_SPARC_GOT13 hsubr  
hist.o(.text+0x51c): relocation truncated to fit: R_SPARC_GOT13 hsubl  
hist.o(.text+0x548): relocation truncated to fit: R_SPARC_GOT13 LLC0   
hist.o: In function `histsubchar':
hist.o(.text+0x58c): relocation truncated to fit: R_SPARC_GOT13 isfirstch
hist.o(.text+0x5a8): relocation truncated to fit: R_SPARC_GOT13 hatchar    
hist.o(.text+0x5c4): relocation truncated to fit: R_SPARC_GOT13 defev    
hist.o(.text+0x614): relocation truncated to fit: R_SPARC_GOT13 hsubl   
hist.o(.text+0x624): relocation truncated to fit: R_SPARC_GOT13 hsubr   
hist.o(.text+0x63c): relocation truncated to fit: R_SPARC_GOT13 isfirstch
hist.o(.text+0x7d0): relocation truncated to fit: R_SPARC_GOT13 mev.36
hist.o(.text+0x7dc): relocation truncated to fit: R_SPARC_GOT13 hsubl
hist.o(.text+0x7e8): relocation truncated to fit: R_SPARC_GOT13 marg.37
hist.o(.text+0x928): relocation truncated to fit: R_SPARC_GOT13 LLC1
hist.o(.text+0xa44): relocation truncated to fit: R_SPARC_GOT13 marg.37
hist.o(.text+0xa74): relocation truncated to fit: R_SPARC_GOT13 defev
hist.o(.text+0xaa8): relocation truncated to fit: R_SPARC_GOT13 defev
hist.o(.text+0xaac): relocation truncated to fit: R_SPARC_GOT13 mev.36  
hist.o(.text+0xc7c): relocation truncated to fit: R_SPARC_GOT13 LLC2    
hist.o(.text+0xc84): relocation truncated to fit: R_SPARC_GOT13 defev
hist.o(.text+0xdf0): relocation truncated to fit: R_SPARC_GOT13 marg.37   
hist.o(.text+0xe0c): relocation truncated to fit: R_SPARC_GOT13 mev.36   
hist.o(.text+0xf58): relocation truncated to fit: R_SPARC_GOT13 LLC3    
hist.o(.text+0xf7c): relocation truncated to fit: R_SPARC_GOT13 marg.37  
hist.o(.text+0x1538): relocation truncated to fit: R_SPARC_GOT13 histdone  
hist.o(.text+0x1568): relocation truncated to fit: R_SPARC_GOT13 LLC4
hist.o(.text+0x158c): relocation truncated to fit: R_SPARC_GOT13 LLC5   
hist.o(.text+0x15b0): relocation truncated to fit: R_SPARC_GOT13 LLC6   
[...]

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



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