*BSD News Article 67495


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!usenet.ins.cwru.edu!gatech!news.cse.psu.edu!uwm.edu!vixen.cso.uiuc.edu!newsfeed.internetmci.com!in1.uu.net!nntp.teleport.com!usenet
From: blake@pbgi.com (Blake Swensen)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: MajorDomo... yet again
Date: Thu, 02 May 96 16:43:43 GMT
Organization: Pillar/Blake International
Lines: 101
Message-ID: <4mb383$bdf@nadine.teleport.com>
References: <4lqral$diq@nadine.teleport.com> <4m3e0f$3db@uriah.heep.sax.de>
NNTP-Posting-Host: 206.251.72.5
X-Newsreader: News Xpress Version 1.0 Beta #3

In article <4m3e0f$3db@uriah.heep.sax.de>,
   j@uriah.heep.sax.de (J Wunsch) wrote:
>blake@pbgi.com (Blake Swensen) writes:
>
>>Can't seem to compile wrapper, or even get the darn thing to install.
>
>As long as nobody is going to actually tell about _what_ are the
>problems, it's very unlikely that you (you all -- not just Blake) will
>get too much help here...

As mentioned in the README one would make install, then make wrapper.  When I 
perform the make I get:

mkdir: /usr/local/majordomo-1.93/Tools: No such file or directory
*** Error code 1 (ignored)
cp contrib/archive2.pl  /usr/local/majordomo-1.93/Tools
cp: /usr/local/majordomo-1.93/Tools: No such file or directory
*** Error code 1

I get this regardless of whether or not I have created the directory. Have 
created it.. chmoded it, chowned it, carressed it and generally made love to 
it, but Makefile is stubborn... still returns the error.  So I went step by 
step and copied the files mentioned manually, then #ed the offending 
subroutine in the Makefile. Then I did the make install successfully.

I proceeded with the make wrapper command and I get this:

wrapper.c: In function `main':
wrapper.c:65: warning: comparison between pointer and integer
wrapper.c:99: warning: initialization makes integer from pointer without a 
cast


I am guessing that I am overlooking something pretty stupid... that is, after 
all, my modus operandi... I am using the 2.01 release from the WC CDROM, and I 
think that comes with Perl 4.x... I used the Majordomo 1.93 I got from two 
different sources.... still the same result.

I have had conversations from others who claim that they didn't get the same 
compile errors, and that I shouldn't try to use Perl 5.x.  The 'Unix System 
Administration Manual,' Nemeth, et. al., claims that Perl 5 SHOULD be used, 
due to bugs in setuid (?).

tundra@tundraware.com writes "Under v 1.93 you just edit the Makefile to use 
the POSIX flags (not the BSD ones, suprisingly) and it will compile fine."

^^^ did that...the error above reflects this option.

"In fact, it will also  compile with the BSD flags, but in neither case will 
it actually work. Also, be sure 'perl' is linked to a version of 4.036 not 
Perl 5.  I believe some of the perl scripts have to change to use perl 5."

Here is the section of the Makefile that I am using... won't include the whole 
thing as it is really big
-----------------------------------------------------------------------------
[...]
# This is where "wrapper" looks for the programs it's supposed to run.
W_BIN=/usr/local/majordomo-1.93

# 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/local/bin:/sbin:/usr/share
W_HOME=${W_BIN}
W_SHELL=/bin/sh
W_MAJORDOMO_CF=/etc/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=lists
#W_GROUP=lists
#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 = 1001
W_GID = 14
W_CHOWN=lists
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

[...]
----------------------------------------------------------------------------

Hope this is enough information.  

Peace,
Blake