Operating System - HP-UX
1828267 Members
3231 Online
109975 Solutions
New Discussion

Error building kernel using SAM

 
Eric Zumwalt_2
Advisor

Error building kernel using SAM

Hello,

I'm trying to change some configurations to my kernel using SAM. When I make my changes and execute it I receive these errors.

Cannot build a kernel using /usr/sbin/config. The standard output of the command is shown below:
(Bundled) cc: , line : warning 487.
cpp: "conf.SAM.c", line 0: warning 2021:

(Bundled) cc: , line : warning 487.
cpp: '/stand/build/function_names.c", line 0: warning 2021:

stop.
config: make did an exit (1)

The command exitted with exitcode -71.

Any help would be greatly appreciated.

Thanks,

Eric
5 REPLIES 5
David Child_1
Honored Contributor

Re: Error building kernel using SAM

Eric,

See this post:

http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=33108

(p.s. if you get a page not found error, try manually pasting in the URL (get rid of the javascript stuff).

David
Eric Zumwalt_2
Advisor

Re: Error building kernel using SAM

I read the post, thanks. It says to remove the conf.SAM.o file if it is older than the conf.SAM.c file. I my case they have the same date and time. I'm going to try removing it anyway to see what happens.
Eric Zumwalt_2
Advisor

Re: Error building kernel using SAM

Not sure if this has anything to do with my problem but when I get into sam I've been getting this message before SAM comes up.

cpp: "/usr/sam/lib/C/fal.ui", line 0: warning 2021:

I'm using HP 11i.

Mel Burslan
Honored Contributor

Re: Error building kernel using SAM

another good thing to check here is the cumulative SAM patch level. I have my server not patched for a year or so here and I have PHCO_28123 on my 11i system.

check it with this command :

swlist -l patch | grep -i sam

you will get about 20 matches to go thru to get to the actual cumulative patch.
________________________________
UNIX because I majored in cryptology...
Mei Jiao
Respected Contributor

Re: Error building kernel using SAM

Besides make sure you have the latest SAM patch, please check this as well:

1. Permissions on file /usr/ccs/lbin/cpp should be 555.

2. If the system has a corrupted /usr/ccs/lbin/cpp file, replace the /usr/ccs/lbin/cpp copied from other working system should resolve the problem. Do a backup of the file before replacing it.