Great Circle Associates Majordomo-Users
(September 1995)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Compiling wrapper problem on Irix 5.3
From: kbfoster @ remora . ssp . nmfs . gov (Karen Brown Foster)
Date: Wed, 27 Sep 1995 08:15:19 -0400
To: Jason Vagner <jason @ asu . edu>, majordomo-users @ greatcircle . com
In-reply-to: Jason Vagner <jason@asu.edu> "Compiling wrapper problem on Irix 5.3" (Sep 26, 10:57am)
References: <9509261057.ZM3288@earthvision>

The following is a list of things that I had to do to get wrapper to compile on
our Indigo 2 running IRIX 5.3.  First of all I have majordomo 1.93 and Perl
version 4.036.

Here goes:

  (1)  I created user majordom and group majordom
  (2)  The home directory of majordom is /usr1/apps/majordomo

Changes to Makefile

  (1)  W_BIN is set to /usr1/apps/majordomo
  (2)  I had to add /usr/bsd to the W_PATH statement to find the hostname
command.
  (3)  Make sure that W_UID and W_GID is equal to the uid and gid of your
majordom user account.
  (4)  In the wrapper section of the Makefile, add the -cckr flag to the $(CC)
line, i.e., $(CC) $(WRAPPER_FLAGS) -cckr -o wrapper wrapper.c


Changes to the wrapper.c file

  (1)  Add the following line #include <string.h> right after the line
#include <stdio.h>


Changes to other Perl scripts

  (1)  After compiling the programs, i.e.
       make wrapper as user majordom
       make install as majordom
       make install-archive2 as majordom (if you will be archiving)
       make install-wrapper as root

  Make change to request-answer script per instructions in the majordomo FAQ
  Set up a symbolic link between $HOME/majordomo.cf and /etc/majordomo.cf, i.e.

    ln -s /usr1/apps/majordomo/majordomo.cf /etc/majordomo.cf

I found corrections to many of the problems that I was having in the majordomo
FAQ.  This is an excellent document!!!!!

I will include copies of all of the important files and this should get you set
up.

**************************
** /etc/aliases
**************************

#########################################################################
#
#  Aliases in this file will NOT be expanded in the header from
#  Mail, but WILL be visible over networks or from /bin/mail.
#
#	>>>>>>>>>>	The program "newaliases" must be run after
#	>> NOTE >>	this file is updated for any changes to
#	>>>>>>>>>>	show through to sendmail.
#
#########################################################################

# start of common aliases--do not remove this line

# Add the following alias to enable NIS aliases.  If enabled, the
#	NIS database defines anything not defined in this file.
#+:+

# Alias for mailer daemon
MAILER-DAEMON:postmaster

# send mail likely to be lost to the mail server
rootcsh:postmaster
rootsh:postmaster
setup:postmaster
powerdown:postmaster
sysadm:postmaster
daemon:postmaster
bin:postmaster
sys:postmaster
adm:postmaster
lp:postmaster
uucpws:postmaster
uucp:postmaster
uucpadm:postmaster
nuucp:postmaster
rje:postmaster
man:postmaster
diag:postmaster
tutor:postmaster
demos:postmaster
mexdemos:postmaster
guest:postmaster
games:postmaster
auditor:postmaster
dbadmin:postmaster
rfindd:postmaster
tour:postmaster
4Dgifts:postmaster

# Following alias is required by RFC 822
#	You should change 'root' in the first line below to the administrator
#	of this machine, and un-comment the following line.
postmaster:root
#root:postmaster

# Aliases to handle mail to msgs and news
nobody: /dev/null

# end of common aliases--do not remove this line

owner-owner: postmaster
#
# Majordomo
#
majordomo: "|/usr1/apps/majordomo/wrapper majordomo"
owner-majordomo: kbfoster, nobody
majordom: owner-majordomo

#Needed "just in case" for Majordomo version 1.9x:
#Majordomo-Owner: owner-majordomo

############################
# Test mailing list (admins)
############################

owner-admins: kbfoster, nobody
admins: "|/usr1/apps/majordomo/wrapper resend -l admins
   -h remora.ssp.nmfs.gov admins-outgoing"
