SUMMARY: Compilation problems (sendmail and kerberos)

From: Lenny Turetsky (lturetsk@econ.yale.edu)
Date: Mon Feb 27 1995 - 19:51:08 CST


First, the original question:

> I'm having some problems compiling software for SunOS 4.1.3 boxes,
> despite the fact that the software is pretty standard, and has already
> been ported to the platform.

> With sendmail (8.6.9 and 8.6.10 (they've recently discovered a
> security hold in 8.6.9, see comp.unix.admin)), the problem is with the
> lack of a strtoul() function.

> With kerberos, the problem is with the lack of memmove() and setenv()
> (I'm almost certain I've used the latter in code before).

> Am I missing something really obvious? I get the feeling that I am,
> but I don't know what it is. If you flame, please flame gently. ;->

-------------------------------------------------------------------------

Second, my thanks to:

grevemes@VTC.TACOM.Army.Mil (Steven Grevemeyer)
Torsten Metzner <tom@uni-paderborn.de>
Kim Culhan <kimc@w8hd.w8hd.org>
Alan Thew <Alan.Thew@liverpool.ac.uk>
Bryan Curnutt <curnutt@Stoner.COM>

-------------------------------------------------------------------------

Third, the conclusion:

--
Sendmail:
Well, either I've installed GCC incorrectly (incompletely), or someone
has a libg++ library that I don't have (I don't have one at all).

However, I was able to compile with plain old cc.

Apparently, removing the __STDC__ #definition will also fix this, but I couldn't find where it was #defined in the first place -- it certainly wasn't in the Makefile.

-- Kerberos: No-one has mentioned it yet.

-------------------------------------------------------------------------

Fourth, the actual responses (unedited, for your reading pleasure ;-):

> From grevemes@VTC.TACOM.Army.Mil Mon Feb 27 09:56:47 1995 > Received: from vtc.tacom.army.mil by aida.econ.yale.edu; Mon, 27 Feb 95 09:56:47 EST > Received: by VTC.TACOM.Army.Mil (8.6.10/8.6.9-kbp) > id JAA01359; Mon, 27 Feb 1995 09:56:41 -0500 > From: grevemes@VTC.TACOM.Army.Mil (Steven Grevemeyer) > Message-Id: <199502271456.JAA01359@VTC.TACOM.Army.Mil> > Subject: Re: Compilation problems (sendmail and kerberos) > To: lturetsk@econ.yale.edu > Date: Mon, 27 Feb 1995 09:56:41 -0500 (EST) > In-Reply-To: <Pine.SUN.3.91.950227000835.4488H-100000@aida.econ.yale.edu> from "Lenny Turetsky" at Feb 27, 95 00:13:04 am > X-Mailer: ELM [version 2.4 PL22] > Content-Type: text > Content-Length: 1204 > Status: RO > X-Status:

> don't know about kerberous, but for the strtoul function I just commented out > the check for __STDC__ and used the strtol function.

> -seg

