SUMMARY: XTACACS Compiling Error..

From: Cenon B.C. Marana Jr. <bonn_at_durian.usc.edu.ph>
Date: Sun, 4 Feb 1996 04:42:02 +0800 (HKT)

The following people below deserve much of the credit:

Henrik Johansson <hj_at_one.se>
Ron Barrett <ron_barrett_at_corp.cubic.com>
Spider Boardman <spider_at_orb.nashua.nh.us>


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.
 *
 * _at_(#)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
:)
Received on Sat Feb 03 1996 - 21:57:51 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT