Return to BSD News archive
Received: by minnie.vk1xwt.ampr.org with NNTP id AA267 ; Sun, 31 Jan 93 14:00:26 EST Path: sserve!manuel.anu.edu.au!munnari.oz.au!sgiblab!sdd.hp.com!usc!cs.utexas.edu!natinst.com!hrd769.brooks.af.mil!hrd769.brooks.af.mil!not-for-mail From: burgess@hrd769.brooks.af.mil (Dave Burgess) Newsgroups: comp.unix.bsd Subject: SYS_getdomainname error (using getdomainname patch) Date: 28 Jan 1993 20:22:59 -0600 Organization: Armstrong Lab MIS, Brooks AFB TX Lines: 31 Message-ID: <1ka4e3INNi4p@hrd769.brooks.af.mil> NNTP-Posting-Host: hrd769.brooks.af.mil I have recently been trying to get the yellow pages (yp) programs to work with 386bsd. This involved implementing a getdomainname function in the kernel and in libc.a . Sounds good so far. Someone (whose name got handily trimmed from the article) posted just such a patch about three weeks ago. I figured I would just drop it in and press on from there. The patches apply without a hitch, but did not compile cleanly. There were two variables that were referenced, but never declared. No Problem, I think, I'll just declare them (global) and recompile. After that, everything seem to work fine. I built the new kernel, booted with it, and ran. Everything seems to be fine so far. Next, I rebuilt libc.a. The functions that were added were [gs]etdomainname. They are implemented in the kernel and have appropriate pointers in the three files that require them. When I tried to link the yp programs before, I would get "Undefined getdomainname". Now I get an undefined reference to SYS_getdomainname from getdomainname.o when I link the program. When does a SYS_* label get generated? I can't find it in any of the sources. Pointers would be REALLY appreciated at this point. Also, if you posted the getdomainname kernel patch, I'd really like to hear from you so that we can nail down those two unresolved variable references. -- ------ TSgt Dave Burgess NCOIC AL/Management Information Systems Office Brooks AFB, TX