C++ executable is not loading in AIX 6.1 OS LEVEL 6100-09 with Oracle11g.


 
Thread Tools Search this Thread
Top Forums Programming C++ executable is not loading in AIX 6.1 OS LEVEL 6100-09 with Oracle11g.
# 1  
Old 01-28-2015
Display C++ executable is not loading in AIX 6.1 OS LEVEL 6100-09 with Oracle11g.

Hi Everybody,
I am getting following error message during execution of my c++ executable "ofsrm" . I am using AIX 6.1 OS LEVEL 6100-09 with Oracle 11g database. Any suggestion on the same?

Code:
Could not load program ofsrm: rtld: 0712-001 Symbol  GetOracleDriver__FiPc was referenced from module  /build1/build/SourcePro/ficdb/lib/libFSGBU/libaccess.a(libaccess.o), but  a run time definition of the symbol was not found. rtld: 0712-002 fatal  error: exiting.

I checked my executable with ldd. It is loading all the library other than liboci.a. I have also added the corresponding path in LIB_PATH. Still same issue is coming.

Thanks,
RKS

Last edited by Don Cragun; 01-28-2015 at 04:47 AM.. Reason: Add CODE and ICODE tags.
# 2  
Old 01-28-2015
The symbol was there when you compiled, so something is amiss in your environment. I like 'ldd -rsv' to see more detail. Google says that's '$LIBPATH' !
# 3  
Old 01-29-2015
C++ executable is not loading in AIX 6.1 OS LEVEL 6100-09 with Oracle11g.

Hi,
Following is the sample program. Same is working in AIX6.1 OS Level 6100-04 but showing following error in the AIX 6.1 OS LEVEL 6100-09 with Oracle11g.

test.cpp
=========
Code:
#include<iostream>
using namespace std;

int main()
{
  cout<<"Test Program."<<endl;
  return 1;
}

To Compile:
=============
Code:
 xlC_r  -q64 -Dx64 -bbigtoc  -qnotempinc -qnoro  -g  -D_RWCONFIG_15d=1 -c  test.cpp -o test.o

To Create Executable:
================
Code:
xlC_r -u GetOracleDriver__FiPc -q64 -Dx64 -bbigtoc  -qnotempinc -qnoro  -D_RWCONFIG_15d=1 test.o -o testExe -L/build1/build/SourcePro/SRC/bin -liomod -L/oracleorg/oracle/app/oracle/product/12.1.0/client_1/lib /usr/lib/libperfstat.a /oracleorg/oracle/app/oracle/product/12.1.0/client_1/lib/naect.o /oracleorg/oracle/app/oracle/product/12.1.0/client_1/lib/naeet.o /oracleorg/oracle/app/oracle/product/12.1.0/client_1/lib/nautab.o /oracleorg/oracle/app/oracle/product/12.1.0/client_1/lib/scorept.o   `cat /oracleorg/oracle/app/oracle/product/12.1.0/client_1/lib/ldflags`    -lncrypt12 -lnsgr12 -lnzjs12 -ln12 -lnl12 -lnro12 `cat /oracleorg/oracle/app/oracle/product/12.1.0/client_1/lib/ldflags` -lncrypt12 -lnsgr12 -lnzjs12 -ln12 -lnl12 -loraz -llzopro -lorabz2 `if [ -r /oracleorg/oracle/app/oracle/product/12.1.0/client_1/lib/libnnzst12.a ] ; then echo -lnnzst12 ; else echo -lnnz12 ; fi` -lzt12 -lztkg12 -lztkg12 -lclient12 -lnnetd12  -lvsn12  -lcommon12 -lgeneric12 -lmm -lsnls12 -lnls12  -lcore12 -lsnls12  -lnls12 -lcore12 -lsnls12 -lnls12 -lxml12  -lcore12 -lunls12 -lsnls12 -lnls12 -lcore12 -lnls12 `cat /oracleorg/oracle/app/oracle/product/12.1.0/client_1/lib/ldflags`    -lncrypt12 -lnsgr12 -lnzjs12 -ln12 -lnl12 -lnro12 `cat /oracleorg/oracle/app/oracle/product/12.1.0/client_1/lib/ldflags`    -lncrypt12 -lnsgr12 -lnzjs12 -ln12 -lnl12 -loraz -llzopro -lorabz2   -lclient12 -lnnetd12  -lvsn12  -lcommon12 -lgeneric12 -lpls12  -lrt  -lsnls12 -lnls12  -lcore12 -lsnls12  -lnls12 -lcore12 -lsnls12 -lnls12 -lxml12  -lcore12 -lunls12 -lsnls12 -lnls12 -lcore12 -lnls12  -lclient12 -lnnetd12  -lvsn12  -lcommon12 -lgeneric12 -lsnls12 -lnls12  -lcore12 -lsnls12  -lnls12 -lcore12 -lsnls12 -lnls12 -lxml12  -lcore12 -lunls12 -lsnls12 -lnls12 -lcore12 -lnls12  -lld -lm -lodm  -lm   -lpthreads /oracleorg/oracle/app/oracle/product/12.1.0/client_1/lib/libons.a -L/usr/java6_64/jre/lib/ppc64/j9vm -ljvm -L/build1/build/SourcePro/ofsa3plib/RogueWave/SourcePro/Ed10/aix/64/lib -ltls8015d -lnsl  -ldl  -brtl -bloadmap:log.txt

