home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / sysv386 / 12595 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  2.4 KB

  1. Xref: sparky comp.unix.sysv386:12595 comp.unix.questions:9527 comp.unix.programmer:3987
  2. Path: sparky!uunet!mcsun!Germany.EU.net!unido!isaak.isa.de!omega!av
  3. From: av@omega.ssw.de (Andreas Vogel)
  4. Newsgroups: comp.unix.sysv386,comp.unix.questions,comp.unix.programmer
  5. Subject: Re: What causes this ld error?
  6. Message-ID: <1992Jul28.223045.25639@omega.ssw.de>
  7. Date: 28 Jul 92 22:30:45 GMT
  8. References: <1992Jul27.205816.20382@bradley.bradley.edu>
  9. Organization: Omega Softlab
  10. Lines: 60
  11.  
  12. In article <1992Jul27.205816.20382@bradley.bradley.edu> guru@camelot.bradley.edu (Jerry Whelan) writes:
  13. >I'm building a debugged version of MoNet (a network monitor
  14. >program) on the following system:
  15. >
  16. >AT&T 386-33 w/ 16 meg of RAM and 32 meg of swap.
  17. >AT&T SVR4 2.0.1
  18. >X11r5 pl13
  19. >gcc 2.2.1
  20. >
  21. >
  22. >When I do the final link stage for certain programs
  23. >(xmonet for example) I get this error:
  24. >
  25. >ld: xmonet: libelf error:  Memory error: output file space elf_update: 
  26. >
  27. >I get this even if I do the final link stage with the stock cc instead
  28. >of gcc.
  29. >
  30. >I think the problem is due to the fact that I'm building with debugging
  31. >turned on and the monet stuff is pretty big to begin with and somewhere
  32. >I'm running out of space (memory or disk, I don't know.)  I've set
  33. >my ulimit to 17 meg and done the compile on the console without
  34. >X running.  I still get the same error.
  35. >
  36. >Has anyone else seen this error and know how to ``fix'' it?
  37. >
  38.  
  39. Yes. The default parameters for the kernel are somewhat low configured.
  40. Some time ago somebody posted the values for the tunable parameters
  41. which should be adjusted in the file /etc/conf/cf.d/stune. I am working
  42. with this values with success (and be able to link really huge programs :-))
  43.  
  44. The following parameters are in my /etc/conf/cf.d/stune file:
  45.  
  46. # change default resource limits (these are per process limits)
  47. # raise the default coresize limit from 1MB to 4MB
  48. SCORLIM  0x400000
  49. HCORLIM  0x400000
  50.  
  51. # raise other memory defaults from 16MB to 64MB
  52. SDATLIM  0x4000000
  53. HDATLIM  0x4000000
  54. SSTKLIM  0x4000000
  55. HSTKLIM  0x4000000
  56. SVMMLIM  0x4000000
  57. HVMMLIM  0x4000000
  58.  
  59. # raise memory for shell and increase system ulimit
  60. ARG_MAX  51200
  61. ULIMIT   12288
  62.  
  63. BTW, the comments are only valid for this posting and should be omitted
  64. in the stune file.
  65.  
  66. Luky linking... :-))
  67.  
  68. -- 
  69. Andreas Vogel                   Bahnhofstr. 13 / D-7300 Esslingen / Germany
  70.                 Voice:  +49-711/357613
  71.                 E-Mail: av@ssw.de
  72.