admins-approval: owner-admins
admins-outgoing:
   :include:/usr1/apps/majordomo/lists/admins, admins-archive
owner-admins-outgoing: owner-admins
admins-archive: "|/usr1/apps/majordomo/wrapper archive
   -f /usr1/apps/majordomo/archives/admins/admins -d -a"
owner-admins-archive: owner-admins
admins-request:
   "|/usr1/apps/majordomo/wrapper request-answer admins"
owner-admins-request: owner-admins


####################
# econ mailing list
####################

owner-econ: Amy_Buss_Gautam@ssp.nmfs.gov, nobody
econ: "|/usr1/apps/majordomo/wrapper resend -l econ
   -h remora.ssp.nmfs.gov econ-outgoing"
econ-approval: owner-econ
econ-outgoing:
   :include:/usr1/apps/majordomo/lists/econ, econ-archive
owner-econ-outgoing: owner-econ
econ-archive: "|/usr1/apps/majordomo/wrapper archive
   -f /usr1/apps/majordomo/archives/econ/econ -d -a"
owner-econ-archive: owner-econ
econ-request:
   "|/usr1/apps/majordomo/wrapper request-answer econ"
owner-econ-request: owner-econ

*********************
** /etc/majordomo.cf
*********************

# $whereami -- What machine am I running on?
$whereami = "remora.ssp.nmfs.gov";

# $whoami -- Who do users send requests to me as?
$whoami = "Majordomo@$whereami";

# $whoami_owner -- Who is the owner of the above, in case of problems?
$whoami_owner = "Majordomo-Owner@$whereami";

# $homedir -- Where can I find my extra .pl files, like majordomo.pl?
# the environment variable HOME is set by the wrapper
if ( defined $ENV{"HOME"}) {
     $homedir = $ENV{"HOME"};
} else {
     $homedir = "/usr1/apps/majordomo";
}

# $listdir -- Where are the mailing lists?
$listdir = "/usr1/apps/majordomo/lists";

# $digest_work_dir -- the parent directory for digest's queue area
# Each list must have a subdirectory under this directory in order for
# digest to work. E.G. The bblisa list would use:
# 	/usr/local/mail/digest/bblisa
# as its directory.
#$digest_work_dir = '/usr/local/mail/digest';

# $log -- Where do I write my log?
$log = "/usr1/apps/majordomo/Log";

# $mailer -- What program and args do I use to send mail?
# The variable $to can be interpolated into this command line,
# however the $to variable is provided by the person sending mail,
# and much mischief can be had by playing with this variable.
# Use $to with care.
$mailer = "/usr/lib/sendmail -f\$sender -t";

# Majordomo will look for "get" and "index" files related to $list in
# directory "$filedir/$list$filedir_suffix", so set $filedir and
# $filedir_suffix appropriately.  For instance, to look in
# /usr/local/mail/files/$list, use:
#   $filedir = "/usr/local/mail/files";
#   $filedir_suffix = "";		# empty string
# or to look in $listdir/$list.archive, use:
#   $filedir = "$listdir";
#   $filedir_suffix = ".archive";

$filedir = "/usr1/apps/majordomo/archives";
$filedir_suffix = "";

# What command should I use to process an "index" request?
$index_command = "/bin/ls -lRL";

# If you want to use FTPMAIL, rather than local access, for file transfer
# and access, define the following:
#   $ftpmail_address = "ftpmail@decwrl.dec.com";
#   $ftpmail_location = "FTP.$whereami";

# if you want the subject of the request to be included as part of the
# subject of the reply (useful when automatically testing, or submitting
# multiple command sets), set $return_subject to 1.
$return_subject = 1;

# If you are using majordomo at the -request address, set the
# following variable to 1. This affects the welcome message that is
# sent to a new subscriber as well as the help text that is generated.
$majordomo_request = 0;

# Set the umask for the process. Used to set default file status for
# config file.
umask(007);

# the safe locations for archive directories. This should be defined as
# a series of root anchored directory paths as will be used as prefixes
# to the file names specified to the archive2.pl script.
@archive_dirs = ( "/usr1/apps/majordomo/archives/admins",
"/usr1/apps/majordomo/archives/econ");


