473,325 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Run time error on AIX: "Symbol iconv was referenced"

kp
Hi,

I am compiling on an AIX 5.1 box and my test machine is AIX 5.3.

I run the foll. steps for compiling my test binary "test"
/usr/vacpp/bin/xlC test.c -c -o test.o -I/home/jag/progs/include -I/
usr/lpp/application/include
/usr/vacpp/bin/xlC -o test -L/home/jag/progs/lib -L/usr/lib -L/usr/lpp/
application/lib -brtl -s test.o -lapplicationapi -liconv
Now, when I run "test" on my AIX 5.3 box, I get the foll. error:
# ./test
exec(): 0509-036 Cannot load program ./opcapitest because of the
following errors:
rtld: 0712-001 Symbol iconv was referenced
from module /usr/lpp/application/lib/libapplicationapi.so(), but
a runtime definition
of the symbol was not found.
rtld: 0712-001 Symbol iconv_open was referenced
from module /usr/lpp/application/lib/libapplicationapi.so(), but
a runtime definition
of the symbol was not found.
rtld: 0712-001 Symbol iconv_close was referenced
from module /usr/lpp/application/lib/libapplicationapi.so(), but
a runtime definition
of the symbol was not found.
You have mail in /usr/spool/mail/root
#

Could you please tell me whats wrong here?

Thanks,
kp

P.S: if this is not the right forum for this question, please direct
me to the right one.
Mar 13 '08 #1
5 10447
kp wrote:
>
Hi,

I am compiling on an AIX 5.1 box and my test machine is AIX 5.3.
[...]
# ./test
exec(): 0509-036 Cannot load program ./opcapitest because of the
following errors:
rtld: 0712-001 Symbol iconv was referenced
from module /usr/lpp/application/lib/libapplicationapi.so(), but
a runtime definition
of the symbol was not found.
[... Snip similar iconv-related missing symbols ...]
P.S: if this is not the right forum for this question, please direct
me to the right one.
You would get more help in a group that discusses AIX and/or iconv.
However, my guess is that you are missing the shared / dynamically-
linked library that contains the iconv functions.

Find a group that discusses AIX and/or iconv, and show them the
above errors, along with the output of "ldd ./test" and perhaps the
output of "ldd /usr/lpp/application/lib/libapplicationapi.so" as
well.

--
+-------------------------+--------------------+-----------------------+
| Kenneth J. Brody | www.hvcomputer.com | #include |
| kenbrody/at\spamcop.net | www.fptech.com | <std_disclaimer.h|
+-------------------------+--------------------+-----------------------+
Don't e-mail me at: <mailto:Th*************@gmail.com>

Mar 13 '08 #2
In article <52**********************************@e23g2000prf. googlegroups.com>,
kp <ki************@gmail.comwrote:

[OT]
>I run the foll. steps for compiling my test binary "test"
/usr/vacpp/bin/xlC test.c -c -o test.o -I/home/jag/progs/include -I/
usr/lpp/application/include
/usr/vacpp/bin/xlC -o test -L/home/jag/progs/lib -L/usr/lib -L/usr/lpp/
application/lib -brtl -s test.o -lapplicationapi -liconv
>Now, when I run "test" on my AIX 5.3 box, I get the foll. error:
# ./test
exec(): 0509-036 Cannot load program ./opcapitest because of the
following errors:
rtld: 0712-001 Symbol iconv was referenced
from module /usr/lpp/application/lib/libapplicationapi.so(), but
a runtime definition
of the symbol was not found.
You linked with -liconv on the 5.1 box, and I am going to guess
that that is linking against a shared library rather than
a static link. But the shared library symbol definitions
for the iconv library are corrupt or missing on your AIX 5.3 box.

My speculation would be that your problem is that you do not
have an accessible libiconv.so (on your dynamic link path) on
your AIX 5.3 box. iconv is sometimes an add-on or optionally-
installed library rather than something always installed with the OS.
--
"Ignorance has been our king... he sits unchallenged on the throne of
Man. His dynasty is age-old. His right to rule is now considered
legitimate. Past sages have affirmed it. They did nothing to unseat
him." -- Walter M Miller, Jr
Mar 13 '08 #3
kp wrote:
Hi,

I am compiling on an AIX 5.1 box and my test machine is AIX 5.3.

I run the foll. steps for compiling my test binary "test"
/usr/vacpp/bin/xlC test.c -c -o test.o -I/home/jag/progs/include -I/
usr/lpp/application/include
/usr/vacpp/bin/xlC -o test -L/home/jag/progs/lib -L/usr/lib -L/usr/lpp/
application/lib -brtl -s test.o -lapplicationapi -liconv
Now, when I run "test" on my AIX 5.3 box, I get the foll. error:
# ./test
exec(): 0509-036 Cannot load program ./opcapitest because of the
following errors:
rtld: 0712-001 Symbol iconv was referenced
from module /usr/lpp/application/lib/libapplicationapi.so(), but
a runtime definition
of the symbol was not found.
This means that a runtime shared object was not found that
defines the symbol iconv.

To solve this you should do:

1) ldd /usr/lpp/application/lib/libapplicationapi.so

