make dep not working on HP-UX
I have had a similar problem on our production HP-UX systems. Running ls * on a directory with a lot of files gives
ksh: /usr/bin/ls: arg list too long
To solve this problem you need to set the HP-UX kernel parameter large_ncargs_enabled 1
and rebuild the HP-UX kernel.
Here is the information from HP Electronic Support Center:
Problem Description
What is the impact of changing the kernel parameter "large_ncargs_enabled" from 0 to 1?
What is the meaning of this parameter?
Configuration Info
Operating System - HPUX
Version-
Hardware System - HP 9000
Series -
Solution
When large_ncargs_enabled is set to "1", it increases the default "environment size" (the memory set aside to be your login environment - to hold your PATH variable, etc.) from 20478 to 2048000. SAM doesn't have any info about this parm or any max/minvalue.
If you have been having trouble using an "rm *" on really big directories (it was running out of environment space), the command will work when you set it to 1. Regarding system performance, it will eat up extra memory (2 M vs. 20 K), but if you don't have too many users and you have plenty of RAM, it shouldn't be a problem.
Ulrich
---------------------------------------------
Ulrich Strelow
<[email protected] or
[email protected]>
Berlin, Germany
Change the Makefile to use ./include instead of $(TOPDIR)/include for the FINDPATH. This shortens the arg list and make dep will work.
Quoted 52 lines
I have had a similar problem on our production HP-UX systems. Running ls * on a directory with a lot of files gives
ksh:/usr/bin/ls: arg list too longTo solve this problem you need to set the HP-UX kernel parameter
large_ncargs_enabled1
and rebuild the HP-UX kernel.Here is the information from HP Electronic Support Center:
Problem Description
What is the impact of changing the kernel parameter "
large_ncargs_enabled" from 0 to 1?What is the meaning of this parameter?
Configuration Info
Operating System - HPUX
Version-
Hardware System - HP 9000
Series -Solution
Whenlarge_ncargs_enabledis set to "1", it increases the default "environment size" (the memory set aside to be your login environment - to hold your PATH variable, etc.) from 20478 to 2048000. SAM doesn't have any info about this parm or any max/minvalue.If you have been having trouble using an "rm *" on really big directories (it was running out of environment space), the command will work when you set it to 1. Regarding system performance, it will eat up extra memory (2 M vs. 20 K), but if you don't have too many users and you have plenty of RAM, it shouldn't be a problem.
Ulrich
---------------------------------------------
Ulrich Strelow
<[email protected] or
[email protected]>
Berlin, Germany---------------------------------------------------------------------------
To unsubscribe: send e-mail to [email protected] with `unsubscribe' as the subject.
Signature · 2 lines
J. David Anglin [email protected] National Research Council of Canada (613) 990-0752 (FAX: 952-6605)