# Set this to 1 if you want to use the experimental mechanism for allowing
# / in user names. People with lots of X.400 addresses on their lists or
# HP mail whatever may want to set this. However use it at your own risk.
$analyze_slash_in_address = 0;

#
# these tune the experimental matching that is done for addresses with / in
# them. If you haven't turned on the experimental analyze_slash_in_address
# they are ignored. See the source for full explanation of these variables.
#
# if set to 1 ignore the requirement that addresses have an @ sign in the
# address component after the last /.
$no_x400at=0;
# if set to 1 do not look for "/c=" and "/ad=" or "/am=" in the address.
# X.400 seems to require these components.
$no_true_x400=0;

1;
# $Header: /sources/cvsrepos/majordomo/sample.cf,v 1.4.2.1.2.2 1995/01/07
17:35:03 rouilj Exp $

*************************************
** ~majordom/majordomo-1.93/Makefile
*************************************

# $Source: /sources/cvsrepos/majordomo/Makefile,v $
# $Revision: 1.21.2.2.2.8 $
# $Date: 1995/01/07 18:06:48 $
# $Author: rouilj $
# $State: Exp $
#
# $Header: /sources/cvsrepos/majordomo/Makefile,v 1.21.2.2.2.8 1995/01/07
18:06:48 rouilj Exp $
#
# $Locker:  $
#


# this makefile installs the following structure for the bsd universe:
# (root is W_BIN below)
#    root -+--          -- actual majordomo scripts, libraries etc
#	   +-- Tools    -- tools like archive
#	   +-- bin      -- user level tools, approve, bounce etc
#	   +-- man      -- man pages
#

# This is where "wrapper" looks for the programs it's supposed to run.
W_BIN=/usr1/apps/majordomo

# This is the environment that (along with LOGNAME and USER inherited from the
# parent process, and without the leading "W_" in the variable names) gets
# passed to processes run by "wrapper"

W_PATH=/bin:/usr/bin:/usr/ucb:/usr/bsd
W_HOME=${W_BIN}
W_SHELL=/bin/ksh
W_MAJORDOMO_CF=$(W_BIN)/majordomo.cf

# Use these settings for BSD-based systems, including SunOS 4.x.  If you're
# using a POSIX-compliant system (including SysV and BSDI), comment these
# settings out, and uncomment the POSIX settings below.
#W_USER=daemon
#W_GROUP=majordom
#W_CHOWN=${W_USER}.${W_GROUP}
#W_CHMOD=6755
#WRAPPER_FLAGS = -DBIN=\"${W_BIN}\" -DPATH=\"PATH=${W_PATH}\"	\
#	-DHOME=\"HOME=${W_HOME}\" -DSHELL=\"SHELL=${W_SHELL}\"	\
#	-DMAJORDOMO_CF=\"MAJORDOMO_CF=${W_MAJORDOMO_CF}\"

# If you're using a POSIX-compliant system, uncomment this set of parameters
# and comment out the BSD settings above.
#
#
W_UID = 1112
W_GID = 200
W_CHOWN=root
W_CHMOD=4755
WRAPPER_FLAGS = -DBIN=\"${W_BIN}\" -DPATH=\"PATH=${W_PATH}\" \
	-DHOME=\"HOME=${W_HOME}\" -DSHELL=\"SHELL=${W_SHELL}\" \
	-DMAJORDOMO_CF=\"MAJORDOMO_CF=${W_MAJORDOMO_CF}\"       \
	-DPOSIX_UID=${W_UID} -DPOSIX_GID=${W_GID} -DSETGROUP

# YOU SHOULDN'T HAVE TO CHANGE ANYTHING BELOW THIS LINE.
# For those stupid machines that try to use csh
SHELL = /bin/sh

default: wrapper

install: install-scripts install-man
	@echo "Run 'make install-wrapper' as root"

install-wrapper: wrapper
	cp wrapper       $(W_BIN)/wrapper
	chown ${W_CHOWN} $(W_BIN)/wrapper
	chmod ${W_CHMOD} $(W_BIN)/wrapper

