470,815 Members | 1,231 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

error when calling external c function

Hy!

I am trying to convert a win Oracle application to solaris! We have use
external c functions which I have ibncluded in a shared object. See the
makefile below:

OBJECTS = definitions.o eventlog.o arc_xpi.o OracleFuncs.o

DEFS = -DOS_SOLARIS -fPIC -G

libarc_xpi.so : $(OBJECTS)
gcc $(DEFS) -shared -o libarc_xpi.so
$(OBJECTS) -L/usr/lib -ldl -L/usr/local/lib -lgcc_s -lgcc

definitions.o : definitions.cpp definitions.h
gcc $(DEFS) -c definitions.cpp

eventlog.o : eventlog.cpp eventlog.h definitions.h
gcc $(DEFS) -c eventlog.cpp

arc_xpi.o : arc_xpi.cpp arc_xpi.h definitions.h
gcc $(DEFS) -c arc_xpi.cpp

OracleFuncs.o : OracleFuncs.cpp definitions.h
gcc $(DEFS) -c OracleFuncs.cpp

clean :
rm -f arc_xpi.so $(OBJECTS)
Then I am creating an library in Oracle and a function which uses my c
function. Until here everything works fine. But when I am starting the new
function I am getting the error message that extproc32plsextproc couldn´t
open libgcc_s.so.1!

My so is 32 bit and I am using extproc32.

Can anybody help me out of this.

Ronny
Jul 19 '05 #1
0 2713

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Aravind | last post: by
4 posts views Thread by Vish | last post: by
1 post views Thread by developer | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.