zsh-workers
 help / color / mirror / code / Atom feed
* How-to AIX + dynamic zsh?
@ 2000-04-06 11:22 The Corridor
  2000-04-06 11:46 ` Oliver Kiddle
  0 siblings, 1 reply; 5+ messages in thread
From: The Corridor @ 2000-04-06 11:22 UTC (permalink / raw)
  To: zsh

If someone has any of these working on AIX:

   - dynamically loadable modules

   - shared library for zsh itself

email me directions of how you got it to work.

Thanks.


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

* Re: How-to AIX + dynamic zsh?
  2000-04-06 11:22 How-to AIX + dynamic zsh? The Corridor
@ 2000-04-06 11:46 ` Oliver Kiddle
       [not found]   ` <38EC9FF3.B12EE9BE@austin.ibm.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Oliver Kiddle @ 2000-04-06 11:46 UTC (permalink / raw)
  To: The Corridor; +Cc: zsh

The Corridor wrote:
> 
> If someone has any of these working on AIX:
>    - dynamically loadable modules
>    - shared library for zsh itself
> email me directions of how you got it to work.

I have exactly that working and I haven't needed to do anything
particularly special to achieve it.

I have the following set in my .zshenv although you really shouldn't
need them.

export CC="/bin/cc"
export CFLAGS="-O2"
export LDFLAGS="-s"

If you are running csh or tcsh to build zsh, you will need to type
something like setenv CC "/bin/cc"

Unpack the zsh source and run configure. I tend to use a couple of
parameters like --enable-functions-subdirs and
--enable-etcdir=/usr/local/etc but these shouldn't make a difference.

When configure has finished, run make.

Which version of zsh are you trying to build? Exactly what errors or
problems do you come up against - with details of that I can probably
work out what the problem is? If you are compiling 3.1.6-dev-21, you
will need my small patch to utils.c which was in message #10519. All it
does is add mod_export to to the definition of utils.c - AIX needs an
explicit list of all symbols shared between separate shared libraries.

Oliver Kiddle


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

* Re: How-to AIX + dynamic zsh?
       [not found]       ` <38ECAE56.97D758B3@austin.ibm.com>
@ 2000-04-07 12:23         ` Oliver Kiddle
       [not found]           ` <38EE00D8.82FE48C@austin.ibm.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Oliver Kiddle @ 2000-04-07 12:23 UTC (permalink / raw)
  To: dfavor; +Cc: Zsh workers

"David R. Favor" wrote:
>  
> It appears that configure is failing due to a missing alloca.h, which of
> course doesn't exist on AIX.

Yes, though judging by the messsage below that accompanies that failure,
it certainly seems to be the fact that it thinks you have a cross-compiler
which is causing the problem later.

> checking whether getpgrp takes no argument... configure: error: cannot check getpgrp if cross compiling

> Let me know if you can do an 'lslpp -f | more' and search for alloca.h and
> find one.

I don't have one anywhere - either by searching for it or looking with lslpp.