install-scripts: install-cf
	@-test -d $(W_BIN)/Tools || mkdir $(W_BIN)/Tools
	cp contrib/archive2.pl  $(W_BIN)/Tools
	@-test -d $(W_BIN)/bin || mkdir $(W_BIN)/bin
	cp approve bounce medit $(W_BIN)/bin
	cp bounce-remind config_parse.pl majordomo \
	   majordomo.pl majordomo_version.pl\
	   new-list request-answer resend resend.README shlock.pl \
	   digest/digest test \
	   $(W_BIN)

# the install.cf target will install the sample config file in the
# proper place unless a majordomo.cf file exists in whcih case the
# majordomo.cf file will be used.
install-cf:
	(test ! -f majordomo.cf  && echo "using sample.cf" && \
		cp sample.cf $(W_BIN)/majordomo.cf; exit 0)
	(test -f majordomo.cf  && echo "using majordomo.cf" && \
		cp majordomo.cf $(W_BIN)/majordomo.cf; exit 0)

install-man:
	@-test -d $(W_BIN)/man || mkdir $(W_BIN)/man
	@-test -d $(W_BIN)/man/man1 || mkdir $(W_BIN)/man/man1
	@-test -d $(W_BIN)/man/man8 || mkdir $(W_BIN)/man/man8
	cp Doc/man/approve.1 $(W_BIN)/man/man1
	cp Doc/man/majordomo.8 $(W_BIN)/man/man8

install-shared: install-wrapper-shared install-scripts

install-wrapper-shared: wrapper
	@test -d $(W_BIN)/wrappers || mkdir $(W_BIN)/wrappers
	@test -d $(W_BIN)/wrappers/$(W_GROUP) || mkdir
$(W_BIN)/wrappers/$(W_GROUP)
	strip wrapper
	cp wrapper $(W_BIN)/wrappers/$(W_GROUP)/wrapper.`arch`
	cp wrapper.sh $(W_BIN)/wrappers/$(W_GROUP)/wrapper
	@echo 'run make permissions-shared' as root to set permissions

install-archive:
	cp contrib/archive.pl $(W_BIN)/archive

install-archive2:
	cp contrib/archive2.pl $(W_BIN)/archive

install-archive_mh:
	cp contrib/archive_mh.pl $(W_BIN)/archive

permissions-shared:
	chown ${W_CHOWN} $(W_BIN)/wrappers/$(W_GROUP)/wrapper.`arch`
	chown ${W_CHOWN} $(W_BIN)/.
	chmod ${W_CHMOD} $(W_BIN)/wrappers/$(W_GROUP)/wrapper.`arch`

wrapper: wrapper.c Makefile
	$(CC) ${WRAPPER_FLAGS} -cckr -o wrapper wrapper.c

clean:
	rm -f  wrapper *~

dist-clean: clean
	rm -f majordomo.cf .cvsignore todo.local .dcl archive
	rm -rf regress Doc/samples Tools

VERSION=1.93
distribution: dist-clean
	mkdir majordomo-$(VERSION)
	mv * .??* majordomo-$(VERSION) || exit 0
	rm -rf majordomo-$(VERSION)/CVS majordomo-$(VERSION)/*/CVS
majordomo-$(VERSION)/*/*/CVS
	tar -cZvf majordomo-$(VERSION).tar.Z  majordomo-$(VERSION)


**********************************
~majordom/majordomo-1.93/wrapper.c
**********************************

/*
 *  $Source: /sources/cvsrepos/majordomo/wrapper.c,v $
 *  $Revision: 1.1.1.1.8.2 $
 *  $Date: 1995/01/07 17:28:00 $
 *  $Author: rouilj $
 *  $State: Exp $
 *
 *  $Locker:  $
 *
 */

#ifndef lint
static char rcs_header[] = "$Header: /sources/cvsrepos/majordomo/wrapper.c,v
1.1.1.1.8.2 1995/01/07 17:28:00 rouilj Exp $";
#endif

#include <stdio.h>
#include <string.h>

#ifndef STRCHR
#  define STRCHR(s,c) strchr(s,c)
#endif

#ifndef BIN
#  define BIN "/usr/local/mail/majordomo"
#endif

