From: Ziad H. Najem (najem@cs.uiuc.edu)
Date: 11/29/92


From: najem@cs.uiuc.edu (Ziad H. Najem)
Subject: Re: plp Std_environ error
Date: Mon, 30 Nov 1992 01:55:39 GMT

c-amb@math.utah.edu (Mark B. Alston) writes:

> wongi@netcom.com (Isaac Wong) writes:

[ actually najem@cs.uiuc.edu following up Wong's - ziad]

> >i got the plpsrc printer spooler package from tsx-11. it compiled and linked
> >without errors. but when i try to start the lpd daemon i got the following
> >message,

> >Std_environ: host entry for '' not found at Fri Nov 27 21:02:19 1992

> >any clue?

> lpd can't find the printcap file for your host. lpd expects to find a
> /usr/spool/lpd/printcap.<hostname> where <hostname> is the hostname
> of your machine.

>I am not conviced that this is the problem. I am recieving the same error but have my printcap file as you specify:

># /usr/lib/lpd
>Std_environ: host entry for '' not found at Sun Nov 29 17:57:16 1992
># ls -l
>total 18
>-rw-r--r-- 1 root root 381 Nov 29 17:49 printcap.mobius
>-rw-r--r-- 1 root root 381 Nov 29 17:47 printcap.wf-rch
>-rw-r--r-- 1 root root 699 Nov 29 17:49 printer_perms.mobius
>-rw-r--r-- 1 root root 699 Nov 29 17:47 printer_perms.wf-rch
>-rwxr-xr-x 1 root root 12641 Nov 29 17:50 ps_endf
>-rw-r--r-- 1 root root 38 Nov 29 17:47 ps_endf.c
># hostname
>mobius
># pwd
>/usr/spool/lpd
>#

Are the permissions for lpd correct ? can it read the /usr/spool/lpd
directory ?

>It seems to me that plp is having a problem finding out what the
>hostname is, explaining the:
> "host entry for '' not found"
>opposed to the expected:
> "host entry for 'mobius' not found"

Not really, if you check utils.c, you'll see that there is a typo (%
instead of %s) and this is why the host doesn't get printed.

>Anyone else with ideas on how to fix this?
>--

I installed plp just as descibed in the docs and it worked fine from
the first time (other than missing the .hostname)

> Mark Alston U.S. out of North America!
> c-amb@math.utah.edu

 - Ziad
   najem@cs.uiuc.edu