Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

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.

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@xxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author