Execution Out Put :
===============
Code:
 ./testExe
Could not load program testExe:
rtld: 0712-001 Symbol GetOracleDriver__FiPc was referenced
      from module /build1/build/SourcePro/ficdb/lib/libFSGBU/libaccess.a(libaccess.o), but a runtime definition
            of the symbol was not found.
rtld: 0712-002 fatal error: exiting.

Regards,
RKS

Last edited by Don Cragun; 01-29-2015 at 02:35 AM.. Reason: Add CODE tags and remove FONT and COLOR tags.
# 4  
Old 01-29-2015
What's the output from "ldd -rsv testExe"? Both from where it works and where it fails.

You were asked this once before.
# 5  
Old 02-02-2015
$ ldd -rsv testExe
Usage: ldd [ -Llibpath ] executable
Here -rsv is not working.

Following is the ldd information of my executable.
$ ldd testExe
testExe needs:
/build1/build/SourcePro/ficdb/lib/libFSGBU/libiomod.a(libiomod.o)
/usr/lib/libperfstat.a(shr_64.o)
/usr/lib/libodm.a(shr_64.o)
/usr/lib/libpthreads.a(shr_xpg5_64.o)
/usr/java6_64/jre/lib/ppc64/j9vm/libjvm.so
/build1/build/SourcePro/ficdb/lib/libFSGBU/libtls8015d.a(tls15d.o)
/usr/lib/libnsl.a(shr_64.o)
/usr/lib/libdl.a(shr_64.o)
/usr/vacpp/lib/libC.a(shr_64.o)
/usr/vacpp/lib/libC.a(ansi_64.o)
/usr/lib/libc.a(shr_64.o)
/usr/lib/libc.a(aio_64.o)
/build1/build/SourcePro/ficdb/lib/libFSGBU/libaccess.a(libaccess.o)
/build1/build/SourcePro/ficdb/lib/libFSGBU/libutils.a(libutils.o)
/build1/build/SourcePro/ficdb/lib/libFSGBU/libtscdbg.a(libtscdbg.o)
/build1/build/SourcePro/ficdb/lib/libFSGBU/libofsabase.a(libofsabase.o)
/build1/build/SourcePro/ficdb/lib/libFSGBU/libglbl.a(libglbl.o)
/build1/build/SourcePro/ficdb/lib/libFSGBU/libunix.a(libunix.o)
/build1/build/SourcePro/ficdb/lib/libFSGBU/librevdtl.a(librevdtl.o)
/usr/vacpp/lib/libC.a(shr2_64.o)
/usr/lib/libc_r.a(shr_64.o)
/usr/lib/libcfg.a(shr_64.o)
/unix
/usr/lib/liblvm.a(shr_64.o)
/usr/lib/libcorcfg.a(shr_64.o)
/usr/vacpp/lib/libC.a(shr3_64.o)
/usr/lib/libthread.a(shr_64.o)
/usr/lib/libtli.a(shr_64.o)
/usr/vacpp/lib/libC.a(shrcore_64.o)
/usr/vacpp/lib/libC.a(ansicore_64.o)
/usr/lib/libcrypt.a(shr_64.o)
/build1/build/SourcePro/ficdb/lib/libSms.so
/build1/build/SourcePro/ficdb/lib/libDatabase.so
/build1/build/SourcePro/ficdb/lib/libmisc.so
/build1/build/SourcePro/ficdb/lib/libicc.so
/build1/build/SourcePro/ficdb/lib/libiccsock.so
/build1/build/SourcePro/ficdb/lib/libI18N.so
/usr/lib/libsrc.a(shr_64.o)
/usr/lib/libc.a(pse_64.o)
/oracleorg/oracle/app/oracle/client_1/lib/libclntsh.so
/usr/lib/libpthread.a(shr_xpg5_64.o)
/build1/build/SourcePro/ficdb/lib/libiconv.a(shr4_64.o)
# 6  
Old 02-02-2015
Quote:
Originally Posted by achenle
What's the output from "ldd -rsv testExe"? Both from where it works and where it fails.

