Operating System - HP-UX
1824881 Members
3803 Online
109675 Solutions
New Discussion юеВ

Re: Linking to a big size library on HPUX11 aCC compiler

 
Prashun Gupta
Advisor

Linking to a big size library on HPUX11 aCC compiler

Hi All

I am trying to compile a program which has to be linked with a product library which is 173 MB. while linking it is giving following output.
Can you suggest how to come out of it.


aCC +inst_all +DAportable +DS1.1 -I/usr -I/build/ba_hp11_dest.cc.USING/inc -I/usr/include -g1 -DBASE -DSYSV -D_XOPEN_SOURCE -I/usr/include/X11R6 -I/usr/dt/include -I/usr/dt/include -I/usr/include/Motif2.1 -I/usr/informix/incl/esql -I/opt/aCC -I/opt/aCC/include -I/opt/aCC/include/SC -I/opt/aCC/include/iostream -I/opt/aCC/include/rw -I. -I/opt/Xint/3.3 -I/build/ba_hp11_dest.cc.USING/inc -c test.C

Linking tclmodel
aCC +inst_all +DAportable +DS1.1 -I/usr -I/build/ba_hp11_dest.cc.USING/inc -I/usr/include -g1 -DBASE -DSYSV -D_XOPEN_SOURCE -I/usr/include/X11R6 -I/usr/dt/include -I/usr/dt/include -I/usr/include/Motif2.1 -I/usr/informix/incl/esql -I/opt/aCC -I/opt/aCC/include -I/opt/aCC/include/SC -I/opt/aCC/include/iostream -I/opt/aCC/include/rw -I. -I/opt/Xint/3.3 -I/build/ba_hp11_dest.cc.USING/inc -o tclmodel test.o -L. -L/build/ba_hp11_dest.cc.USING/lib -L/opt/aCC/lib -lbasemaster -lGraph -lGA -L/opt/Xint/3.3/lib -L/usr/lib/X11R6 -L/usr/dt/lib -L/usr/lib/Motif2.1 -L/opt/image/lib -L/usr/informix/lib -L/usr/informix/lib/esql -L/usr/lib -l++ -lixsql -lixasf -lixgen -lixos -lixgls -lnsl_s -lm -lV3 -lcl -lsec /usr/informix/lib/esql/checkapi.o -lixglx -lndbm -lDtHelp -lil -lXm -lXt -lX11 -lINTBase -lTable -lV3 -ll -Wl,-ashared -lm /usr/lib/year2000.o
Malloc is out of memory, leaks over 512k:
/usr/ccs/bin/ld: Out of memory
Malloc: 3219168 bytes allocated by Unknown:0x34e23
Link failed ... deleting tclmodel

3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor

Re: Linking to a big size library on HPUX11 aCC compiler

It appears that you need to increase maxdsiz.
If it ain't broke, I can fix that.
Prashun Gupta
Advisor

Re: Linking to a big size library on HPUX11 aCC compiler

Do we have maxdsiz on HPUX11 Box. I don't have root access. I am seeing in /stand the system file.
Prashun
Prashun Gupta
Advisor

Re: Linking to a big size library on HPUX11 aCC compiler

I have maxdsiz 63MB probably increase in the size will solve the problem.
Full Mark to you
Thanks
Prashun