Advertisement

08.06.2008 at 10:43PM PDT, ID: 23628301
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.6

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

Asked by Learner001 in Oracle Database, C Programming Language, IBM AIX Unix

Tags: , ,

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 ()
Start Free Trial
Attachments:
 
this is make file for the demo
 
 
Loading Advertisement...
 
[+][-]08.13.2008 at 02:52AM PDT, ID: 22220296

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Oracle Database, C Programming Language, IBM AIX Unix
Sign Up Now!
Solution Provided By: schwertner
Participating Experts: 2
Solution Grade: A
 
 
[+][-]08.20.2008 at 11:35AM PDT, ID: 22272567

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09.23.2008 at 02:58PM PDT, ID: 22554590

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09.28.2008 at 06:44AM PDT, ID: 22590908

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628