You were asked this once before.
Read and heed.
# 7  
Old 02-03-2015
-rsv option for ldd is not working. It is respecting executable name immediate after ldd. I am using AIX6.1 machine.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

C++ executable is not loading in AIX 6.1 OS LEVEL 6100-09 with Oracle11g.

Hi Everybody, I am getting following error message during execution of my c++ executable "ofsrm" . I am using AIX 6.1 OS LEVEL 6100-09 with Oracle 11g database. Any suggestion on the same? Could not load program ofsrm: rtld: 0712-001 Symbol GetOracleDriver__FiPc was referenced from module ... (1 Reply)
Discussion started by: Ratikanta
1 Replies

2. AIX

Loading AIX kernel extensions on reboot

Greetings, Does anyone know how to load AIX kernel extensions on reboot? I know that Oracle loads it's postwait kernel extension via a executable in /etc/inittab. I'm assuming this executable calls the "sysconfig" system call and loads it. What if I wrote my own? What is the proper way in AIX to... (3 Replies)
Discussion started by: jbleistein
3 Replies

3. AIX

AIX OS level

I currently have 2 servers running AIX 6.1 on them, but the OS level is listed differently in WSM. I am fairly new to AIX and just re-installed the OS on one of the boxes that originally had 5.1 on it. It now shows 6.1.0.0, whereas the other one shows 6.1.3.0. I have been trying to figure out how... (2 Replies)
Discussion started by: rifamilyguy
2 Replies

4. AIX

From 6100-04-01-0944 to 6100-07-02-1150 ...HOW?

Any information will be appreciated.:wall: (2 Replies)
Discussion started by: 300zxmuro
2 Replies

5. Programming

Pro*C not running in oracle11g R2 on AIX 6.1....

Hi All, When I am running a pro*c executable on an AIX 6.1.0.0 and Oracle 11gR2 environment which is complied in AIX 6.1.0.0 and Oracle 11gR2 environment only , I am getting segment fault error . When the same code is getting compiled in AIX5.3 Oracle 10gR2 env and run in AIX5.3 Oracle 10gR2 ,... (0 Replies)
Discussion started by: amaniitd
0 Replies

6. AIX

Loading a shared library in AIX

Hi, I have an application running on AIX. The app is deployed on Webspshere server. Due to some reason, i have to make use of a third party library (Sigar API's) from my application. This library requires an .so file as well. Is there any location where i can put this *.so file and it will... (1 Reply)
Discussion started by: user_guest
1 Replies

7. AIX

Compile PHP in AIX: Loading issues

Finally I was able to compile PHP on AIX. When I try to load from Apache, I get the below error. /install/usr/local/apache2/bin:>apachectl -f /install/usr/local/apache2/conf/httpd.conf -k stop httpd: Syntax error on line 53 of /install/usr/local/apache2/conf/httpd.conf: Cannot load... (0 Replies)
Discussion started by: KarthikKannan
0 Replies

8. AIX

"fuser -c -k /XXX/XXXXXXX" Fails and stuck on AIX 6100-05-01-1016

Hi I was wondering if anybody has come across in a failure of fuser command. We have a backup script that is: fuser -c -k /XXX/XXXXXXX sync;sync umount /XXX/XXXXXXX/ backup -0 -f /dev/rmt0.1 -u /dev/XXXXXXXlv mount /XXX/XXXXXXX/ sync;sync The script is called from crontab via an... (2 Replies)
Discussion started by: ggovotsis
2 Replies

9. AIX

How to upgrade AIX Firmware & TL Maintenance Level in AIX

Steps to upgrade AIX TL ( technology Level ) / Maintenance Level in AIX ( including Firmware HMC VIOS ) This article or post covers upgrades for - Hardware Management Console ( HMC ) - Firmware ( also known as microcode ) - VIO ( Virtual I/O Server = PowerVM ) - AIX Version, Technology... (2 Replies)
Discussion started by: filosophizer
2 Replies

10. AIX

AIX Technology Level 9

Hi Guys I am currently running AIX 5.3 technology level 6 on a 570, but want to go up to level 9. However I am struggling to find on IBM's website the new features that it brings in, along with the commands for these new features. Can any one help me with this? Thanks (7 Replies)
Discussion started by: ryanbsc@gmail.c
7 Replies
Login or Register to Ask a Question