To anyone who can help,
I have been trying to get Openssh to work with AFS on my HP-UX 10.20
machines now for some time and have been unsuccessful. I have tried
several different versions of Openssh, starting with 2.3.0p1 and
Openssl 0.9.6. Although I can get Openssh to build with HP-UX easily
I can not get afs support to compile in. Currently I am working with
Openssh 2.9p2, Openssl 0.9.6b, Kerberos4 1.0.8 and Afs 3.4.574.
After working with the suggestions on the list for Solaris systems running
Afs as a baseline I have successfully resolved both the issue with the
erronious -ldes library being linked in by default and an issue where
the BIT_TYPES_DEFINED were defined both by Openssh and Kerberos. However
I keep returning to a roadblock as Openssh compiles that has been repeated
across multiple versions, namely the compile bombs out with an error
of the form:
cc +DAportable -Ae -L/adm -L/adm/lib -L/usr/local/lib
-I/adm/include -I/adm/include/openssl -I/usr/local/include -I/adm
-Ae -I. -I. -I/adm/include -D_HPUX_SOURCE -I/usr/athena/include
-I/usr/afsws/include -DETCDIR=\"/adm/etc\"
-D_PATH_SSH_PROGRAM=\"/adm/sbin/ssh\"
-D_PATH_SSH_ASKPASS_DEFAULT=\"/adm/sbin/ssh-askpass\"
-D_PATH_SFTP_SERVER=\"/adm/sbin/sftp-server\"
-D_PATH_SSH_PIDDIR=\"/var/run\" -DHAVE_CONFIG_H
-c auth-passwd.c
cpp: "values.h", line 27: warning 2001: Redefinition of macro MAXINT.
cc: "openbsd-compat/glob.h", line 48: warning 617: Redeclaration of tag
"stat" ignored.
cc: "auth-passwd.c", line 187: warning 527: Integral value implicitly
converted to pointer in assignment.
cc: "auth-passwd.c", line 188: error 1530: Undefined struct or union.
cc: "auth-passwd.c", line 188: error 1529: Cannot select field of non-structure.
cc: "auth-passwd.c", line 208: warning 527: Integral value implicitly
converted to pointer in assignment.
*** Error exit code 1
Stop.
---------------------------------------------------------------
The configure and compile options I am using are as follows:
./configure --with-ssl-dir=/adm --with-rsh=/usr/bin/remsh \
--with-kerberos4=/usr/athena --with-afs=/usr/afsws --with-tcp-wrappers \
--bindir=/adm/sbin --libexecdir=/adm/sbin \
--prefix=/adm --with-egd-pool=/var/run/egd-pool \
--with-default-path=/adm/sbin:/usr/sbin:/usr/lbin:/usr/bin \
--with-pid-dir=/var/run
OpenSSH has been configured with the following options:
User binaries: /adm/sbin
System binaries: /adm/sbin
Configuration files: /adm/etc
Askpass program: /adm/sbin/ssh-askpass
Manual pages: /adm/man/manX
PID file: /var/run
sshd default user PATH: /adm/sbin:/usr/sbin:/usr/lbin:/usr/bin
Random number collection: PRNGD/EGD (socket /var/run/egd-pool)
Manpage format: man
PAM support: no
KerberosIV support: yes
AFS support: yes
S/KEY support: no
TCP Wrappers support: yes
MD5 password support: no
IP address in $DISPLAY hack: yes
Use IPv4 by default hack: no
Translate v4 in v6 hack: no
Host: hppa2.0-hp-hpux10.20
Compiler: cc
Compiler flags: +DAportable -Ae -L/adm -L/adm/lib -L/usr/local/lib
-I/adm/include -I/adm/include/openssl -I/usr/local/include -I/adm
-Ae
Preprocessor flags: -I/adm/include -D_HPUX_SOURCE -I/usr/athena/include
-I/usr/afsws/include
Linker flags: -L/adm/lib +DAportable -Ae -L/adm -L/adm/lib
-L/usr/local/lib -I/adm/include -I/adm/include/openssl
-I/usr/local/include -I/adm -L/usr/athena/lib -L/usr/afsws/lib
Libraries: -lkafs -ldes -lkrb -lwrap -lz -lsec -lcrypto -ldes
(-ldes was removed from the various Makefiles _after_ configure
was run)
My environment settings:
CC=cc
CFLAGS="+DAportable -Ae -L/adm -L/adm/lib -L/usr/local/lib -I/adm/include
-I/adm/include/openssl -I/usr/local/include -I/adm"
LDFLAGS="+DAportable -Ae -L/adm -L/adm/lib -L/usr/local/lib -I/adm/include
-I/adm/include/openssl -I/usr/local/include -I/adm"
---------------------------------------------------------------------
After looking in "auth-passwd.c" I really can't figure out why my complier
can't figure out that this is appropriately defined - and, yes, I have tried
gcc as well (2.95.2) and encountered the same issue. Did something critical
get removed when "-ldes" or "BIT_TYPES_DEFINED" were removed? Or is there
some other issue I am not cognizant of at work here?
Any suggestions towards resolving this issue will be greatly appreciated.
-Robert Beswick
-----------------------------------------------------------------------
Robert Beswick,
Jet Propulsion Lab/NASA
Multi-Mission Navigation Operations,
System and Network Administration.
230-201P: x3-0539
Pager: 1-800-759-8888, pin #: 1365304, option 1#
E-Mail: [EMAIL PROTECTED]