zsh-workers
 help / color / mirror / code / Atom feed
* RE: AIX abd GCC
       [not found] <003c01c0ff0b$06c60de0$21c9ca95@mow.siemens.ru>
@ 2001-06-27 14:05 ` Timo Aaltonen
  2001-06-27 14:08   ` Andrej Borsenkow
  0 siblings, 1 reply; 7+ messages in thread
From: Timo Aaltonen @ 2001-06-27 14:05 UTC (permalink / raw)
  To: zsh-workers

On Wed, 27 Jun 2001, Andrej Borsenkow wrote:

> I give up. It looks like a GCC problem; are you sure this GCC is built for
> your AIX abd you have run fix-inclides?
> 
> If you are interested in pursuing this, post this on zsh-workers; if not -
> let it for somebody else who wants GCC working :-)

(discussion with Andrej: I tried to build zsh w. gcc-2.8.1 but it failed)

Hooray! Success! GCC3 compiled the whole goddamn thing without a glitch,
and it also seems to work flawlessly (including the tests). And to make
this day even more memorable, it works on both POWER and PowerPC
architectures =)



_______________/Timo Aaltonen <http://www.hut.fi/~tjaalton>
Work: HUT-Computing Centre - UNIX,  GSM +358-40-5549 618







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

* RE: AIX abd GCC
  2001-06-27 14:05 ` AIX abd GCC Timo Aaltonen
@ 2001-06-27 14:08   ` Andrej Borsenkow
  2001-06-27 14:29     ` Timo Aaltonen
  0 siblings, 1 reply; 7+ messages in thread
From: Andrej Borsenkow @ 2001-06-27 14:08 UTC (permalink / raw)
  To: Timo Aaltonen, zsh-workers


Did you use DLLDFLAGS=-shared or it worked OOTB?

Could you give exact configure invocation you used?

> 
> 
> On Wed, 27 Jun 2001, Andrej Borsenkow wrote:
> 
> > I give up. It looks like a GCC problem; are you sure this GCC 
> is built for
> > your AIX abd you have run fix-inclides?
> > 
> > If you are interested in pursuing this, post this on 
> zsh-workers; if not -
> > let it for somebody else who wants GCC working :-)
> 
> (discussion with Andrej: I tried to build zsh w. gcc-2.8.1 but it failed)
> 
> Hooray! Success! GCC3 compiled the whole goddamn thing without a glitch,
> and it also seems to work flawlessly (including the tests). And to make
> this day even more memorable, it works on both POWER and PowerPC
> architectures =)
> 
> 
> 
> _______________/Timo Aaltonen <http://www.hut.fi/~tjaalton>
> Work: HUT-Computing Centre - UNIX,  GSM +358-40-5549 618
> 
> 
> 
> 
> 
> 


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

* RE: AIX abd GCC
  2001-06-27 14:08   ` Andrej Borsenkow
@ 2001-06-27 14:29     ` Timo Aaltonen
  2001-06-27 14:37       ` Andrej Borsenkow
  0 siblings, 1 reply; 7+ messages in thread
From: Timo Aaltonen @ 2001-06-27 14:29 UTC (permalink / raw)
  To: zsh-workers

On Wed, 27 Jun 2001, Andrej Borsenkow wrote:

> 
> Did you use DLLDFLAGS=-shared or it worked OOTB?
>
> Could you give exact configure invocation you used?

Yes, that was the only trick I used..

..but it works also without it, OOTB.



_______________/Timo Aaltonen <http://www.hut.fi/~tjaalton>
Work: HUT-Computing Centre - UNIX,  GSM +358-40-5549 618




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

