[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


NIS doesn't appear to want to compile

Posted on 2004-10-24
Medium Priority
Last Modified: 2013-12-27
2 quesitons:

1. is the "make: Warning: Don't know how to make target `/var/yp/source/publickey'" important?

2. The following I pressume is definatly more important as it causes the make to fail

"*** Error code 1
make: Fatal error: Command failed for target `k'
Error running Makefile."

The box is solaris 9 with the latest cluster patch, how do I resolve this?

when running ypinit -m I see the following:

Do you want this procedure to quit on non-fatal errors? [y/n: n]  y
The yp domain directory is /var/yp/nisnet
There will be no further questions. The remainder of the procedure should take
5 to 10 minutes.
Building /var/yp/nisnet/ypservers...
Running /var/yp /Makefile...
updated passwd
updated group
updated hosts
updated ethers
updated networks
updated rpc
updated services
updated protocols
updated netgroup
/var/yp/nisnet/mail.aliases: 12 aliases, longest 10 bytes, 138 bytes total
/usr/lib/netsvc/yp/mkalias /var/yp/nisnet/mail.aliases /var/yp/nisnet/mail.byaddr;
updated aliases
make: Warning: Don't know how to make target `/var/yp/source/publickey'
Current working directory /var/yp
updated netid
/usr/sbin/makedbm /var/yp/source/netmasks /var/yp/nisnet/netmasks.byaddr;
updated netmasks
updated timezone
updated auto.master
updated auto.home
updated ageing
updated auth_attr
updated exec_attr
updated prof_attr
updated user_attr
updated audit_user
make: Warning: Target `all' not remade because of errors
Current working directory /var/yp
*** Error code 1
make: Fatal error: Command failed for target `k'
Error running Makefile.
Question by:matjc
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
  • +1
LVL 10

Expert Comment

ID: 12393862
I haven't done NIS in a LONG time but has anyone modified the NIS makefile recently ?  I don't specifically remember a "k" section of that makefile.

This smells like a typo in that Makefile.

Author Comment

ID: 12393883
This is Sun's MakeFile (lease thats what the copyright says at the top of it, I took this from a recently installed solaris 9 machine so might expect so

"k" looks like this:

       @if [ ! $(NOPUSH) ]; then $(MAKE)  $(MFLAGS) -k all; \
       else $(MAKE) $(MFLAGS) -k all NOPUSH=$(NOPUSH);fi

commenting it out makes it compile fine so I may just leave it that way , but if you can tell me what it is supposed to do?

Its no supprise this doesn compile when MAKE and  MFLAGS are not defined as variables in the file anywhere.
LVL 10

Expert Comment

ID: 12395334
Well then ... just luv how descriptive that section of the makefile is :)

Like I said ... its been a while ... but that section seems to be related to a NIS master pushing NIS information down to its slave NIS servers during a NIS map make cycle.   Actually, if I remember correctly, its not really a push ... more of a pull considering how NIS works at the replication level.

Have you got NIS servers in the same NIS domain besides the one you are running the make on ?
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 38

Expert Comment

ID: 12396626
Did you remember to setup your domain before start setting up your NIS master?

Have a look at the procedures in the following NIS FAQ and try again:

setup example:


PS: I have not use NIS for nearly 5 years now. I prefer NIS+. Solaris 9 or newer will
      stop suport NIS+ (current still support it)
      see: http://wwws.sun.com/software/solaris/faqs/nisplus.html
LVL 38

Expert Comment

ID: 12396691
I think the fowllowing Sun NIS setup doc is better than the FAQ:

LVL 38

Assisted Solution

yuzh earned 1200 total points
ID: 12397027
If you are running Solaris 9 X 86, you need to apply 114241-10 patch. (domainname)
for Solaris 9 (Sparc) apply 112960-20 .
LVL 38

Assisted Solution

wesly_chen earned 400 total points
ID: 12404548

>       @if [ ! $(NOPUSH) ]; then $(MAKE)  $(MFLAGS) -k all; \
>       else $(MAKE) $(MFLAGS) -k all NOPUSH=$(NOPUSH);fi

-k is an option for "make" which means when a nonzero error status is returned by a rule,  or
when  make  cannot  find  a rule, abandons work on the current target, but continues  with  other
dependency branches that do not depend on it.

Since k: is the first one in the /var/yp/Makefile (even before all:). So "make" process it first.

By the way, for NIS, make sure that you use /usr/ccs/bin/make. Do "which make" to chekc which binary make you are use.
Besides, you can define $MAKE in /var/yp/Makefile as follow:
and uncomment k: to see it works



Author Comment

ID: 12408704
Whilst it looks like patch 114231-10 helped with stability and commenting out k means I can compile the Makefile I am still seeing the following:

Oct 26 08:54:32 netservices rpc.nisd_resolv[4656]: [ID 601014 daemon.error] nre
s_gethostbyaddr: netservice1.testdomain !=

a few of the above and :

Oct 26 08:54:32 netservices rpc.nisd_resolv[4656]: [ID 122627 daemon.error] rec
v failed: Bad file number.
Oct 26 08:54:32 netservices  rpc.nisd_resolv[4656]: [ID 649263 daemon.error] sen
dto failed: Bad file number.

Any clues?
LVL 38

Expert Comment

ID: 12411255
>Oct 26 08:54:32 netservices rpc.nisd_resolv[4656]: [ID 601014 daemon.error] nre
>s_gethostbyaddr: netservice1.testdomain !=
You can reference the following URL and apply the patch 100141-01 if needed.

LVL 38

Accepted Solution

yuzh earned 1200 total points
ID: 12417565
Just came back from AusCERT, and found an new email from SunSolve, you need to
apply patch 115166-05 as well.
   please read: http://sunsolve6.sun.com/search/document.do?assetkey=1-21-115166-05-1
you also need to apply: 115678-01 (idsconfig patch)
                                   114342-07  YP components patch

The patch was release yesterday!

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question