Operating System - HP-UX
1752762 Members
5117 Online
108789 Solutions
New Discussion юеВ

Re: 64 bit iconv - mismatched ABI /usr/local/lib/libiconv.a

 
Dennis Handly
Acclaimed Contributor

Re: 64 bit iconv - mismatched ABI /usr/local/lib/libiconv.a

> I get "undefined sysmbol - iconv_open(), iconv_close()".

What's the exact message?

>2) Sample code compiles and links for 32 bit version

I can't compile it:
error: 'CODESET' undeclared
string too.

>3) I am more than willing to use HP's iconv() stuff. But, again I doubt if it supports iconv_open() and iconv_close() calls.

Why do you say that? The iconv_open(3) is there.

>That means HP's native iconv() should have .a/.sl (archive/shared object) file

As Steven said, it's called libc.

>Steven: Or it's in the normal C RTL stuff

Yes.
jay11
Occasional Advisor

Re: 64 bit iconv - mismatched ABI /usr/local/lib/libiconv.a

1) exact link error:-
ld: Unsatisfied symbol "libiconv_open" in file sampleConverter.o
ld: Unsatisfied symbol "libiconv" in file sampleConverter.o
ld: Unsatisfied symbol "libiconv_close" in file sampleConverter.o

For 64 bit PA-RISC dependency, I am linking with /usr/lib/pa20_64/libdld.sl

2) Regarding sample test code, I forgot to paste:-

#include
#include
#include
Steven Schweda
Honored Contributor

Re: 64 bit iconv - mismatched ABI /usr/local/lib/libiconv.a

> [...] I get
>
> "undefined sysmbol - iconv_open(), iconv_close()".

In some circles, quotation marks are used to
express the idea that the author is not just
making stuff up.

> 1) exact link error:-
> ld: Unsatisfied symbol "libiconv_open" in file sampleConverter.o
> [...]

But not here, apparently.

As "man iconv_open" might suggest, the HP-UX
function is called "iconv_open", not
"libiconv_open". Sometimes one gets what he
asks for, regardless of what he wants.