#ifndef PATH
#  define PATH "PATH=/bin:/usr/bin:/usr/ucb"
#endif

#ifndef HOME
#  define HOME "HOME=/usr/local/mail/majordomo"
#endif

#ifndef SHELL
#  define SHELL "SHELL=/bin/csh"
#endif

char * new_env[] = {
    HOME,		/* 0 */
    PATH,		/* 1 */
    SHELL,		/* 2 */
#ifdef MAJORDOMO_CF
    MAJORDOMO_CF,	/* 3 */
#endif
    0,		/* possibly for USER or LOGNAME */
    0,		/* possible for LOGNAME */
    0
};

main(argc, argv, env)
    int argc;
    char * argv[];
    char * env[];

{
    char * prog;
    int e, i;

    if (argc < 2) {
	fprintf(stderr, "USAGE: %s program [<arg> ...]\n", argv[0]);
	exit(1);
    }

    /* if the command contains a /, then don't allow it */
    if (STRCHR(argv[1], '/') != (char *) NULL) {
	/* this error message is intentionally cryptic */
	fprintf(stderr, "%s: error: insecure usage\n", argv[0]);
	exit(2);
    }

    if ((prog = (char *) malloc(strlen(BIN) + strlen(argv[1]) + 2)) == NULL) {
	fprintf(stderr, "%s: error: malloc failed\n", argv[0]);
	exit(3);
    }

    sprintf(prog, "%s/%s", BIN, argv[1]);

    /*  copy the "USER=" and "LOGNAME=" envariables into the new environment,
     *  if they exist.
     */

#ifdef MAJORDOMO_CF
    e = 4; /* the first unused slot in new_env[] */
#else
    e = 3; /* the first unused slot in new_env[] */
#endif

    for (i = 0 ; env[i] != NULL ; i++) {
	if ((strncmp(env[i], "USER=", 5) == 0) ||
		(strncmp(env[i], "LOGNAME=", 8) == 0)) {
	    new_env[e++] = env[i];
	}
    }


#if defined(SETGROUP)
/* renounce any previous group memberships if we are running as root */
    if (geteuid() == 0) { /* Should I exit if this test fails? */
    char setgroups_used = "setgroups_was_included"; /* give strings a hint */
    int groups[] =  { POSIX_GID, 0 };

    if (setgroups(1, groups) != 0) {
	extern int errno;

	fprintf(stderr, "%s: error setgroups failed errno %d", argv[0],
		errno);
	}
}
#endif


#ifdef POSIX_GID
    setgid(POSIX_GID);
#else
    setgid(getegid());
#endif

#ifdef POSIX_UID
    setuid(POSIX_UID);
#else
    setuid(geteuid());
#endif

    if ((getuid() != geteuid()) || (getgid() != getegid())) {
	fprintf(stderr, "%s: error: recompile with POSIX flags.\n", argv[0]);
	exit(4);
    }

    execve(prog, argv+1, new_env);

    /* the exec should never return */
    perror(argv[1]);
    exit(5);
}

***********************************************************************
*** The following is a listing of the directory structure of majordomo
***********************************************************************

total 1600
-rw-rw----    1 majordom majordom    7377 Sep 26 17:40 Log
drwxr-xr-x    2 majordom majordom     512 Sep 22 09:49 Tools
-rwxr-xr-x    1 majordom majordom    7192 Sep 22 10:29 archive
drwxrwxr-x    4 majordom majordom     512 Sep 26 11:00 archives
drwxr-xr-x    2 majordom majordom     512 Sep 22 09:49 bin
-rwxr-xr-x    1 majordom majordom    2615 Sep 22 09:49 bounce-remind
-rw-rw-r--    1 majordom majordom   43737 Sep 22 09:49 config_parse.pl
-rwxr-xr-x    1 majordom majordom   11320 Sep 22 09:49 digest
drwxr-xr-x    2 majordom majordom     512 Sep 26 17:40 lists
-rwxr-xr-x    1 majordom majordom   42524 Sep 22 09:49 majordomo
drwxr-xr-x    5 majordom majordom     512 Sep 22 09:48 majordomo-1.93
-rw-rw-r--    1 majordom majordom  634880 Sep 22 09:31 majordomo-1.93.tar
-rw-rw-r--    1 majordom majordom    3743 Sep 26 11:03 majordomo.cf
-rw-rw-r--    1 majordom majordom   14327 Sep 22 09:49 majordomo.pl
-rw-rw-r--    1 majordom majordom     141 Sep 22 09:49 majordomo_version.pl
drwxrwxr-x    4 majordom majordom     512 Sep 22 09:49 man
-rwxr-xr-x    1 majordom majordom    2153 Sep 22 09:49 new-list
-rw-r--r--    1 majordom majordom       0 Sep 27 08:09 permits
-rwxr-xr-x    1 majordom majordom    3205 Sep 22 13:16 request-answer
-rwxr-xr-x    1 majordom majordom   12872 Sep 22 09:49 resend
-rw-rw-r--    1 majordom majordom    6183 Sep 22 09:49 shlock.pl
-rwxr-xr-x    1 majordom majordom     131 Sep 22 09:49 test
-rwsr-xr-x    1 root     sys        18252 Sep 22 10:28 wrapper

