Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!nrl-cmf!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!sdcrdcf!csun!polyslo!steve
From: steve@polyslo.UUCP (Steve DeJarnett)
Newsgroups: comp.sources.d
Subject: Re: recent ARC posting problem
Message-ID: <3262@polyslo.UUCP>
Date: 8 Jul 88 20:49:53 GMT
References: <6022@pyr.gatech.EDU> <14197@shemp.CS.UCLA.EDU>
Reply-To: steve@polyslo.UUCP (Steve DeJarnett)
Organization: Lab Rat Rumpus Room -- Cal Poly SLO
Lines: 49

In article <14197@shemp.CS.UCLA.EDU> netsourc@sonia.MATH.UCLA.EDU (Net Sources Collector) writes:
>>   It was lovely to see all that compiling going on so nicely.  However,
>>   when it got to the link (?) process (you know - the 'cc -o arc' followed
>>   by all the '.o' files) it finished up with
>>                     Undefined:
>>                     _memset
>>                     *** Exit 1
>
>memset is part of the C library routines in /lib/libc.a.  At our installation
>we are running UNIX BSD 4.2 and 4.3 on a Sun and VAX 11/750 respectively and 
>both versions seem to have this routine in libc.a.  Here is what memset does
>(as quoted from the manual page): 

	Actually, it is a part of the AT&T libc.a.  True BSD probably has it
(you say it does, so I'll believe you).

>There are two solutions to your problem:  1) Consult your local guru to
>see if you have memset or a similar routine in one of the system libraries
>(Sorry, but I'm not familiar with Pyramid).  

	Well, here's the good news.  On a Pyramid, seeing as it has both the
BSD and AT&T C libraries (along with most everything else), this is quite 
easy to overcome.  Simply do the following:

	Instead of using 'cc' (the Berkeley side's cc), use the AT&T side's
cc (i.e. 'att cc').

	att cc -o arc ......................

	Or, you can simply include the AT&T side's C library by appending
the following flag on your compile:

	-l/.attlib/libc.a

	i.e.

	cc -o arc ......... -l/.attlib/libc.a

	Either one of these solutions should work (I just tried them both
on our Pyramid).

	Hope this helps.  Good luck.

-------------------------------------------------------------------------------
| Steve DeJarnett		|    ...!ihnp4!csun!polyslo!steve	      |
| Computer Systems Lab		|    ...!{csustan,csun,sdsu}!polyslo!steve    |
| Cal Poly State Univ.		|    ...!ucbvax!voder!polyslo!steve	      |
| San Luis Obispo, CA  93407	|    					      |
-------------------------------------------------------------------------------
#include