We help IT Professionals succeed at work.

AIX gcc compiled and linked OCILIB demo application gives segmenation fault when I run it

Learner001
Learner001 asked
on
947 Views
Last Modified: 2013-11-17
I have installed the library OCILIB successfully by running ( configure, make, make install) on
AIX 5.3. for the OCI lib I am using the client library for 10g client.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
This is my env:
_=/usr/bin/env
LANG=en_US
LOGIN=10gc
PATH=/m20/OraHome_1/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/m20/bin:/usr/bin/X11:/
sbin:.
LC__FASTMSG=true
LOGNAME=10gc
MAIL=/usr/spool/mail/10gc
LOCPATH=/usr/lib/nls/loc
USER=10gc
AUTHSTATE=compat
SHELL=/usr/bin/ksh
ODMDIR=/etc/objrepos
HOME=/m20
TERM=vt100
MAILMSG=[YOU HAVE NEW MAIL]
ORACLE_HOME=/m20/OraHome_1
PWD=/patches/ocilib/ocilib-2.5.1/demo
TZ=SAUST-3
A__z=! LOGNAME
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
LIBPATH=/m20/OraHome_1/lib32


Trying to run the demo application of OCILIB  which is at site
http://vicenzo.developpez.com/ocilib/doc/html/group__g__demo.html
gives segmentation fault error.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Here is the gdb output when I tried to debug :
$ gdb ocilib_demo core
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-ibm-aix5.1.0.0"...
(no debugging symbols found)...
Core was generated by `ocilib_demo'.
Program terminated with signal 11, Segmentation fault.
#0  0xd41e0754 in OCIEnvCreate ()
   from /usr/local/lib/libocilib.a(libocilib.so.2)
(gdb) bt
#0  0xd41e0754 in OCIEnvCreate ()
   from /usr/local/lib/libocilib.a(libocilib.so.2)
#1  0xd41f43a8 in OCI_Initialize (
    err_handler=@0x20000d00: 0x100004a0 <err_handler>, home=0x2 "", mode=2)
    at ocilib.c:3144
#2  0x10000624 in main ()

Makefile-demo.txt
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2008
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Top Expert 2015
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.