Skip to contentSkip to conversation

pre-build HP-UX/10.20 bash's problem

parisc-linux yuqian 3 participants 4 messages Oct 4, 2000

lore
Share & tools
lore

yuqian

author
#0 lore raw

Hi.
I have a HP B2000 (9000/785) with HP-UX 10.20 and installed binaries/HP-UX/depot/10.20/bash-2.03-1.hpux-10.20.depot.gz, but it not work when I want to build a new kernel:
bash-2.03$ make dep
scripts/mkdep init/*.c > .depend
scripts/mkdep `find /home/yq/linux/include/asm
/home/yq/linux/include/linux /home/yq/linux/include/scsi
/home/yq/linux/include/net -name SCCS -prune -o -follow -name \*.h ! -name
modversions.h -print` > .hdepend
bash: scripts/mkdep: Arg list too long
make: *** [dep-files] Error 126

Am I missing any thing?
Thanks for any advices.

#1 lore raw

Hi
The answer is in your kernel. Rebuild the hpux kernel after modifying the parameter:
ncargs_enable = 1
(I don't remember exactly the parameter name but it must be this one). It will let you access 24kb for arg list, without this modification the size for arg is only 2k. This parameter is adding by PHKL_16751.

Bye.

Signature · 3 lines
	Vidal Bruno, (770-4271)
        SSD-HA Team, HP-UX & LINUX Support
	[email protected]
#2 lore raw
In reply to yuqian

Hi
I've retrieve the kernel parameter:
large_ncargs_enabled
Put this one to 1 and it would be fine.

Bye.

Quoted 20 lines · yuqian

Hi.
I have a HP B2000 (9000/785) with HP-UX 10.20 and installed binaries/HP-UX/depot/10.20/bash-2.03-1.hpux-10.20.depot.gz, but it not work when I want to build a new kernel:
bash-2.03$ make dep
scripts/mkdep init/*.c > .depend
scripts/mkdep `find /home/yq/linux/include/asm
/home/yq/linux/include/linux /home/yq/linux/include/scsi
/home/yq/linux/include/net -name SCCS -prune -o -follow -name \*.h ! -name
modversions.h -print` > .hdepend
bash: scripts/mkdep: Arg list too long
make: *** [dep-files] Error 126

Am I missing any thing?
Thanks for any advices.

---------------------------------------------------------------------------
To unsubscribe: send e-mail to [email protected] with `unsubscribe' as the subject.

Signature · 3 lines
	Vidal Bruno, (770-4271)
        SSD-HA Team, HP-UX & LINUX Support
	[email protected]
#3 lore raw
In reply to yuqian
Quoted 13 lines

Hi.
I have a HP B2000 (9000/785) with HP-UX 10.20 and installed binaries/HP-UX/depot/10.20/bash-2.03-1.hpux-10.20.depot.gz, but it not work when I want to build a new kernel:
bash-2.03$ make dep
scripts/mkdep init/*.c > .depend
scripts/mkdep `find /home/yq/linux/include/asm
/home/yq/linux/include/linux /home/yq/linux/include/scsi
/home/yq/linux/include/net -name SCCS -prune -o -follow -name \*.h ! -name
modversions.h -print` > .hdepend
bash: scripts/mkdep: Arg list too long
make: *** [dep-files] Error 126

Quoted 2 lines

Am I missing any thing?
Thanks for any advices.

I think this can be fixed by changing the Makefile to use relative paths instead of absolute paths. This shortens the arg list enough for building under hpux.

Changing the kernel to support a larger arg and environment space looks like it will waste a lot of memory for most applications and thus may not be suited for machines with limited memory or swap space. So, I would try hacking the Makefile first.

Dave

Signature · 2 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)