./Tools:
total 15
-rwxr-xr-x    1 majordom majordom    7192 Sep 22 09:49 archive2.pl

./archives:
total 2
drwxrwxr-x    2 majordom majordom     512 Sep 26 17:32 admins
drwxrwxr-x    2 majordom majordom     512 Sep 26 15:40 econ

./archives/admins:
total 14
-rw-rw----    1 majordom majordom    5860 Sep 26 15:00 admins.9509
-rw-rw----    1 majordom majordom     944 Sep 26 17:32 admins.950926

./archives/econ:
total 7
-rw-rw----    1 majordom majordom    3508 Sep 26 15:40 econ.9509

./bin:
total 22
-rwxr-xr-x    1 majordom majordom    6219 Sep 22 09:49 approve
-rwxr-xr-x    1 majordom majordom    2887 Sep 22 09:49 bounce
-rwxr-xr-x    1 majordom majordom    1424 Sep 22 09:49 medit

./lists:
total 102
-rw-rw-r--    1 majordom majordom      67 Sep 26 17:38 admins
-rw-rw----    1 majordom majordom   12060 Sep 26 17:19 admins.config
-rw-rw-r--    1 majordom majordom      36 Sep 25 14:00 admins.info
-rw-rw----    1 majordom majordom   12059 Sep 26 14:57 admins.old.config
-rw-rw----    1 majordom majordom       6 Sep 22 12:15 admins.passwd
-rw-rw-r--    1 majordom majordom      57 Sep 26 17:40 econ
-rw-rw----    1 majordom majordom   12049 Sep 26 15:06 econ.config
-rw-rw-r--    1 majordom majordom      60 Sep 26 09:38 econ.info
-rw-rw----    1 majordom majordom   12027 Sep 26 09:46 econ.old.config
-rw-rw----    1 majordom majordom       6 Sep 26 09:37 econ.passwd

