This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Using automake/libtool causes SegF
- To: automake at gnu dot org
- Subject: Using automake/libtool causes SegF
- From: Alexander Olefirenko <bofh at rbc dot ru>
- Date: Mon, 28 Aug 2000 10:12:42 +0400
- Organization: RBC
Hi!
i'm using automake to build library what woking with Oracle and uses another
library libclntsh.so from $ORACLE_HOME/lib
here's some rules from Makefile.am :
lib_LTLIBRARIES = libocicpp.la
INCLUDES= @ORACLE_INCLUDES@ -I$ORACLE_HOME/plsql/public and so on
libocicpp_la_LDFLAGS = -L@ORACLE_LIBDIR@ @ORACLE_LIBS@
$ORACLE_HOME/lib and -lclntsh.
it compiles and installs ok but when i trying to compile some programm test
like this :
test:
$(CXX) -locicpp -o test test.o
i get Segmentation Fault on first call of method in libocicpp.
But if i building libocicpp.so by hand like this :
libocicpp.so:
$(CXXLD) -shared -o $(OCICPPLIB) $(OCICPPOBJECTS) -L$(ORACLE_LIBDIR) $(ORACLE_LIBS)
it links and install ok to and test linking and executes successfully .
There could be the problem ?