zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
To: "Zsh hackers list" <zsh-workers@sunsite.auc.dk>
Cc: Gene Cohler <gene@bear.com>
Subject: Re: dl.h/dlfnc.h clash in module.c RE: 3.1.6-dev-15
Date: Fri, 14 Jan 2000 19:09:52 +0000	[thread overview]
Message-ID: <E129Byx-00012x-00.2000-01-14-19-02-00@cmailg6.svr.pol.co.uk> (raw)
In-Reply-To: ""Andrej Borsenkow""'s message of "Thu, 13 Jan 2000 22:02:20 +0300." <000001bf5df8$b7dab6e0$21c9ca95@mow.siemens.ru>

"Andrej Borsenkow" wrote:
> O.K., looks, like my mail was lost.
> 
> I complained about inability to load complete.so (that depends on zle.so) in
> dev-14. It turned out to be patch from 9200, that changed
> 
> #ifdef HAVE_DLFNC_H
> #include <dlfnc.h>
> 
> into
> 
> #ifdef HAVE_DLFNC_H
> #ifdef HAVE_DL_H
> #include <dl.h>
> #else
> #include <dlfnc.h>
> #endif
> 
> Our system has dl.h that has nothing to do with dynamic locading (it is most
> probably from Double Linked lists). It results in RTLD_GLOBAL being undefined
> (defined to dummy value in module.c) - with obvious consequencies ...
> 
> The wording in 9200 was "HPUX 11.0 does not have dlfnc.h ..." - I fail to see
> how above patch fixes that.

The patch came from Gene Cohler <gene@bear.com> in 9211, and he'll have to
answer this, since most of us don't have access to HPUX 11.  I think the
point is it needs to prefer dl.h to dlfcn.h in that case, if both exist.
(Although I agree that if the problem *really* is that dlfnc.h *doesn't*
exist, HAVE_DLFNC_H oughtn't to be defined in the first place and something
screwy is happening.)  The solution may be to test something HP-specific.
Would changing the second line to

#if defined(HAVE_DL_H) && defined(__hpux)

suit everybody?

-- 
Peter Stephenson <pws@pwstephenson.fsnet.co.uk>


  reply	other threads:[~2000-01-14 19:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-13 18:36 3.1.6-dev-15 Peter Stephenson
2000-01-13 19:02 ` dl.h/dlfnc.h clash in module.c 3.1.6-dev-15 Andrej Borsenkow
2000-01-14 19:09   ` Peter Stephenson [this message]
2000-01-14 19:33   ` Gene Cohler
2000-01-13 19:14 ` 3.1.6-dev-15 Tanaka Akira
2000-01-15 19:21   ` 3.1.6-dev-15 Clint Adams
2000-01-14  7:06 ` 3.1.6-dev-15 Andrej Borsenkow
2000-01-14 19:10   ` 3.1.6-dev-15 Peter Stephenson

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=E129Byx-00012x-00.2000-01-14-19-02-00@cmailg6.svr.pol.co.uk \
    --to=pws@pwstephenson.fsnet.co.uk \
    --cc=gene@bear.com \
    --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).