zsh-workers
 help / color / mirror / code / Atom feed
* zsh-4.3.1 build failure on AIX
@ 2006-03-01 10:09 François-Xavier Coudert
  2006-03-01 11:00 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: François-Xavier Coudert @ 2006-03-01 10:09 UTC (permalink / raw)
  To: zsh-workers

Trying to build zsh-4.3.1 on AIX 5.3, with either gcc (3.2.3) or xlc,
leads to a build failure:

gcc  -s -shared -o zle.so -Wl,-bI:../../Src/zsh.export
-Wl,-bE:zle.export -emodentry zle_bindings..o zle_hist..o
zle_keymap..o zle_main..o zle_misc..o zle_move..o zle_params..o
zle_refresh..o zle_thingy..o zle_tricky..o zle_utils..o zle_vi..o
zle_word..o  ../../Src/modentry..o  -liconv -ldl -lcurses -lm  -lc
ld: 0711-317 ERROR: Undefined symbol: .makecommaspecial
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
gmake[3]: *** [zle.so] Error 1
gmake[3]: Leaving directory `/tmp/zsh-4.3.1-gcc/Src/Zle'
gmake[2]: *** [modules] Error 1
gmake[2]: Leaving directory `/tmp/zsh-4.3.1-gcc/Src'
gmake[1]: *** [modules] Error 2
gmake[1]: Leaving directory `/tmp/zsh-4.3.1-gcc/Src'
gmake: *** [all] Error 1

or

xlc  -s -bM:SRE -o zle.so -bI:../../Src/zsh.export -bE:zle.export
-emodentry zle_bindings..o zle_hist..o zle_keymap..o zle_main..o
zle_misc..o zle_move..o zle_params..o zle_refresh..o zle_thingy..o
zle_tricky..o zle_utils..o zle_vi..o zle_word..o 
../../Src/modentry..o  -liconv -ldl -lcurses -lm  -lc
ld: 0711-317 ERROR: Undefined symbol: .makecommaspecial
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
gmake[3]: *** [zle.so] Error 8
gmake[3]: Leaving directory `/tmp/zsh-4.3.1-xlc/Src/Zle'
gmake[2]: *** [modules] Error 1
gmake[2]: Leaving directory `/tmp/zsh-4.3.1-xlc/Src'
gmake[1]: *** [modules] Error 2
gmake[1]: Leaving directory `/tmp/zsh-4.3.1-xlc/Src'
gmake: *** [all] Error 1

Both are configured with "./configure
--prefix=/regatt/lcp/coudert/local --enable-multibyte", the first one
with CC=gcc and the second one with CC=xlc.

Adding a line with "makecommaspecial" in Src/zsh.export makes the
compilation work again. I  think the correct patch would be to change
(in Src/utils.c):

*** ../zsh-4.3.1-xlc/Src/utils.c        Tue Feb 14 11:39:00 2006
--- Src/utils.c Wed Mar  1 11:09:10 2006
***************
*** 2623,2629 ****
  }

  /**/
! void
  makecommaspecial(int yesno)
  {
      if ((specialcomma = yesno) != 0)
--- 2623,2629 ----
  }

  /**/
! mod_export void
  makecommaspecial(int yesno)
  {
      if ((specialcomma = yesno) != 0)



Once compiled with that patch applied, zsh-4.3.1 seems to work fine
(for both compilers).

FX


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: zsh-4.3.1 build failure on AIX
  2006-03-01 10:09 zsh-4.3.1 build failure on AIX François-Xavier Coudert
@ 2006-03-01 11:00 ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2006-03-01 11:00 UTC (permalink / raw)
  To: zsh-workers

"=?ISO-8859-1?Q?Fran=E7ois-Xavier_Coudert?=" wrote:
> Trying to build zsh-4.3.1 on AIX 5.3, with either gcc (3.2.3) or xlc,
> leads to a build failure:

This is my fault: I've got a script (Util/check_exports) to check for
missing mod_export declarations that I should have run.  It looks like
the one you found is the only one.

I'll produce a 4.3.2 with the compilation tweaks in a day or so.

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


To access the latest news from CSR copy this link into a web browser:  http://www.csr.com/email_sig.php


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-03-01 11:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-01 10:09 zsh-4.3.1 build failure on AIX François-Xavier Coudert
2006-03-01 11:00 ` Peter Stephenson

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).