Operating System - HP-UX
1752587 Members
4003 Online
108788 Solutions
New Discussion юеВ

Got ld core dump on HP 9000/782 with gcc 2.9-hppa-991112

 
SOLVED
Go to solution
Xinhuan Zheng_1
New Member

Got ld core dump on HP 9000/782 with gcc 2.9-hppa-991112

 
Simple is better
2 REPLIES 2
Magdi KAMAL
Respected Contributor
Solution

Re: Got ld core dump on HP 9000/782 with gcc 2.9-hppa-991112

Hi,

Your problem comes from the following :

ERROR: mmap failed for dld
ERROR: mmap failed for TSD


This two lines are reported by the command :

strings core ? more

This is a well known problem for new hp-ux 11.0 and due to a problem of swap sizing.

mmap() function is not able to allocate more memory even in swap space.

Please check with system admin the following formula :

Swap space = Four times the amount of physical memory.

After sizing swap space, the link edition will be fine.

Magdi

Vincent Fleming
Honored Contributor

Re: Got ld core dump on HP 9000/782 with gcc 2.9-hppa-991112

http://docs.hp.com/cgi-bin/onlinedocs.py?mpn=B2355-90720&service=hpux&path=../B2355-90720/00/00/1&title=HP-UX%20Linker%20and%20Libraries%20User%27s%20Guide

gives a nice explaination of linking shared libraries in HPUX. It also says that you must use the -z compiler option for the .c's. It may be different with gcc, however.
No matter where you go, there you are.