zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <opk@u.genie.co.uk>
To: Zsh workers <zsh-workers@sunsite.auc.dk>
Subject: PATCH: Re: AIX and .export files again
Date: Thu, 16 Dec 1999 16:07:55 +0000	[thread overview]
Message-ID: <38590E5B.C98B5BA8@u.genie.co.uk> (raw)
In-Reply-To: <38567EFA.924D538D@u.genie.co.uk>

I wrote:
> Unfortunately, though this will now compile on AIX, it won't work: I get
> messages of the form 'failed to load module: rlimits'. pws-10 has this
> problem aswell but I haven't had much time to investigate why.

I've now investigated this problem. The problem results from the changes
in 8770 - the modules list containing both linked and dynamic modules
meant that load_and_bind tried to call AIX's loadbind for staticly
linked modules. The patch against module.c below fixes this.

Compiling pws-12 gave me one unresolved for zutil.so which was in
complete.so. The patch adds complete to zutil's dependencies. This
actually causes problems again with the .export file dependencies
because the complete module is in a different directory to zutil.
Hopefully Zefram's latest patch (9083) will sort that out though.

Oliver

*** Src/module.c.bak	Mon Dec  6 23:15:45 1999
--- Src/module.c	Thu Dec 16 15:48:55 1999
***************
*** 296,302 ****
  	int err = loadbind(0, (void *) addbuiltin, ret);
  	for (node = firstnode(modules); !err && node; incnode(node)) {
  	    Module m = (Module) getdata(node);
! 	    if (m->u.handle)
  		err |= loadbind(0, m->u.handle, ret);
  	}
  
--- 296,302 ----
  	int err = loadbind(0, (void *) addbuiltin, ret);
  	for (node = firstnode(modules); !err && node; incnode(node)) {
  	    Module m = (Module) getdata(node);
! 	    if (m->u.handle && !(m->flags & MOD_LINKED))
  		err |= loadbind(0, m->u.handle, ret);
  	}
  
*** Src/Modules/zutil.mdd.bak	Fri Dec 10 19:39:40 1999
--- Src/Modules/zutil.mdd	Thu Dec 16 14:06:21 1999
***************
*** 1,3 ****
--- 1,5 ----
+ moddeps="complete"
+ 
  objects="zutil.o"
  
  autobins="zformat zstyle"


      parent reply	other threads:[~1999-12-16 16:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-14 17:31 Oliver Kiddle
1999-12-15 18:12 ` Bart Schaefer
1999-12-16 16:07 ` Oliver Kiddle [this message]

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=38590E5B.C98B5BA8@u.genie.co.uk \
    --to=opk@u.genie.co.uk \
    --cc=zsh-workers@sunsite.auc.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).