Operating System - HP-UX
1751701 Members
5641 Online
108781 Solutions
New Discussion юеВ

Re: Unresolved symbol in HPUX 11.00

 
Jithin Prakash
Advisor

Unresolved symbol in HPUX 11.00

/usr/lib/dld.sl: Unresolved symbol: wctob (code) from /libstdc++.sl.6
My product is compiled with hp-gcc. On running the binary, I get this error. This does not occur in HPUX 11.11 or HPUX 11.23. Is there any hotfix/patch that I can apply HPUX 11.00 PA-RISC?
Can you please tell me how to resolve this issue? Need this a little fast. Thanks a lot.
9 REPLIES 9
avizen9
Esteemed Contributor

Re: Unresolved symbol in HPUX 11.00

Hello Jithin

please rerer below is your solusion, thanks,


http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1242185
Jithin Prakash
Advisor

Re: Unresolved symbol in HPUX 11.00

Please note that the solution you have given seems to be changing linker option for acc, but I use gcc compiler. Also, the link gives a problem associated with 11.11, while I am having this issue only on 11.00 and not on 11.11. Any ideas?
Dennis Handly
Acclaimed Contributor

Re: Unresolved symbol in HPUX 11.00

Unless you built your libstdc++ for 11.00, it isn't likely to work on 11.00.

Your libc.sl doesn't have wctob. This may be part of the massive 11.11 changes that added all of these wchar_t functions. But if you don't have the last 11.00 libc patch, install that.

(I assume you know 11.00 isn't supported.)

>avizen9: please refer below is your solution

Not hardly. All Unresolved symbol messages likely have different causes.
Jithin Prakash
Advisor

Re: Unresolved symbol in HPUX 11.00

Thanks a lot Dennis. Firstly, the libstdc++ is not compiled in HPUX 11.00, but is taken from gcc installed in 11.23. This could be the issue. But can you tell me some way to work around this problem..

Also, the libc cumulative patch PHCO_28425 is installed in the system I am trying out.

Note: ld(1) and linker toold patch also is installed.

I know 11.00 is no longer supported, but wat to do.. need to do this.. :)
Dennis Handly
Acclaimed Contributor

Re: Unresolved symbol in HPUX 11.00

>gcc installed in 11.23. This could be the issue.

Exactly. Code is only forward compatible, not backward. You may soon run into missing system calls.

>But can you tell me some way to work around this problem.

You need to build the application on 11.00 with a g++ made for 11.00.
Jithin Prakash
Advisor

Re: Unresolved symbol in HPUX 11.00

What you say is true, but actually, I managed to run this same binaries on 11.11 without issues. So, if the binaries compiled on 11.23 can run in 11.11, should there not be a way to run on 11.00 too? Any ideas?
Jithin Prakash
Advisor

Re: Unresolved symbol in HPUX 11.00

Found something interesting... wctob seems to be a newly added function in HPUX 11i. i saw this in HPUX 11i release notes.. omg, now what to do? Please help :)
Dennis Handly
Acclaimed Contributor

Re: Unresolved symbol in HPUX 11.00

>if the binaries compiled on 11.23 can run in 11.11, should there not be a way to run on 11.00 too?

You were extremely lucky.

>now what to do?

Can you recompile on 11.00?
Jithin Prakash
Advisor

Re: Unresolved symbol in HPUX 11.00

last resort.. will update if I get any workaround or patch which solves this issue.. :)