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