Operating System - HP-UX
1838334 Members
3460 Online
110125 Solutions
New Discussion

Re: Kernel rebuild problems

 
Saul O. Reyes
Occasional Advisor

Kernel rebuild problems

Tried to rebuild kernel with sam and manually. Keep getting the following errors:

Generating module: krm...
nm: mod_wk.d/krm/mod.o: File format not recognized
nm: mod_wk.d/krm/_mod.o: File format not recognized
/usr/ccs/bin/ar: /usr/conf/lib/libwhat.a: File format not recognized
*** Error exit code 1 (ignored)
Compiling conf.c...
/usr/ccs/bin/ar: /usr/conf/lib/libinit-pdk.a: File format not recognized
*** Error exit code 1

Assistance appreciated.
3 REPLIES 3
Ravi_8
Honored Contributor

Re: Kernel rebuild problems

Hi,

could you check whether the LANG has been set to default C. (use 'locale' command). in one my machine it looks like this.

# locale
LANG=
LC_CTYPE="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_MESSAGES="C"
LC_ALL=
never give up
Armin Feller
Honored Contributor

Re: Kernel rebuild problems

Hi,

check if the file exist and is ok:

# ll /usr/conf/lib/libwhat.a
-r--r--r-- 1 bin bin 23612 Oct 29
13:22 /usr/conf/lib/libwhat.a

# cksum /usr/conf/lib/libwhat.a
2866354446 23612 /usr/conf/lib/libwhat.a

If not please copy the libwhat.a from a other system to /usr/conf/lib/

Regards,
Armin
Dietmar Konermann
Honored Contributor

Re: Kernel rebuild problems

Looks like your created objects and archives are in a somewhat weird state. Is it possible that you have some other (e.g. GNU binutils) stuff in your PATH before /usr/bin?

Maybe the *.a and *.o files where not created by the HP versions of ld and ar... causing the commands in ccs not to recognize them.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)