./majordomo-1.93:
total 584
-rw-r--r--    1 majordom majordom   39173 Jan 10  1995 Changelog
-rw-r--r--    1 majordom majordom   12785 Apr  2  1994 Changes
-rw-r--r--    1 majordom majordom    4601 May  5  1994 Description
drwxr-xr-x    3 majordom majordom     512 Sep 22 09:32 Doc
-rw-r--r--    1 majordom majordom    4631 Dec 26  1994 LICENSE
-rw-r--r--    1 majordom majordom    4460 Sep 22 09:48 Makefile
-rw-r--r--    1 majordom majordom     531 May  9  1994 Manifest
-rw-r--r--    1 majordom majordom   54569 Jan  7  1995 README
-rwxr-xr-x    1 majordom majordom    6219 Jan  1  1995 approve
-rwxr-xr-x    1 majordom majordom    2887 Dec 27  1994 bounce
-rwxr-xr-x    1 majordom majordom    2615 Dec 26  1994 bounce-remind
-rw-r--r--    1 majordom majordom   43737 Jan  7  1995 config_parse.pl
drwxr-xr-x    2 majordom majordom     512 Sep 22 09:32 contrib
drwxr-xr-x    2 majordom majordom     512 Sep 22 09:32 digest
-rwxr-xr-x    1 majordom majordom   42524 Jan  4  1995 majordomo
-rw-r--r--    1 majordom majordom   14327 Jan  7  1995 majordomo.pl
-rw-r--r--    1 majordom majordom     141 Dec 26  1994 majordomo_version.pl
-rwxr-xr-x    1 majordom majordom    1424 Dec 26  1994 medit
-rwxr-xr-x    1 majordom majordom    2153 Jan  7  1995 new-list
-rwxr-xr-x    1 majordom majordom    3024 Dec 26  1994 request-answer
-rwxr-xr-x    1 majordom majordom   12872 Jan  7  1995 resend
-rw-r--r--    1 majordom majordom    3742 Sep  3  1993 resend.README
-rw-r--r--    1 majordom majordom    2087 May  8  1994 sample.aliases
-rw-r--r--    1 majordom majordom    3697 Jan  7  1995 sample.cf
-rw-r--r--    1 majordom majordom    6183 Dec 31  1994 shlock.pl
-rwxr-xr-x    1 majordom majordom     131 Dec 26  1994 test
-rwxr-xr-x    1 majordom majordom   18252 Sep 22 09:48 wrapper
-rw-r--r--    1 majordom majordom    2803 Sep 22 09:48 wrapper.c
-rwxr-xr-x    1 majordom majordom     223 May  9  1994 wrapper.sh

./majordomo-1.93/Doc:
total 451
-rw-r--r--    1 majordom majordom   25429 Jan  7  1995 FAQ
-rw-r--r--    1 majordom majordom    1388 May  6  1994 README
-rw-r--r--    1 majordom majordom   13475 Mar 14  1994 list-owner-info
-rw-r--r--    1 majordom majordom  115561 Oct 27  1993 majordomo.lisa6.ps
-rw-r--r--    1 majordom majordom   73565 Apr  8  1994 majordomo.ora
drwxr-xr-x    2 majordom majordom     512 Sep 22 09:32 man

./majordomo-1.93/Doc/man:
total 48
-rw-r--r--    1 majordom majordom    3512 Oct 27  1993 approve.1
-rw-r--r--    1 majordom majordom    4133 Oct 27  1993 approve.man
-rw-r--r--    1 majordom majordom    6922 May  2  1994 majordomo.8
-rw-r--r--    1 majordom majordom    8836 May  2  1994 majordomo.man

./majordomo-1.93/contrib:
total 66
-rwxr-xr-x    1 majordom majordom    3185 Sep  1  1993 archive.pl
-rwxr-xr-x    1 majordom majordom    7192 Jan  2  1995 archive2.pl
-rwxr-xr-x    1 majordom majordom     839 Sep  1  1993 archive_mh.pl
-rw-r--r--    1 majordom majordom   10021 Apr 22  1994 digest.diff
-rwxr-xr-x    1 majordom majordom     674 Apr  2  1994 digest.send
-rwxr-xr-x    1 majordom majordom    3201 Apr 22  1994 logsummary.pl
-rwxr-xr-x    1 majordom majordom    2742 Apr 22  1994 makeindex.pl
-rw-r--r--    1 majordom majordom    3251 May  2  1994 mod_addr.diff

./majordomo-1.93/digest:
total 58
-rw-r--r--    1 majordom majordom    1697 Jan 18  1994 Makefile
-rw-r--r--    1 majordom majordom    1351 Jan 18  1994 README
-rw-r--r--    1 majordom majordom    1528 Jan 18  1994 aliases.slice
-rwxr-xr-x    1 majordom majordom   11320 Jan  4  1995 digest
-rw-r--r--    1 majordom majordom    1231 Jan 18  1994 firewalls-digest.cf
-rw-r--r--    1 majordom majordom     174 Jan 18  1994 firewalls-digest.header
-rw-r--r--    1 majordom majordom       3 Jan 18  1994 firewalls-digest.num
-rw-r--r--    1 majordom majordom     777 Jan 18  1994 firewalls-digest.trailer
-rw-r--r--    1 majordom majordom       2 Jan 18  1994 firewalls-digest.vol
-rw-r--r--    1 majordom majordom    6058 Jan 18  1994 shlock.pl
-rw-r--r--    1 majordom majordom    2349 Jan 18  1994 wrapper.c