You probably want to try to find the part of configure which it runs
to determine if you are using a cross-compiler. From looking here it
seems that it compiles a small program ( main(){return(0); } and runs
it to determine if it is a cross-compiler. Something is causing it to
fail. The test looks something like:

if (./conftest; exit) 2>/dev/null; then
  ac_cv_prog_cc_cross=no
else
  ac_cv_prog_cc_cross=yes
fi

It would have to be that the compile has succeeded but running
./conftest fails here. You might be able to edit parts of configure
here to see what is happening. For a start, removing the redirection to
/dev/null might help.

> > In the meantime, you should be able to create a cache (config.cache)
> > file which tells configure that you don't have a cross-compiler and it
> > should then atleast compile.
> I've never done this. Take a look at the attached files and let me know
> how to get around this.

It seems that configure doesn't use the cache for the initial basic
tests so you can't do that but what you can do is edit the configure
script and change any line which reads ac_cv_prog_cc_cross=no to
assign 'yes' to it instead. That should trick it and allow you to
carry on with building zsh but it is probably still worth
investigating why it thinks you have a cross-compiler in the first
place - it might be a problem which affects later configure checks.

> checking host system type... powerpc-ibm-aix4.3.3.0
I'm using rs6000-ibm-aix3.2.5 so I guess there will be a few differences.

> configure:1140: checking whether the C compiler (xlc -ma -O2 -qmaxmem=16384 -s) is a cross-compiler
            ^^^^
Incase you didn't notice this number might be a useful cross-
reference to in the configure script.

Oliver Kiddle


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

* Re: How-to AIX + dynamic zsh?
       [not found]           ` <38EE00D8.82FE48C@austin.ibm.com>
@ 2000-04-07 16:11             ` Oliver Kiddle
  0 siblings, 0 replies; 5+ messages in thread
From: Oliver Kiddle @ 2000-04-07 16:11 UTC (permalink / raw)
  To: dfavor; +Cc: Zsh workers

"David R. Favor" wrote:
> 
> The weirdest thing... I took out the /dev/null and the error
> message was about being unable to load libc.a, which is strange.
> 
> I put LIBPATH=/lib in the (./conftest; exit) and it worked. I
> have no idea what is going on, but at least I'm past this hurdle.

That is weird. I can't think what might have caused it other than
something like a bug in the compiler or problem with your AIX
installation.

"David R. Favor" wrote:
> 
> Well I did get a clean compile, but have several questions.
> 
> First, if I do a 'dump -Hv' there is no shared library. Is
> there suppose to be a libzsh.foo.so are something like that?

It doesn't work like that. It creates a number of shared libraries for
different things, the idea being that only those which are actually
being used are loaded. They are dynamically loaded at runtime when they
are needed. If you install zsh with make install, it will install these
into /usr/local/lib/zsh/3.1.6-dev-21 (assuming you didn't specify a
different directory with configure). 

> Next, subshells seem to hang, when using ksh grammar. Could
> you try the following in your latest *-21 shell:
> 
>    emulate -R ksh
>    echo $(hostname)
> 
> and see if that works.

That works fine here. Can the zsh definitely find all its shared
libraries. The emulate command basically sets a number of options. If
you try to isolate the option which causes the problem, it might make it
easier to see where the bug is (if that's what it is). I've copied this
to the mailing list so maybe someone else there has an idea.

Oliver


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

* Re: How-to AIX + dynamic zsh?
@ 2000-04-06 12:56 The Corridor
  0 siblings, 0 replies; 5+ messages in thread
From: The Corridor @ 2000-04-06 12:56 UTC (permalink / raw)
  To: zsh

(Sending again due to mail problems. May be a duplicate.)

Oliver Kiddle wrote:
> 
> The Corridor wrote:
> >
> > If someone has any of these working on AIX:
> >    - dynamically loadable modules
> >    - shared library for zsh itself
> > email me directions of how you got it to work.
> 
> I have exactly that working and I haven't needed to do anything
> particularly special to achieve it.
> 
> I have the following set in my .zshenv although you really shouldn't
> need them.
> 
> export CC="/bin/cc"
> export CFLAGS="-O2"
> export LDFLAGS="-s"
> 
> If you are running csh or tcsh to build zsh, you will need to type
> something like setenv CC "/bin/cc"
> 
> Unpack the zsh source and run configure. I tend to use a couple of
> parameters like --enable-functions-subdirs and
> --enable-etcdir=/usr/local/etc but these shouldn't make a difference.
> 
> When configure has finished, run make.
> 
> Which version of zsh are you trying to build? Exactly what errors or
> problems do you come up against - with details of that I can probably
> work out what the problem is? If you are compiling 3.1.6-dev-21, you
> will need my small patch to utils.c which was in message #10519. All it
> does is add mod_export to to the definition of utils.c - AIX needs an
> explicit list of all symbols shared between separate shared libraries.

Great!

Drop me a copy of your patch or point me to where I can pick it up off
the Web. I am behind a firewall, so I will need another option besides
direct CVS.

Thanks.


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

end of thread, other threads:[~2000-04-07 16:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-06 11:22 How-to AIX + dynamic zsh? The Corridor
2000-04-06 11:46 ` Oliver Kiddle
     [not found]   ` <38EC9FF3.B12EE9BE@austin.ibm.com>
     [not found]     ` <38ECA546.107A6D91@u.genie.co.uk>
     [not found]       ` <38ECAE56.97D758B3@austin.ibm.com>
2000-04-07 12:23         ` Oliver Kiddle
     [not found]           ` <38EE00D8.82FE48C@austin.ibm.com>
2000-04-07 16:11             ` Oliver Kiddle
2000-04-06 12:56 The Corridor

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