Problems building DCOracle 1.3.2 under Win2K/Cygwin

Andy Todd andy47 at halfcooked.com
Sun Feb 24 20:23:39 EST 2002


cmedcoff at home.com (Charles Medcoff) wrote in 
news:1a241b9d.0202211459.394c3e64 at posting.google.com:

> I'm just following the instructions in the src/readme.txt file.  It
> appears that a file is missing from the distribution.  Any advice
> appreciated.
> 
> $ make
> gcc -DUSE_DL_IMPORT -g -O2 -Wall -Wstrict-prototypes
> -I/usr/local/include/python
> 2.1 -I/usr/local/include/python2.1 -DHAVE_CONFIG_H  -I/rdbms/demo
> -I/rdbms/publi
> c -I/network/public -I/plsql/public -DDCORACLE8 -c ././oci_.c -o
> ./oci_.o
> ././oci_.c:565: ociapr.h: No such file or directory
> In file included from ././oci_.c:697:
> oci_8.c:67: oci.h: No such file or directory
> make: *** [oci_.o] Error 1
> 
> Regards,
> Chuck
> 

Chuck,

I hate to be the bearer of bad tidings but I'm not sure its possible to do 
what you want. I have had similar issues trying to get cx_Oracle working 
under cygwin and have currently put that effort 'on hold' (see 
http://groups.google.com/groups?
hl=en&threadm=Xns91AD8D95B2B69andy47halfcookedcom%40203.109.250.24&rnum=1
&prev=/groups%3Fq%3Dandy47%2Bcygwin%2Boracle%2Bgroup:comp.lang.python.*%
2Bgroup:comp.lang.python.*%26hl%3Den%26selm%
3DXns91AD8D95B2B69andy47halfcookedcom%2540203.109.250.24%26rnum%3D1) excuse 
the long URL.

Basically, you have the Oracle client libraries for Windows and you are 
trying to compile them on *nix type system. Oracle provides different 
clients for each platform, oci.dll for Win32 and liboci.so for *nix. The 
make file for DCOracle will take this into account and wont easily mix and 
match the two (i.e. I don't think its possible just to substitute one for 
the other).

The only fruitful line of inquiry I didn't fully pursue was to create an 
import library for oci.dll (so that cygwin sees it as liboci.so) which 
should allow you to build DCOracle under cygwin.

For information on creating an import library look at;

http://www.cygwin.com/ml/cygwin/2000-03/msg00694.html

Let us know how you progress.

Regards,
Andy
-- 
Contents free posts a speciality



More information about the Python-list mailing list