> > > > I'm having some problems compiling software for SunOS 4.1.3 boxes, > > despite the fact that the software is pretty standard, and has already > > been ported to the platform. > > > > With sendmail (8.6.9 and 8.6.10 (they've recently discovered a > > security hold in 8.6.9, see comp.unix.admin)), the problem is with the > > lack of a strtoul() function. > > > > With kerberos, the problem is with the lack of memmove() and setenv() > > (I'm almost certain I've used the latter in code before). > > > > Am I missing something really obvious? I get the feeling that I am, > > but I don't know what it is. If you flame, please flame gently. ;-> > > > > TIA, > > LT > > > > ,-----------------------------------------------------. > > | Yale Economics Dep't | Lenny Turetsky | > > | System Administrator | lturetsk@econ.yale.edu | > > |-------------------------+---------------------------| > > | My employers paid for some of my time and energy. | > > | My opinions were never for sale. | > > `-----------------------------------------------------' > > > >

> From tom@uni-paderborn.de Mon Feb 27 10:09:54 1995 > Received: from uni-paderborn.de by aida.econ.yale.edu; Mon, 27 Feb 95 10:09:54 EST > Received: from plato (root@plato-fb.uni-paderborn.de [131.234.60.33]) by uni-paderborn.de (8.6.10/8.6.10) with SMTP id QAA02909 for <lturetsk@econ.yale.edu>; Mon, 27 Feb 1995 16:09:17 +0100 > From: Torsten Metzner <tom@uni-paderborn.de> > Received: from diophant.uni-paderborn.de by plato with SMTP id AA16942 > (5.65c/IDA-1.5 for <lturetsk@econ.yale.edu>); Mon, 27 Feb 1995 16:10:01 +0100 > Received: (tom@localhost) by diophant.uni-paderborn.de (8.6.9/8.6.9) id QAA12372 for lturetsk@econ.yale.edu; Mon, 27 Feb 1995 16:10:02 +0100 > Date: Mon, 27 Feb 1995 16:10:02 +0100 > Message-Id: <199502271510.QAA12372@diophant.uni-paderborn.de> > To: lturetsk@econ.yale.edu > Subject: Re: Compilation problems (sendmail and kerberos) > X-Sun-Charset: US-ASCII > Status: RO > X-Status:

> | > |I'm having some problems compiling software for SunOS 4.1.3 boxes, > |despite the fact that the software is pretty standard, and has already > |been ported to the platform. > | > |With sendmail (8.6.9 and 8.6.10 (they've recently discovered a > |security hold in 8.6.9, see comp.unix.admin)), the problem is with the > |lack of a strtoul() function. > | > |With kerberos, the problem is with the lack of memmove() and setenv() > |(I'm almost certain I've used the latter in code before).

> Hello Lenny, > here is what I found on one of our SunOS4.1.3 machines:

> (1)

> 77: tom@plato[lib]> foreach i ( lib*.a* lib*.so* ) > foreach? echo $i > foreach? nm $i | egrep 'strtoul|memmove|setenv' > foreach? end > libg++.a > U _memmove > U _memmove > U _strtoul > memmove.o: > 00000000 T _memmove > strtoul.o: > 00000000 T _strtoul > libiberty.a > memmove.o: > 00000000 T _memmove > strtoul.o: > 00000000 T _strtoul > libiostream.a > U _memmove > U _strtoul > 78: tom@plato[lib]> pwd > /local/sun4-SunOS4.1.1/gnu/gcc-2.5.8/lib

> So if you use the gcc there should be no problems with memove() and strtoul().

> (2)

> 86: tom@plato[SC2.0.1]> foreach i ( lib*.a* lib*.so* ) > foreach? echo $i > foreach? nm $i | egrep 'strtoul|memmove|setenv' > foreach? end > libC.a > libC_p.a > libF77.a > libF77_p.a > libFxview.a > libM77.a > libM77_p.a > libV77.a > libV77_p.a > libansi.a > strtoul.o: > 00000000 T _strtoul > memmove.o: > 00000000 T _memmove > libansi_p.a > strtoul.o: > 00000000 T _strtoul > 00000000 t strtoul.o > memmove.o: > 00000000 T _memmove > 00000000 t memmove.o > libcomplex.a > libcomplex_p.a > libl.a > libm.a > strtoull.o: > 00000000 T _strtoull > libm_p.a > strtoull.o: > 00000000 T _strtoull > libpc.a > libpc_p.a

> Rest deleted.

> 87: tom@plato[SC2.0.1]> pwd > /local/sun4-SunOS4.1.1/lang-2.0.1/SC2.0.1

> So if you use the acc there should be no problems with memmove() and strtoul() > too.

> Remarks to (1) and (2):

> memmove() and strtoul() are ANSI-C functions. So you need an ANSI-C compiler. > If you are using the cc compiler then the equivalent functions are:

> memmove() ~ bcopy() > strtoul() ~ ( unsigned long ) strtol()

> If you need the manuals to memmove() and strtoul() I can send it to you.

> (3)

> 93: tom@plato[lib]> foreach i ( libsun*a* libsun*so* ) > foreach? echo $i > foreach? nm $i | grep setenv > foreach? end > libsuntool.sa.0.54 > libsunwindow.sa.0.55 > libsuntool.so.0.54 > 000306f4 t _ttysw_setenv > libsunwindow.so.0.55 > 00018668 T _setenv > 00018794 T _unsetenv > 000184e8 t setenv.o > 94: tom@plato[lib]> pwd > /usr/lib

> Have you installed the sunview package on your machine ? > But I am sorry I don't have the manual page to this function.

> Hope this helps,

> Torsten.

> ------------------------------------------------------------------------------- > My address : Torsten Metzner E-Mail: tom@uni-paderborn.de > MuPAD development group Tel.: +49 5251 603898 or > Universitaet-GH Paderborn Tel.: +49 5251 602634 > FB 17 - Mathematik Fax : +49 5251 603836 > Warburger Str. 100 > 33098 Paderborn > Germany > -------------------------------------------------------------------------------

> From kimc@w8hd.w8hd.org Mon Feb 27 11:05:03 1995 > Received: from w8hd.w8hd.org by aida.econ.yale.edu; Mon, 27 Feb 95 11:05:03 EST > Received: (from kimc@localhost) by w8hd.w8hd.org (8.6.9/w8hd) id LAA25695; Mon, 27 Feb 1995 11:05:01 -0500 > Date: Mon, 27 Feb 1995 11:05:01 -0500 (EST) > From: Kim Culhan <kimc@w8hd.w8hd.org> > To: Lenny Turetsky <lturetsk@econ.yale.edu> > Subject: Re: Compilation problems (sendmail and kerberos) > In-Reply-To: <Pine.SUN.3.91.950227000835.4488H-100000@aida.econ.yale.edu> > Message-Id: <Pine.NEB.3.91.950227110344.25681A-100000@w8hd.w8hd.org> > Mime-Version: 1.0 > Content-Type: TEXT/PLAIN; charset=US-ASCII > Status: RO > X-Status: A

> Lenny- > Can you give me more info on the security problems with 8.6.9?

> If you get the info on the 8.6.10 compile problems, could you summarize?

> regards > kim culhan

> From Alan.Thew@liverpool.ac.uk Mon Feb 27 13:44:30 1995 > Received: from mail.liv.ac.uk by aida.econ.yale.edu; Mon, 27 Feb 95 13:44:30 EST > Received: from pop.liv.ac.uk by mail.liv.ac.uk with SMTP (PP); > Mon, 27 Feb 1995 18:43:35 +0000 > Date: Mon, 27 Feb 1995 18:24:32 +0000 (GMT) > From: Alan Thew <Alan.Thew@liverpool.ac.uk> > X-Sender: qq11@mail.liv.ac.uk > Reply-To: Alan.Thew@liverpool.ac.uk > To: Lenny Turetsky <lturetsk@econ.yale.edu> > Subject: Re: Compilation problems (sendmail and kerberos) > In-Reply-To: <Pine.SUN.3.91.950227000835.4488H-100000@aida.econ.yale.edu> > Message-Id: <Pine.SUN.3.91.950227182339.22766N-100000@mail.liv.ac.uk> > Organization: The University of Liverpool > Mime-Version: 1.0 > Content-Type: TEXT/PLAIN; charset=US-ASCII > Status: RO > X-Status:

> On Mon, 27 Feb 1995, Lenny Turetsky wrote:

> > Date: Mon, 27 Feb 1995 00:13:04 -0500 (EST) > > From: Lenny Turetsky <lturetsk@econ.yale.edu> > > To: Sun Managers <sun-managers@ra.mcs.anl.gov> > > Subject: Compilation problems (sendmail and kerberos) > > > > I'm having some problems compiling software for SunOS 4.1.3 boxes, > > despite the fact that the software is pretty standard, and has already > > been ported to the platform. > > > > With sendmail (8.6.9 and 8.6.10 (they've recently discovered a > > security hold in 8.6.9, see comp.unix.admin)), the problem is with the > > lack of a strtoul() function.

> No strtoul() on my machine, 8.6.10 compliles without any trouble. > > > > With kerberos, the problem is with the lack of memmove() and setenv() > > (I'm almost certain I've used the latter in code before). > > > > Am I missing something really obvious? I get the feeling that I am, > > but I don't know what it is. If you flame, please flame gently. ;-> > > > >

> -- > Alan Thew > alan.thew@liv.ac.uk ...!uknet!liv!alan.thew Tel: +44 151 794-4497 > University of Liverpool, Computing Services Fax: +44 151 794-4442

> From curnutt@Stoner.COM Mon Feb 27 19:35:46 1995 > Received: from gateway.Stoner.COM by aida.econ.yale.edu; Mon, 27 Feb 95 19:35:46 EST > Received: from uhura1.Stoner.COM (uhura1.Stoner.COM [198.64.192.11]) by gateway.Stoner.COM (8.6.10/8.6.10) with ESMTP id SAA07250 for <lturetsk@econ.yale.edu>; Mon, 27 Feb 1995 18:35:44 -0600 > Received: from crusher.Stoner.COM (crusher.Stoner.COM [198.64.192.28]) by uhura1.Stoner.COM (8.6.10/8.6.10) with ESMTP id SAA14257 for <lturetsk@econ.yale.edu>; Mon, 27 Feb 1995 18:35:37 -0600 > From: Bryan Curnutt <curnutt@Stoner.COM> > Received: (curnutt@localhost) by crusher.Stoner.COM (8.6.10/8.6.10) id SAA20946 for lturetsk@econ.yale.edu; Mon, 27 Feb 1995 18:35:35 -0600 > Message-Id: <199502280035.SAA20946@crusher.Stoner.COM> > Subject: Re: Compilation problems (sendmail and kerberos) > To: lturetsk@econ.yale.edu > Date: Mon, 27 Feb 1995 18:35:33 -0600 (CST) > In-Reply-To: <Pine.SUN.3.91.950227000835.4488H-100000@aida.econ.yale.edu> from "Lenny Turetsky" at Feb 27, 95 00:13:04 am > X-Mailer: ELM [version 2.4 PL23] > Mime-Version: 1.0 > Content-Type: text/plain; charset=US-ASCII > Content-Transfer-Encoding: 7bit > Content-Length: 1184 > Status: RO > X-Status:

> Lenny Turetsky wrote: > > > > With sendmail (8.6.9 and 8.6.10 (they've recently discovered a > > security hold in 8.6.9, see comp.unix.admin)), the problem is with the > > lack of a strtoul() function.

> Hmmm... I compiled sendmail 8.6.9 and 8.6.10 just fine on our > SunOS 4.1.3 boxes, but I was using the bundled compiler. Do you > have the unbundled (optional) one? (Are you using Makefile.SunOS?)

> Sendmail only uses strtoul() if __STDC__ is defined, which it > shouldn't be with the bundled C compiler. If you're using the > unbundled ANSI C compiler, the lack of strtoul() is a bug -- it's > an ANSI function, required in Standard C -- and should be reported > to Sun. In the mean time, you should be able to replace it with > strtol() if you need it.

> > With kerberos, the problem is with the lack of memmove() and setenv()

> Try

> #define memmove(d, s, l) bcopy((s), (d), (l))

> I'm not familiar with setenv() -- presumably it's similar to putenv(), > which SunOS does have.

> -- > Bryan Curnutt Stoner Associates, Inc. > bryan.curnutt@stoner.com 5177 Richmond Ave., Suite 900 > +1 713 626 9568 voice +1 713 622 7832 fax Houston TX 77056

,-----------------------------------------------------. | Yale Economics Dep't | Lenny Turetsky | | System Administrator | lturetsk@econ.yale.edu | |-------------------------+---------------------------| | My employers paid for some of my time and energy. | | My opinions were never for sale. | `-----------------------------------------------------'



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:17 CDT