This will list you all the shared objects needed by your shared object.
Note that all iconv methods are in /usr/lib/nls/loc/iconv/*

2) Once you find in which shared object the symbol iconv lives, you have
to add the directory where that shared object is to your LIBPATH
environment variable.

3) Then run ldd again to be sure you fixed it
--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
Mar 13 '08 #4
Walter Roberson wrote:
In article <52**********************************@e23g2000prf. googlegroups.com>,
kp <ki************@gmail.comwrote:

[OT]
>I run the foll. steps for compiling my test binary "test"
/usr/vacpp/bin/xlC test.c -c -o test.o -I/home/jag/progs/include -I/
usr/lpp/application/include
/usr/vacpp/bin/xlC -o test -L/home/jag/progs/lib -L/usr/lib -L/usr/lpp/
application/lib -brtl -s test.o -lapplicationapi -liconv
>Now, when I run "test" on my AIX 5.3 box, I get the foll. error:
# ./test
exec(): 0509-036 Cannot load program ./opcapitest because of the
following errors:
rtld: 0712-001 Symbol iconv was referenced
from module /usr/lpp/application/lib/libapplicationapi.so(), but
a runtime definition
of the symbol was not found.

You linked with -liconv on the 5.1 box, and I am going to guess
that that is linking against a shared library rather than
a static link. But the shared library symbol definitions
for the iconv library are corrupt or missing on your AIX 5.3 box.

Note that all iconv methods are in /usr/lib/nls/loc/iconv/*
That is easy to verify
My speculation would be that your problem is that you do not
have an accessible libiconv.so (on your dynamic link path) on
your AIX 5.3 box. iconv is sometimes an add-on or optionally-
installed library rather than something always installed with the OS.
The LIBPATH environment variable controls where the loader searchs
for shared objects
--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
Mar 13 '08 #5
kp
Hi All,

Thanks a lot for your answers.

I was able to find the root cause of my issue.

I was not linking with iconv when I built the libapplicationapi.so,
which was causing the issue. I recompiled the library after linking
with iconv and the issue was resolved.

Thanks once again.

-kp

On Mar 13, 7:36 pm, jacob navia <ja...@nospam.comwrote:
Walter Roberson wrote:
In article <52abe2b5-385b-4d29-a4e8-db678b3e6...@e23g2000prf.googlegroups.com>,
kp <kiran.r.pil...@gmail.comwrote:
[OT]
I run the foll. steps for compiling my test binary "test"
/usr/vacpp/bin/xlC test.c -c -o test.o -I/home/jag/progs/include -I/
usr/lpp/application/include
/usr/vacpp/bin/xlC -o test -L/home/jag/progs/lib -L/usr/lib -L/usr/lpp/
application/lib -brtl -s test.o -lapplicationapi -liconv
Now, when I run "test" on my AIX 5.3 box, I get the foll. error:
# ./test
exec(): 0509-036 Cannot load program ./opcapitest because of the
following errors:
rtld: 0712-001 Symbol iconv was referenced
from module /usr/lpp/application/lib/libapplicationapi.so(), but
a runtime definition
of the symbol was not found.
You linked with -liconv on the 5.1 box, and I am going to guess
that that is linking against a shared library rather than
a static link. But the shared library symbol definitions
for the iconv library are corrupt or missing on your AIX 5.3 box.

Note that all iconv methods are in /usr/lib/nls/loc/iconv/*
That is easy to verify
My speculation would be that your problem is that you do not
have an accessible libiconv.so (on your dynamic link path) on
your AIX 5.3 box. iconv is sometimes an add-on or optionally-
installed library rather than something always installed with the OS.

The LIBPATH environment variable controls where the loader searchs
for shared objects

--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatiquehttp://www.cs.virginia.edu/~lcc-win32
Mar 13 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

68
by: Marco Bubke | last post by:
Hi I have read some mail on the dev mailing list about PEP 318 and find the new Syntax really ugly. def foo(x, y): pass I call this foo(1, 2), this isn't really intuitive to me! Also I...
3
by: ehm | last post by:
I have encountered an issue that has me totally confused. I have a page where the user clicks on a hyper-text link and is then directed towards another page (passing additional variables, etc.). If...
17
by: beliavsky | last post by:
Many of my C++ programs have the line using namespace std; but the "Accelerated C++" book of Koenig and Moo has many examples where the library names are included one at a time, for example ...
7
by: Alf P. Steinbach | last post by:
The fourth part of my attempted Correct C++ tutorial is now available, although for now only in Word format (use free Open Office if no Word), and also, it's not yet been reviewed at all -- ...
3
by: beachboy | last post by:
I have a problem if the parameter has a "&" symbol in querystring, i think asp.net will split the value into 2 values as "&" is a spliter any advise can give me to solve this problem? P.S. I...
1
by: Amedee Van Gasse | last post by:
I have written a small vb.net app that creates a Word and an Excel file. I referenced Word, Excel and Office as COM-components. The app does not work on a pc where Word or Excel are not...
30
by: Pep | last post by:
Is it best to include the code "using namespace std;" in the source or should each keyword in the std namespace be qualified by the namespace tag, such as std::cout << "using std namespace" <<...
2
by: Will hunting | last post by:
hi, when compiling using makefile on unix, I encounter such problem, anyone has similar experience on this? what could be the possible cause? thanks make OBJS=out/release "EXTRAFLAGS=-O...
1
by: suresh810in | last post by:
hi, I got thsi error --------------------------- VB6.EXE - Application Error --------------------------- The instruction at "0x0055a8ea" referenced memory at "0x608af85c". The memory could not...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.