Home » Developer & Programmer » Precompilers, OCI & OCCI » abort (coredump) with OCCI (hp-ux 11.23 ia64 , oracle 10g)
abort (coredump) with OCCI [message #283686] Tue, 27 November 2007 23:54 Go to next message
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

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/ has been stripped.
Debugging information is not available.

warning: Load module /disk2/oracle/product/ 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

Re: abort (coredump) with OCCI [message #334971 is a reply to message #283686] Sat, 19 July 2008 00:21 Go to previous message
Messages: 3
Registered: July 2008
Junior Member
using libocci.so
my makefile is:
-I$(ORACLE_HOME)/rdbms/public \
-I$(ORACLE_HOME)/plsql/public \
-I$(ORACLE_HOME)/network/public \

#CC_FLAG=-Wno-deprecated -fPIC -march=i486
LIB=$(ORACLE_LIBS) -lclntsh -locci
#LIB=$(ORACLE_LIBS) -l$(ORACLE_HOME)/lib/libclntsh.so -l$(ORACLE_HOME)/lib/libocci.so


@echo "Link $(OBJ) to $(PRG) begin......"
$(CC) $(CC_FLAG) $(INC) $(LIB) -o$(PRG) $<
@echo "Link $(OBJ) to $(PRG) end......"

@echo "Compile $(OBJ) begin......"
$(CC) $(CC_FLAG) $(INC) $(ORACLE_LIBS) -c $<
@echo "Compile $(OBJ) end......"

@echo "Removing linked and compiled files......"
rm $(OBJ) $(PRG)

[Updated on: Sat, 19 July 2008 00:22]

Report message to a moderator

Previous Topic: Getting Error : unable to open include files
Next Topic: c++ compilation
Goto Forum:

Current Time: Tue Jan 24 17:25:29 CST 2017

Total time taken to generate the page: 0.09950 seconds