Subject: rcmd build fails - '_orcmd_af'
To: None <port-vax@netbsd.org>
From: NetBSD Mailing list <netbsd@mrynet.com>
List: port-vax
Date: 02/04/2000 11:50:02
I'm experiencing the following failure with "make build" on the vax port.

dependall ===> bin/rcmd
mkdep -a  -DIN_RCMD /abyss/ftp/pub/operatingsystems/NetBSD/newsrc/src/bin/rcmd/../../usr.bin/rsh/rsh.c
cc -O2  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Werror   -DIN_RCMD -c /abyss/ftp/pub/operatingsystems/NetBSD/newsrc/src/bin/rcmd/../../usr.bin/rsh/rsh.c
cc  -static -o rcmd rsh.o 
rsh.o: Undefined symbol `_orcmd_af' referenced from text segment
collect2: ld returned 1 exit status
*** Error code 1

This is occurring after attempts to clean and redo includes as well as
repeated sup updating.

Does anyone have insight as to why this would be failing for me?

A search of the source tree indicates the following references to
orcmd_af:

	mrynet# find . -type f -exec grep orcmd_af \{\} \; -print
	int     orcmd_af __P((char **, u_int, const char *, const char *, const char *,
        	return orcmd_af(ahost, rport, locuser, remuser, cmd, fd2p, AF_INET);
	orcmd_af(ahost, rport, locuser, remuser, cmd, fd2p, af)
	./lib/libc/net/rcmd.c
	int      orcmd_af __P((char **, int, const char *,
                	rem = orcmd_af(&host, sp->s_port, locuser ? locuser :
        	rem = orcmd_af(&host, sp->s_port, locuser ? locuser :
	./usr.bin/rsh/rsh.c

I do see the following in the rcmd code:
	#ifdef IN_RCMD
	int      orcmd __P((char **, int, const char *,
    		const char *, const char *, int *));
	int      orcmd_af __P((char **, int, const char *,
    		const char *, const char *, int *, int));
	#endif
...
	#ifdef IN_RCMD
                	rem = orcmd_af(&host, sp->s_port, locuser ? locuser :
	#else
                	rem = rcmd_af(&host, sp->s_port,
	#endif
etc...

Perhaps all that will trigger some memory someone may have of the code
and possible recent changes.

Cheers,
-skots
--
Scott G. Akmentins-Taylor     InterNet: staylor@mrynet.com
MRY Systems			        staylor@mrynet.lv
    (Skots Gregorijs Akmentins-Teilors -- just call me "Skots")
		----- Labak miris neka sarkans -----