Operating System - HP-UX
1834862 Members
2381 Online
110070 Solutions
New Discussion

Re: Problem with Gcc4.2.1

 
SreekanthR
New Member

Problem with Gcc4.2.1

I have installed HP-UX 4.2.1 from the following link,
http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=2a08725cc2f02110725cc2f02110275d6e10RCRD
When I run the command gcc, it gives me the following error.
# gcc
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol 'pthread_mutex_lock' in load module '/opt/hp-gcc64/bin/gcc'.
/usr/lib/pa20_64/dld.sl: Unsatisfied code symbol 'pthread_mutex_unlock' in load module '/opt/hp-gcc64/bin/gcc'.
Killed


Any ideas as to why is it so?


TIA
Sreekanth
8 REPLIES 8
Dennis Handly
Acclaimed Contributor

Re: Problem with Gcc4.2.1

What OS version are you using? Only very old systems like 11.00 without any libc patches are missing the pthread_* stubs.

Get a newer libc patch.
SreekanthR
New Member

Re: Problem with Gcc4.2.1

Thanks for the reply Dennis,
I'm using HP 11.11
# uname -a
HP-UX bsohpux1 B.11.11 U 9000/800 2413721259 unlimited-user license
and the patches installed are
PHCO_22958
PHCO_23263
PHCO_24173
PHCO_24402 -- libc cumulative header
file patch
PHCO_25311
PHCO_25526
PHCO_25568
PHCO_25831
PHCO_26951
PHCO_27035
PHCO_27036
PHCO_27038
PHCO_27064
PHCO_27100
PHCO_27101
PHCO_27103
PHCO_27185
PHCO_27758
PHCO_27909
PHCO_28160
PHCO_28169
PHCO_28176
PHCO_28192
PHCO_28193
PHCO_28194
PHCO_28998
PHCO_29379
PHCO_30514
PHCO_30598
PHCO_31878
PHCO_33213
PHCO_33214
PHCO_33215
PHCO_33216
PHKL_23290
PHKL_23292
PHKL_23293
PHKL_23294
PHKL_23295
PHKL_23296
PHKL_23297
PHKL_23298
PHKL_23299
PHKL_23300
PHKL_23301
PHKL_23302
PHKL_23303
PHKL_23304
PHKL_23305
PHKL_23306
PHKL_23307
PHKL_23308
PHKL_23309
PHKL_23310
PHKL_23311
PHKL_23312
PHKL_23314
PHKL_23315
PHKL_23316
PHKL_23625
PHKL_23666
PHKL_23810
PHKL_23957
PHKL_24278
PHKL_25506
PHKL_26269
PHKL_26425
PHKL_26743
PHKL_27096
PHKL_27154
PHKL_27155
PHKL_27177
PHKL_27219
PHKL_27757
PHKL_28025
PHKL_28197
PHKL_28569
PHKL_28839
PHKL_29076
PHKL_29300
PHKL_29529
PHKL_29539
PHKL_29567
PHKL_29651
PHKL_29700
PHKL_30100
PHKL_30105
PHKL_30197
PHKL_30257
PHKL_30446
PHKL_30512
PHKL_30992
PHKL_31227
PHKL_31241
PHKL_32089
PHKL_32090
PHKL_32647
PHKL_33338
PHKL_33339
PHKL_33425
PHNE_23288
PHNE_23289
PHNE_23502
PHNE_28799
PHNE_30463
PHNE_32396
PHSS_22898
PHSS_25983
PHSS_26492
PHSS_26493
PHSS_32939
PHSS_33033

Do you think I still need a newer libc patch, if so I would appreciate if you could point me to one.
I'm a newbie to HP-UX and would really appreciate any help.

TIA
Sreekanth
H.Merijn Brand (procura
Honored Contributor

Re: Problem with Gcc4.2.1

I don't have to many good experiences with 64bit gcc-4 on HP-UX 11.11 and below. I stuck to 3.4.6. GNU gcc-4.2.x on 11.23 (both PA-RISC and IPF) works fine.

Even if you get everything working, you can expect runtime errors somewhere down the line.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
SreekanthR
New Member

Re: Problem with Gcc4.2.1

Hi Merjin,

Thanks for the update, in that case I guess its better for me to go back to gcc 3.4.
I read that 2 versions of gcc can coexist, but I would like to remove the 4.*. Do you see any problems in there?

Have a good one

Cheers
Sreekanth
Dennis Handly
Acclaimed Contributor

Re: Problem with Gcc4.2.1

>and the patches installed are

To find out what libc patch you have, use:
$ what /usr/lib/pa20_64/libc.2

>Do you think I still need a newer libc patch

Yes because you have the problem.

>if so I would appreciate if you could point

PHCO_34275 should work. The recommended one is PHCO_35743.
SreekanthR
New Member

Re: Problem with Gcc4.2.1

Thanks a ton Dennis for your reply, I installed the patch as mentioned and it now works like a charm.

Really appreciate your help.

Cheers
Sreekanth
SreekanthR
New Member

Re: Problem with Gcc4.2.1

Installing the patch mentioned by Dennis resolved the problem.
Dennis Handly
Acclaimed Contributor

Re: Problem with Gcc4.2.1

If you are happy with the answers you have gotten please read the following about assigning points and reopening threads:
http://forums11.itrc.hp.com/service/forums/helptips.do?#33
http://forums11.itrc.hp.com/service/forums/helptips.do?#41