1833801 Members
2618 Online
110063 Solutions
New Discussion

Re: gcc bug on HPUX

 
SOLVED
Go to solution
siba
Advisor

gcc bug on HPUX

hi ,
when i am trying to create a shared library on HPUX 11 it gives me the error


/opt/TWWfsw/gcc29/lib/gcc-lib/hppa1.1-hp-hpux11.00/2.95.2/../../../../include/g++-3/s
td/bastring.cc:32: `operator new' takes type `size_t' as first parameter
*** Error exit code 1


it seems this is a STL bug of gcc on HPUX which is not resolved.

can anyone suggest any turnaround for this problem.

regards
shiva
9 REPLIES 9
Stanimir
Trusted Contributor

Re: gcc bug on HPUX

Hi!
Please explain how you is trying to
create your shared library /sl-file/.
Regards.
Mehdi_1
Regular Advisor

Re: gcc bug on HPUX

Hi

Upgrade to the latest release of gcc:

http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.3.1

Also you need to apply the latest "ld" patch from the HP site.

Thanks

Mehdi
siba
Advisor

Re: gcc bug on HPUX

hi mehdi,
thanks for your response.
well my doubt regarding the same is
"Is there a patch number assotiated with the latest ld patch u are talking about."

an early response would be very helpful as i am stuck in the creation of this shared library which uses STL's

thanks and regards
shiva
Mehdi_1
Regular Advisor
Solution

Re: gcc bug on HPUX

Hi

I 've got PHSS_28434 on my system and it has worked well for me. But It seems there is some problem in regard to dynamic loading. you can use PHSS_26559. Or any latest ld cumulative patch should work fine.


Let me know If you have any problem.

Mehdi
ranganath ramachandra
Esteemed Contributor

Re: gcc bug on HPUX

i dont know if the linker patch is the solution, but fyi the latest is PHSS_28869 for 11.00.
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo

ranganath ramachandra
Esteemed Contributor

Re: gcc bug on HPUX

shiva, i'm sure you meant 'workaround', here is one:
http://gcc.gnu.org/ml/gcc-bugs/1999-10n/msg00827.html

the official gcc stand seems to be that gcc 2.95.x doesnt support hpux 11.00 - thats the 'turnaround' :)
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo

Mehdi_1
Regular Advisor

Re: gcc bug on HPUX

ranganath: I did say linker patch will solve shiva's problem. I 've suggested shiva upgrade his gcc from 2.95x to 3.3.1. But gcc-3.3.1 needs the latest linker patch.

Also, Although gcc-2.95x didn't support hpux-11, but It still worked on 11.00 platform. We used that for a while.


Mehdi
siba
Advisor

Re: gcc bug on HPUX

yes mehdi. the latest patch indeed solved my problem.

thanks for the help.

ranganath ramachandra
Esteemed Contributor

Re: gcc bug on HPUX

mehdi, im sorry i did not read your response properly.
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo