From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076329121094.tru64-unix-managers.marc@archive.invalid> From: "Cenon B.C. Marana Jr." Date: Sat, 03 Feb 1996 20:42:02 +0000 To: tru64-unix-managers Subject: SUMMARY: XTACACS Compiling Error.. X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076329121094 The following people below deserve much of the credit: Henrik Johansson Ron Barrett Spider Boardman Below is my original question.. >I am currently trying to compile Xtacacs3.4 and am faced with this error. >Is there a patch perhaps somewhere or could someone give me some tips on >how to go with this one? --------------------------(start of error message)-------------------- OSF1 / $ make Making for OSF1 V2.0 OS_CFLAGS= -DDECOSF -DOSF1_ES and OS_LIBS= -lsecurity cc -c -g -DDEBUG -DLOG_FACILITY="LOG_LOCAL6" -DWTMP=\"/var/adm/xtacacs/wtmp\" -DUTMP=\"/var/adm/xtacacs/utmp\" -DDECOSF -DOSF1_ES -DCHAP_SUPPORT xtacacsd.c cc -c -g -DDEBUG -DLOG_FACILITY="LOG_LOCAL6" -DWTMP=\"/var/adm/xtacacs/wtmp\" -DUTMP=\"/var/adm/xtacacs/utmp\" -DDECOSF -DOSF1_ES -DCHAP_SUPPORT Getpw.c /usr/lib/cmplrs/cc/cfe: Error: Getpw.c, line 149: 'pw_comment' undefined, reoccurrences will not be reported pwp.pw_comment = ""; -------^ /usr/lib/cmplrs/cc/cfe: Error: Getpw.c, line 149: member of structure or union required pwp.pw_comment = ""; --------^ *** Exit 1 Stop. *** Exit 1 Stop. -------------------(end of file)--------------------------- Note that the XTACACS version that I was trying to compile was designed to work on enhanced security that was taken from: ftp://ftp.isys.hu/pub/osf1/xtacacsd-3.4.patched.tar.gz ftp://ftp.isys.hu/pub/osf1/xtacacs-3.4.osf1.patch.gz Attached below is the "hacked" /usr/include/pwd.h that is expected to work on the OSF/1 v2.0 ------------------(start of /usr/include/pwd.h)--------------------- /* * Copyright (c) 1988 The Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms are permitted * provided that the above copyright notice and this paragraph are * duplicated in all such forms and that any documentation, * advertising materials, and other materials related to such * distribution and use acknowledge that the software was developed * by the University of California, Berkeley. The name of the * University may not be used to endorse or promote products derived * from this software without specific prior written permission. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * * @(#)pwd.h 4.3 (Berkeley) 2/22/89 */ #define _PATH_PASSWD "/etc/passwd" #define _PATH_MASTERPASSWD "/etc/master.passwd" #define _PATH_MKPASSWD "/etc/mkpasswd" #define _PATH_PTMP "/etc/ptmp" #define _PW_KEYBYNAME '0' #define _PW_KEYBYUID '1' struct passwd { char *pw_name; /* user name */ char *pw_passwd; /* encrypted password */ int pw_uid; /* user uid */ int pw_gid; /* user gid */ long pw_change; /* password change time */ char *pw_class; /* user access class */ char *pw_gecos; /* Honeywell login info */ char *pw_dir; /* home directory */ char *pw_shell; /* default shell */ long pw_expire; /* account expiration */ char *pw_comment; }; struct passwd *getpwent(), *getpwuid(), *getpwnam(); void endpwent(), setpwfile(); int setpassent(), setpwent(); -------------------(end of /usr/include/pwd.h file)---------------------- Bonn :)