From: Jason Beegan <jtb@netbsd.org>
To: Will Andrews <will@physics.purdue.edu>
Cc: zsh-users@sunsite.dk, jtb@NetBSD.org
Subject: Re: Compile of Zsh 4.0.1 on NetBSD/sparc64 fails..
Date: Sun, 17 Jun 2001 14:26:04 +0000 [thread overview]
Message-ID: <20010617142604.1RFPCZf4jNsIxGyvp1DQh79HiBgoTNUs0R1ejIXDi58@z> (raw)
In-Reply-To: Message from Will Andrews <will@physics.purdue.edu> of "Sun, 17 Jun 2001 05:55:38 EST." <20010617055538.X49931@bohr.physics.purdue.edu>
[....]
> 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.
Regards,
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 @@
DLLDARG=""
fi
if test -n "$GCC"; then
- DLCFLAGS="${DLCFLAGS=-fpic}"
+ DLCFLAGS="${DLCFLAGS=-fPIC}"
else
case "$host_os" in
hpux*) DLCFLAGS="${DLCFLAGS=+z}" ;;
next prev parent reply other threads:[~2001-06-17 13:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-17 10:55 Will Andrews
2001-06-17 14:26 ` Jason Beegan [this message]
[not found] <200106171325.f5HDPHc07916@david.siemens.de>
2001-06-17 17:26 ` Andrej Borsenkow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010617142604.1RFPCZf4jNsIxGyvp1DQh79HiBgoTNUs0R1ejIXDi58@z \
--to=jtb@netbsd.org \
--cc=will@physics.purdue.edu \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).