abort (coredump) with OCCI [message #283686] |
Tue, 27 November 2007 23:54 |
varuntayur
Messages: 4 Registered: November 2007
|
Junior Member |
|
|
The complilation of db.cc does not throw any problems using the following commands .
g++ -c db.cc -I$ORACLE_HOME/rdbms/public -I$ORACLE_HOME/lib32 -Wn
o-deprecated
g++ -o client db.o $ORACLE_HOME/lib32/libclntsh.so.10.1 $ORACLE_H
OME/lib32/libocci10.a `cat $ORACLE_HOME/lib/sysliblist` -lstd_v2 -lCsup
After compilation ,on trying to run , "Abort (coredump) " is thrown.
Here is the coredump .
$ gdb client -c core
HP gdb 5.5.1 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 5.5.1 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
..
Core was generated by `client'.
Program terminated with signal 6, Aborted.
warning: Load module /disk2/oracle/product/10.2.0.2.0/lib32/libclntsh.so.10.1 has been stripped.
Debugging information is not available.
warning: Load module /disk2/oracle/product/10.2.0.2.0/lib32/libnnz10.so has been stripped.
Debugging information is not available.
warning: Some of the libraries in the core file are different from the libraries on this computer. It might be possible to proceed with your debugging process successfully. However, if you run into problems you must use the versions of the libraries used by the core. The mismatches are:
./client in the core file is different from
./client used by gdb
#0 0x60000000c0340310:0 in kill+0x30 () from /usr/lib/hpux32/libc.so.1
(gdb)
Thanks.
|
|
|
Re: abort (coredump) with OCCI [message #334971 is a reply to message #283686] |
Sat, 19 July 2008 00:21 |
mosaic
Messages: 3 Registered: July 2008
|
Junior Member |
|
|
using libocci.so
my makefile is:
ORACLE_INCLUDES=-I$(ORACLE_HOME)/rdbms/demo \
-I$(ORACLE_HOME)/rdbms/public \
-I$(ORACLE_HOME)/plsql/public \
-I$(ORACLE_HOME)/network/public \
-I$(ORACLE_HOME)/precomp/public
ORACLE_LIBS=-L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/rdbms/lib
CC=g++
#CC_FLAG=-Wno-deprecated -fPIC -march=i486
CC_FLAG=-Wall
INC=$(ORACLE_INCLUDES)
LIB=$(ORACLE_LIBS) -lclntsh -locci
#LIB=$(ORACLE_LIBS) -l$(ORACLE_HOME)/lib/libclntsh.so -l$(ORACLE_HOME)/lib/libocci.so
PRG=occidemo2
SRC=occidemo.cpp
OBJ=occidemo.o
$(PRG):$(OBJ)
@echo "Link $(OBJ) to $(PRG) begin......"
$(CC) $(CC_FLAG) $(INC) $(LIB) -o$(PRG) $<
@echo "Link $(OBJ) to $(PRG) end......"
$(OBJ):$(SRC)
@echo "Compile $(OBJ) begin......"
$(CC) $(CC_FLAG) $(INC) $(ORACLE_LIBS) -c $<
@echo "Compile $(OBJ) end......"
clean:
@echo "Removing linked and compiled files......"
rm $(OBJ) $(PRG)
[Updated on: Sat, 19 July 2008 00:22] Report message to a moderator
|
|
|