* RE: AIX abd GCC
  2001-06-27 14:29     ` Timo Aaltonen
@ 2001-06-27 14:37       ` Andrej Borsenkow
  2001-06-27 15:05         ` Timo Aaltonen
  0 siblings, 1 reply; 7+ messages in thread
From: Andrej Borsenkow @ 2001-06-27 14:37 UTC (permalink / raw)
  To: Timo Aaltonen, zsh-workers

>
> >
> > Did you use DLLDFLAGS=-shared or it worked OOTB?
> >
> > Could you give exact configure invocation you used?
>
> Yes, that was the only trick I used..
>
> ..but it works also without it, OOTB.
>

You mean, it even correctly finds boolcodes & friends?

Anyway, after reading AIX ld docs I am not happy with how we are doing it.
We do not actually build shared libraries (meaning shareable code) so every
zsh instance gets own copy of every loaded module.

Timo, could you do me a favour, update CVS and try the following patch. Just
go into zsh dir and do

cvs up -dP

then apply the patch. This should produce better code ... I hope.

Or should we just leave it as is?

-andrej

Index: zshconfig.ac
===================================================================
RCS file: /cvsroot/zsh/zsh/zshconfig.ac,v
retrieving revision 1.8
diff -u -r1.8 zshconfig.ac
--- zshconfig.ac        2001/06/19 06:59:24     1.8
+++ zshconfig.ac        2001/06/27 14:32:38
@@ -1535,6 +1535,11 @@
   DL_EXT="${DL_EXT=so}"
   DLLD="${DLLD=$CC}"
   zsh_cv_func_dlsym_needs_underscore=no
+  if test -n "$GCC"; then
+    DLLDFLAGS=${DLLDFLAGS=-shared}
+  else
+    DLLDFLAGS=${DLLDFLAGS=-bM:SRE}
+  fi
   DLLDFLAGS=${DLLDFLAGS=}
   EXTRA_LDFLAGS=${EXTRA_LDFLAGS=}
   EXPOPT=${LDARG}-bE:


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

* RE: AIX abd GCC
  2001-06-27 14:37       ` Andrej Borsenkow
@ 2001-06-27 15:05         ` Timo Aaltonen
  2001-06-27 15:15           ` Andrej Borsenkow
  0 siblings, 1 reply; 7+ messages in thread
From: Timo Aaltonen @ 2001-06-27 15:05 UTC (permalink / raw)
  To: zsh-workers

On Wed, 27 Jun 2001, Andrej Borsenkow wrote:

> > > Did you use DLLDFLAGS=-shared or it worked OOTB?
> > >
> > > Could you give exact configure invocation you used?
> >
> > Yes, that was the only trick I used..
> >
> > ..but it works also without it, OOTB.
> >
> 
> You mean, it even correctly finds boolcodes & friends?

Actually no... both broken in that respect.

> Anyway, after reading AIX ld docs I am not happy with how we are doing it.
> We do not actually build shared libraries (meaning shareable code) so every
> zsh instance gets own copy of every loaded module.
> 
> Timo, could you do me a favour, update CVS and try the following patch. Just
> go into zsh dir and do
> 
> cvs up -dP
> 
> then apply the patch. This should produce better code ... I hope.
> 
> Or should we just leave it as is?

CC="cc" ./configure :

        cc -qlanglvl=ansi -c -I.  -DHAVE_CONFIG_H -O  -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 `termcap.mdh'.
        cc -qlanglvl=ansi -c -I.  -DHAVE_CONFIG_H -O  -o termcap.o
termcap.c
"termcap.c", line 71.13: 1506-334 (S) Identifier boolcodes has already
been defined on line 1342 of "/usr/include/term.h".
make: The error code from the last command is 1.


Stop.
make: The error code from the last command is 1.


Stop.
make: The error code from the last command is 2.


Stop.
make: The error code from the last command is 1.


Stop.

this is old news

-----

CC="cc" LIBS=-ltermcap  ./configure

        cc -qlanglvl=ansi  -s -bM:SRE -o zleparameter.so -bI:zle.export
-bI:../../Src/zsh.export -bE:zleparameter.export -emodentry
zleparameter..o  ../../Src/modentry..o  -ldl -lm -ltermcap -lc 
Target "all" is up to date.
        (  echo 'STARTDEF()';  echo 'def(version)(0)('4.1.0-dev-0')';
echo 'def(date)(0)(''June 4, 2001'')';  echo 'ENDDEF()#' | tr '#' '\\';  )
> ./version.yo
        case zsh.1 in  */*) target=zsh.1 ;;  *) target=./zsh.1 ;;  esac;
case ': yodl' in :*) ;; *)  : yodl -I. -w zman.yo version.yo zsh.yo | sed
-e '1s/\\-/-/g' -e '/^\.'\''/d' > $target  ;; esac;  test -f $target
make: The error code from the last command is 1.


Stop.
make: The error code from the last command is 1.


Stop.


this is somethin new..



_______________/Timo Aaltonen <http://www.hut.fi/~tjaalton>
Work: HUT-Computing Centre - UNIX,  GSM +358-40-5549 618


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

* RE: AIX abd GCC
  2001-06-27 15:05         ` Timo Aaltonen
