zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Peter Stephenson <pws@cambridgesiliconradio.com>,
	zsh-workers@sunsite.auc.dk (Zsh hackers list),
	Matthew Lovell <lovell@fc.hp.com>
Subject: Re: Problem compiling 3.1.9 under HP-UX 10.20
Date: Fri, 7 Jul 2000 05:38:49 +0000	[thread overview]
Message-ID: <1000707053849.ZM28504@candle.brasslantern.com> (raw)
In-Reply-To: <0FX4007G6UV5CT@la-la.cambridgesiliconradio.com>

On Jul 3,  6:49pm, Peter Stephenson wrote:
} Subject: Re: Problem compiling 3.1.9 under HP-UX 10.20
}
} > Hi,
} > 
} > I've gotten zsh-3.1.9 to compile on my workstation, but only by
} > excluding zftp.  The etc/MACHINES file doesn't state anything special
} > about HP-UX.
} > zftp.c:211: `h_errno' undeclared (first use in this function)
} 
} Finally I made some time to look at this.  From the information above,
} this is the best I can do.

This patch has been bothering me ever since it appeared.

} +dnl Check for h_errno external variable
} +AC_CACHE_CHECK(if we need our own h_errno,
} +  zsh_cv_decl_h_errno_use_local,
} +  [AC_TRY_LINK( ,[extern int h_errno; h_errno = 0;],
} +  zsh_cv_decl_h_errno_use_local=no,
} +  zsh_cv_decl_h_errno_use_local=yes)])

That's testing whether it's possible to *link with* h_errno; if it is,
then we conclude that we need not declare it locally.

But the problem in zftp.c is that h_errno is not *declared* at compile
time, not that it's not *defined* at link time.  That would indicate to
me that zftp.c hasn't #included the correct header file.

So I don't understand how this patch could possibly solve the problem
that was reported.  Has anybody actually tried it yet, *on HP-UX*?

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


  reply	other threads:[~2000-07-07  5:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-06-15 15:17 Matthew Lovell
2000-07-03 17:49 ` Peter Stephenson
2000-07-07  5:38   ` Bart Schaefer [this message]
2000-07-07 13:28     ` Gene Cohler

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=1000707053849.ZM28504@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=lovell@fc.hp.com \
    --cc=pws@cambridgesiliconradio.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).