[Orclib-devel] cannot install ocilib on SUN Solaris 10 Sparc 64bit.
Open source C and C++ library for accessing Oracle Databases
Brought to you by:
vince_del_paris
From: Ben K. <be...@ya...> - 2010-05-18 16:32:27
|
Hello, I have been trying to install OCILIB on Sun Solaris 10 Sparc machine over a week and got stuck with it. $ ./configure --with-oracle-lib-path=/pamdu01/app/oracle/product/10.2.0/db_1/lib <-- pointed to 64bit of lib.. I get ld: fatal: file /pamdu01/app/oracle/product/10.2.0/db_1/lib/libclntsh.so: wrong ELF class: ELFCLASS64 ld: fatal: File processing errors. No output written to .libs/libocilib.so.3.5.1 collect2: ld returned 1 exit status make[2]: *** [libocilib.la] Error 1 make[2]: Leaving directory `/home/oracle/ocilib-3.5.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/oracle/ocilib-3.5.1' make: *** [all] Error 2 So I tried with 32 bit and I get the following error: mv -f .deps/libocilib_la-subscription.Tpo .deps/libocilib_la-subscription.Plo /bin/bash ../libtool --tag=CC --mode=link gcc -DOCI_IMPORT_LINKAGE -DOCI_CHARSET_ANSI -g -O2 -version-info 8:1:5 -o libocilib.la -rpath /usr/local/lib libocilib_la-bind.lo libocilib_la-callback.lo libocilib_la-connection.lo libocilib_la-define.lo libocilib_la-exception.lo libocilib_la-handle.lo libocilib_la-iterator.lo libocilib_la-lob.lo libocilib_la-mutex.lo libocilib_la-resultset.lo libocilib_la-string.lo libocilib_la-timestamp.lo libocilib_la-collection.lo libocilib_la-connpool.lo libocilib_la-element.lo libocilib_la-file.lo libocilib_la-hash.lo libocilib_la-library.lo libocilib_la-long.lo libocilib_la-number.lo libocilib_la-typeinfo.lo libocilib_la-thread.lo libocilib_la-transaction.lo libocilib_la-column.lo libocilib_la-date.lo libocilib_la-error.lo libocilib_la-format.lo libocilib_la-interval.lo libocilib_la-list.lo libocilib_la-memory.lo libocilib_la-object.lo libocilib_la-statement.lo libocilib_la-ref.lo libocilib_la-threadkey.lo libocilib_la-dirpath.lo libocilib_la-event.lo libocilib_la-subscription.lo -L/pamdu01/app/oracle/product/10.2.0/db_1/lib32 -lclntsh gcc -shared -Wl,-h -Wl,libocilib.so.3 -o .libs/libocilib.so.3.5.1 .libs/libocilib_la-bind.o .libs/libocilib_la-callback.o .libs/libocilib_la-connection.o .libs/libocilib_la-define.o .libs/libocilib_la-exception.o .libs/libocilib_la-handle.o .libs/libocilib_la-iterator.o .libs/libocilib_la-lob.o .libs/libocilib_la-mutex.o .libs/libocilib_la-resultset.o .libs/libocilib_la-string.o .libs/libocilib_la-timestamp.o .libs/libocilib_la-collection.o .libs/libocilib_la-connpool.o .libs/libocilib_la-element.o .libs/libocilib_la-file.o .libs/libocilib_la-hash.o .libs/libocilib_la-library.o .libs/libocilib_la-long.o .libs/libocilib_la-number.o .libs/libocilib_la-typeinfo.o .libs/libocilib_la-thread.o .libs/libocilib_la-transaction.o .libs/libocilib_la-column.o .libs/libocilib_la-date.o .libs/libocilib_la-error.o .libs/libocilib_la-format.o .libs/libocilib_la-interval.o .libs/libocilib_la-list.o .libs/libocilib_la-memory.o .libs/libocilib_la-object.o .libs/libocilib_la-statement.o .libs/libocilib_la-ref.o .libs/libocilib_la-threadkey.o .libs/libocilib_la-dirpath.o .libs/libocilib_la-event.o .libs/libocilib_la-subscription.o -L/pamdu01/app/oracle/product/10.2.0/db_1/lib32 -lclntsh -lc (cd .libs && rm -f libocilib.so.3 && ln -s libocilib.so.3.5.1 libocilib.so.3) (cd .libs && rm -f libocilib.so && ln -s libocilib.so.3.5.1 libocilib.so) false cru .libs/libocilib.a libocilib_la-bind.o libocilib_la-callback.o libocilib_la-connection.o libocilib_la-define.o libocilib_la-exception.o libocilib_la-handle.o libocilib_la-iterator.o libocilib_la-lob.o libocilib_la-mutex.o libocilib_la-resultset.o libocilib_la-string.o libocilib_la-timestamp.o libocilib_la-collection.o libocilib_la-connpool.o libocilib_la-element.o libocilib_la-file.o libocilib_la-hash.o libocilib_la-library.o libocilib_la-long.o libocilib_la-number.o libocilib_la-typeinfo.o libocilib_la-thread.o libocilib_la-transaction.o libocilib_la-column.o libocilib_la-date.o libocilib_la-error.o libocilib_la-format.o libocilib_la-interval.o libocilib_la-list.o libocilib_la-memory.o libocilib_la-object.o libocilib_la-statement.o libocilib_la-ref.o libocilib_la-threadkey.o libocilib_la-dirpath.o libocilib_la-event.o libocilib_la-subscription.o make[2]: *** [libocilib.la] Error 1 make[2]: Leaving directory `/home/oracle/ocilib-3.5.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/oracle/ocilib-3.5.1' make: *** [all] Error 2 (oracle@egvcsb51:t1024) /home/oracle/ocilib-3.5.1 $ it seems it fails at linking time and I cannot figure out why. configuration works fine without any issues though. can someone please help? Thanks! |