./man:
total 2
drwxr-xr-x    2 majordom majordom     512 Sep 22 09:49 man1
drwxr-xr-x    2 majordom majordom     512 Sep 22 09:49 man8

./man/man1:
total 7
-rw-r--r--    1 majordom majordom    3512 Sep 22 09:49 approve.1

./man/man8:
total 14
-rw-r--r--    1 majordom majordom    6922 Sep 22 09:49 majordomo.8


Good luck,

Karen Brown Foster
Unix System Administrator
National Marine Fisheries Service



On Sep 26, 10:57am, Jason Vagner wrote:
> Subject: Compiling wrapper problem on Irix 5.3
> I've been having problems getting the wrapper to compile on an SGI. What
> exactly is necessary to get the wrapper simply to compile? Allow me to step
> through the installation steps from the README and please tell me if I'm not
> understanding this (I'm trying to understand what depends on what):
>
> >choose and/or create a uid and gid for this to run under
>
> I have chosen these.
>
> >create appropriate directories ($homedir and $listdir), with
> >appropriate user, group, and permissions (775)
>
> Are these necessary for the wrapper to compile?
>
> >edit the "Makefile" to set W_BIN and the environment for "wrapper";
> >don't forget to make the changes for POSIX, if necessary
>
> Is the W_BIN the only one necessary? I'm compiling this on an IRIX 5.3, and
> I'll include the error message I get at the end of this post. Does the
compile
> rely on majordomo.cf?
>
> >compile and install the perl code and man pages.
> >("make", then "make install")
>
> This is where I get this error message:
> ----
>         cc -DBIN=\"/usr/people/aidsauth/tools/majordomo-1.93\"
> -DPATH=\"PATH=/bin:/usr/bin:/usr/ucb\"
>  -DHOME=\"HOME=/usr/people/aidsauth/tools/majordomo-1.93\"
> -DSHELL=\"SHELL=/bin/csh\"
>  -DMAJORDOMO_CF=\"MAJORDOMO_CF=/usr/people/aidsauth/tools/majordomo-1.93/majordomo.cf\"
>        -DPOSIX_UID=1115  -DPOSIX_GID=40  -DSETGROUP -o wrapper wrapper.c
> cfe: Error: wrapper.c, line 65: Unacceptable operand of == or !=
>      if (strchr(argv[1], '/')  != (char *) 0 ) {
>  ------------------------------^
> cfe: Warning 712: wrapper.c, line 99: illegal combination of pointer and
> integer
>      char setgroups_used = "setgroups_was_included";
>  ---------^
> *** Error code 1 (bu21)
> ----
>
> And I admit I can't make much of this.
>
> I noticed in the last few days that a few people are running theirs on Irix
5.3
> (which is what I have), but I thought perhaps a public post might be the best
> way to elicit feedback.
>
> Thanks in advance!!
>
> Jason
>
> --
> Email   jason@asu.edu
> Finger  jason@earthvision.asu.edu
> Key     BF 6B EE 1C 03 E8 06 31  48 02 75 87 07 46 66 6D
> WWW     http://earthvision.asu.edu/aidsauthority
>-- End of excerpt from Jason Vagner



-- 
Karen Brown Foster
Unix System Administrator
Fisheries Statitics Division
National Marine Fisheries Service
(301) 713-2316  VOICE
(301) 713-4137  FAX
kbfoster@oyster.ssp.nmfs.gov



References:
Indexed By Date Previous: HELP! Aliases
From: Michael_Will@kingcrab.nrl.navy.mil (Michael Will)
Next: Re: Returned mail: unknown mailer error 139 (fwd)
From: dwolfe@risc.sps.mot.com (Dave Wolfe)
Indexed By Thread Previous: Re: Compiling wrapper problem on Irix 5.3
From: dwolfe@risc.sps.mot.com (Dave Wolfe)
Next: majordomo on redhat commercial 2.0 linux?
From: Brad Midgley <junkmail@pht.com>

Google
 
Search Internet Search www.greatcircle.com