compile error in hp-ux 11.23PA system with OpenSSH4.7p1
Douglas E. Engert
deengert at anl.gov
Wed Nov 14 00:44:32 EST 2007
leanne wrote:
>
> Hi all,
>
> I am compiling the OpenSSH4.7p1 on hp-ux PA11.23 system, however, it gives the following bug:
> cc +DD64 -I. -I. -I../include/openssl -I../include/tcpwrap -I../include/zlib -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -I/usr/local/include -I../include/gssapi -DSSHDIR=\"/opt/ssh/etc\" -D_PATH_SSH_PROGRAM=\"/opt/ssh/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/opt/ssh/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/opt/ssh/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/opt/ssh/libexec/ssh-keysign\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DSSH_RAND_HELPER=\"/opt/ssh/libexec/ssh-rand-helper\" -DHAVE_CONFIG_H -D__HP1123PA -DHP1123PA -c gss-serv-krb5.ccpp: "/usr/include/sys/xti.h", line 332: warning 2001: Redefinition of macro T_NULL.cpp: "/usr/include/sys/xti.h", line 341: warning 2001: Redefinition of macro T_UNSPEC.cc: "/usr/include/gssapi_krb5.h", line 54: error 1000: Unexpected symbol: "OM_uint32".cc: "/usr/include/gssapi_krb5.h", line 54: warning 557: Missing declaration specifiers, "int" assumed.cc: "/usr/include/gssap
i_krb5.h", line 59: error 1000: Unexpected symbol: "OM_uint32".cc: "/usr/include/gssapi_krb5.h", line 59: warning 557: Missing declaration specifiers, "int" assumed.cc: "/usr/include/gssapi_krb5.h", line 64: error 1000: Unexpected symbol: "OM_uint32".cc: "/usr/include/gssapi_krb5.h", line 64: warning 557: Missing declaration specifiers, "int" assumed.
>
> I checked the krb5client verison is:
> # what /usr/lib/libkrb5.sl/usr/lib/libkrb5.sl: $Revision: jazz @ 20070615.13:01:57IST; jmkvw -proj commands -RW -c Task: krbclnt_NCF_1.3.5.07 shuklahi_krbclnt_NCF_1.3.5.07 r11.23(R11.23_BL2007_0610) eso3_shuklahi_krbclnt_ncf_1.3.5.07(auto) ; HP Kerberos V5 1.3.5.07 Module: libkrb5.sl Date: Jun 15 2007 13:02:00
>
> Although it says that gssapi_krb5.h has an unexpected symbol, but at last, I compile successfully by adding a line in the gss-serv-krb5.c:
> --- gss-serv-krb5.c.bak 2007-11-08 11:25:34 +0800+++ gss-serv-krb5.c 2007-11-07 15:05:26 +0800@@ -28,6 +28,7 @@ #ifdef GSSAPI #ifdef KRB5+#define GSS_DLLIMP #include <sys/types.h>
> So is it a OpenSSH bug or a kerberos bug? If it's a OpenSSH bug, can you research it?
>
I would say its a HP bug, related to gss using OM_unint32 from xom.h as required by RFC.
We don't have any HPs anymore, but when we did we used OpenSSH-4.1 and
used to add these flags for 11.22 and 11.23:
ia64_hpux112*)
MYLDFLAGS="$MYLDFLAGS -Wl,+vnocompatwarnings,+b,/krb5/lib -Wl,+cdp,$MYSSL/lib:/krb5/lib,+cdp,$MYK5/lib:/krb5/lib"
MYWRAPPER="no"
MYRAND="--with-prngd-socket=yes"
# hpux 11.23 had xom.h, used to need to fix rpcsec_gss.h
# MYCPPFLAGS="$MYCPPFLAGS -DUSE_POSIX_THREADS -D__hpux -Dgss_OID_desc_struct=OM_object_identifier"
MYCPPFLAGS="$MYCPPFLAGS -DUNSUPPORTED_POSIX_THREADS_HACK -D__hpux"
;;
So try adding the -D__hpux
> Thanks!!
>
>
> Best Regards
> Lv Liangying
>
>
> _________________________________________________________________
> Windows Live Spaces 中最年轻的成员!
> http://miaomiaogarden2007.spaces.live.com/
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at mindrot.org
> https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev
--
Douglas E. Engert <DEEngert at anl.gov>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444
More information about the openssh-unix-dev
mailing list