Subject: Re: why is rcmd.c in lpd Makefile?
To: John Refling <refling@stanfordalumni.org>
From: Jaromir Dolecek <jdolecek@NetBSD.org>
List: current-users
Date: 12/18/2003 10:27:13
cvs log from lpr/lpd/Makefile:
revision 1.12
date: 2000/05/30 01:07:45; author: itojun; state: Exp; lines: +10 -2
usr.sbin/lpr/lpd now compiles lib/libc/net/rcmd.c on its own, to avoid
use of non-exported function __ivaliduser{,_sa}().
we cannot make __ivaliduser{,_sa}() static yet, since doing that would choke
compiled lpd binaries. we should do it on next libc major version bump.
added a memo on lib/libc/shlib_version.
John Refling wrote:
[ Charset ISO-8859-1 unsupported, converting... ]
>
>
>
> In src/usr.sbin/lpr/lpd/Makefile:
>
> SRCS= lpd.c printjob.c recvjob.c lpdchar.c key.c modes.c ttcompat.c
> rcmd.c
>
> But I need to remove the reference to rcmd.c to recompile lpr otherwise
> rebuld libc.
>
> Looks like some code originally from rcmd.c was incorporated into the lpr
> system, but is it true that I can remove the reference to rcmd.c in the
> Makefile without any adverse effects?
>
> Only other references to rcmd are in comments:
>
> src/usr.sbin/lpr/common_source/common.c: * Most of this code comes from
> rcmd.c.
>
> src/usr.sbin/lpr/common_source/pathnames.h:/* from
> lib/libc/include/pathnames.h, for rcmd.c */
>
> src/usr.sbin/lpr/common_source/pathnames.h:#define _PATH_BIN_RCMD
> "/bin/rcmd"
>
> src/usr.sbin/lpr/lpd/Makefile:CPPFLAGS.rcmd.c= -DINET6
>
> src/usr.sbin/lpr/lpd/lpd.c:/* XXX from libc/net/rcmd.c */
>
>
> ____________________________________________________________________
>
>
--
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.NetBSD.cz/
-=- We should be mindful of the potential goal, but as the Buddhist -=-
-=- masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow. Do not let this distract you.'' -=-