zsh-workers
 help / color / mirror / code / Atom feed
* Problem compiling 3.1.9 under HP-UX 10.20
@ 2000-06-15 15:17 Matthew Lovell
  2000-07-03 17:49 ` Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew Lovell @ 2000-06-15 15:17 UTC (permalink / raw)
  To: Zsh Workers List

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.

zsh configuration
-----------------
zsh version               : 3.1.9
host operating system     : hppa2.0-hp-hpux10.20
source code location      : .
compiler                  : gcc
preprocessor flags        :
executable compiler flags :  -Wall -Wno-implicit -Wmissing-prototypes -O2
module compiler flags     :  -Wall -Wno-implicit -Wmissing-prototypes -O2 -fpic
executable linker flags   :   -s -Wl,-E
module linker flags       :   -s -b
library flags             : -lcurses -lm -lc
installation basename     : zsh
binary install path       : /opt/zsh-3.1.9/bin
man page install path     : /opt/zsh-3.1.9/man
info install path         : /opt/zsh-3.1.9/info
functions install path    : /opt/zsh-3.1.9/share/zsh/3.1.9/functions
installed functions       : Core/* Base/* Builtins/* User/* Commands/* Debian/* Linux/* Bsd/* AIX/* X/* Zle/* Prompts/* Misc/* Zftp/*  

gcc version 2.95.2 19991024 (release)

Results
-------
gcc -c -I.  -DHAVE_CONFIG_H -DMODULE -Wall -Wno-implicit -Wmissing-prototypes -O2 -fpic -o zftp..o zftp.c
zftp.c: In function `getipnodebyname':
zftp.c:211: `h_errno' undeclared (first use in this function)
zftp.c:211: (Each undeclared identifier is reported only once
zftp.c:211: for each function it appears in.)
zftp.c: In function `gethostbyname2':
zftp.c:223: `h_errno' undeclared (first use in this function)
zftp.c: In function `zfgetline':
zftp.c:726: warning: variable `added' might be clobbered by `longjmp' or `vfork'
zftp.c:728: warning: variable `pcur' might be clobbered by `longjmp' or `vfork'
zftp.c:724: warning: argument `lnsize' might be clobbered by `longjmp' or `vfork'
zftp.c: In function `zftp_open':
zftp.c:1847: warning: argument `args' might be clobbered by `longjmp' or `vfork'
zftp.c: In function `zftp_local':
zftp.c:2619: warning: long int format, off_t arg (arg 2) 


Looking on a Linux box, it looks like h_errno is declared in netdb.h.
My HP-UX version only defines that conditionally,

#ifdef _XOPEN_SOURCE_EXTENDED
extern int h_errno;
#endif    

I will give that a try and see if I'm more successful.  Perhaps that
define should be mentioned for HP-UX.

Please include me on any replies, as I'm not a member of zsh-workers. 
Zsh 3.1.9 is an amazing piece of work, BTW!  

Thanks,
  Matt

-- 
Matthew Lovell
HP Technical Solutions Lab
mailto:lovell@fc.hp.com


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

end of thread, other threads:[~2000-07-07 13:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-15 15:17 Problem compiling 3.1.9 under HP-UX 10.20 Matthew Lovell
2000-07-03 17:49 ` Peter Stephenson
2000-07-07  5:38   ` Bart Schaefer
2000-07-07 13:28     ` Gene Cohler

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