[comp.unix.sysv386] Compiling GNUCPIO under SCO UNIX SDS

shwake@raysnec.UUCP (Ray Shwake) (04/18/91)

	Recently attempted to compile gnucpio under SCO's SDS for UNIX 3.2.2.
(I'm actually running it under ODT 1.1.) Two questions:

1)  The linker can't seem to find bcopy, though it appears in the man pages
as BCOPY(K). Is this the same routine? If so, how does one access it? (Yeah,
I know, I could simply define BCOPY_MISSING.)

2)  The online man pages indicate that alloca is present (no command group
indicated). Once again, how does one access it?

-----------  
uunet!media!ka3ovk!raysnec!shwake				shwake@rsxtech

wht@n4hgf.Mt-Park.GA.US (Warren Tucker) (04/22/91)

In article <296@raysnec.UUCP> shwake@raysnec.UUCP (Ray Shwake) writes:
->1)  The linker can't seem to find bcopy, though it appears in the man pages
->as BCOPY(K). Is this the same routine? If so, how does one access it? (Yeah,
->I know, I could simply define BCOPY_MISSING.)

bcopy(K) is a kernel call, not a libc function.
Try using
#define bcopy(s,d,c) memcpy(d,s,c)

->2)  The online man pages indicate that alloca is present (no command group
->indicated). Once again, how does one access it?

use -lPW to get alloca(S).
 
----------------------------------------------------------------------------
Warren Tucker, TuckerWare, Mountain Park, GA         wht@n4hgf.Mt-Park.GA.US
"Given any new technology for transmitting information, we seem bound to
use it for great quantities of small talk.  We are only saved by music
from being overwhelmed by nonsense." -- Lewis Thomas, _The Lives of a Cell_