@ 2001-06-27 15:15           ` Andrej Borsenkow
  2001-06-27 15:26             ` Timo Aaltonen
  0 siblings, 1 reply; 7+ messages in thread
From: Andrej Borsenkow @ 2001-06-27 15:15 UTC (permalink / raw)
  To: Timo Aaltonen, zsh-workers


>
> > > > Did you use DLLDFLAGS=-shared or it worked OOTB?
> > > >
> > > > Could you give exact configure invocation you used?
> > >
> > > Yes, that was the only trick I used..
> > >
> > > ..but it works also without it, OOTB.
> > >
> >
> > You mean, it even correctly finds boolcodes & friends?
>
> Actually no... both broken in that respect.
>

So, you did use LIBS=-ltermcap?

>         cc -qlanglvl=ansi -c -I.  -DHAVE_CONFIG_H -O  -o termcap.o
> termcap.c
> "termcap.c", line 71.13: 1506-334 (S) Identifier boolcodes has already
> been defined on line 1342 of "/usr/include/term.h".
> make: The error code from the last command is 1.
>

Erm ... my patch was not aimed at it, so it was not expected to change.

>
> CC="cc" LIBS=-ltermcap  ./configure
>
>         cc -qlanglvl=ansi  -s -bM:SRE -o zleparameter.so -bI:zle.export
> -bI:../../Src/zsh.export -bE:zleparameter.export -emodentry
> zleparameter..o  ../../Src/modentry..o  -ldl -lm -ltermcap -lc
> Target "all" is up to date.
>         (  echo 'STARTDEF()';  echo 'def(version)(0)('4.1.0-dev-0')';
> echo 'def(date)(0)(''June 4, 2001'')';  echo 'ENDDEF()#' | tr '#' '\\';  )
> > ./version.yo
>         case zsh.1 in  */*) target=zsh.1 ;;  *) target=./zsh.1 ;;  esac;
> case ': yodl' in :*) ;; *)  : yodl -I. -w zman.yo version.yo zsh.yo | sed
> -e '1s/\\-/-/g' -e '/^\.'\''/d' > $target  ;; esac;  test -f $target
> make: The error code from the last command is 1.
>
>
> this is somethin new..
>

You need Yodl to build docs if you compile off CVS.

I guess, I apply this patch. So, the remaining problem is boolcodes.
Somewhat easy "fix" is to prefer termcap on AIX until somebody comes up with
better solution. Comments?

-andrej


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

* RE: AIX abd GCC
  2001-06-27 15:15           ` Andrej Borsenkow
@ 2001-06-27 15:26             ` Timo Aaltonen
  0 siblings, 0 replies; 7+ messages in thread
From: Timo Aaltonen @ 2001-06-27 15:26 UTC (permalink / raw)
  To: zsh-workers

On Wed, 27 Jun 2001, Andrej Borsenkow wrote:

> > > > > Did you use DLLDFLAGS=-shared or it worked OOTB?
> > > > >
> > > > > Could you give exact configure invocation you used?
> > > >
> > > > Yes, that was the only trick I used..
> > > >
> > > > ..but it works also without it, OOTB.
> > > >
> > >
> > > You mean, it even correctly finds boolcodes & friends?
> >
> > Actually no... both broken in that respect.
> >
> 
> So, you did use LIBS=-ltermcap?

No, not with gcc. It didn't seem to bother much though...



_______________/Timo Aaltonen <http://www.hut.fi/~tjaalton>
Work: HUT-Computing Centre - UNIX,  GSM +358-40-5549 618


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

end of thread, other threads:[~2001-06-27 15:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <003c01c0ff0b$06c60de0$21c9ca95@mow.siemens.ru>
2001-06-27 14:05 ` AIX abd GCC Timo Aaltonen
2001-06-27 14:08   ` Andrej Borsenkow
2001-06-27 14:29     ` Timo Aaltonen
2001-06-27 14:37       ` Andrej Borsenkow
2001-06-27 15:05         ` Timo Aaltonen
2001-06-27 15:15           ` Andrej Borsenkow
2001-06-27 15:26             ` Timo Aaltonen

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