I am trying to compile DBD Oracle 1.14. When I run nmake, I get the
following error:
LINK : fatal error LNK1104: cannot open file 'Oracle.def'
[details of running nmake below]
I have installed DBI 1.2. I am using Oracle 9i. Platform: Win32, Microsoft
.Net. [details of perl version below]
Any help/suggestions/RTFMs/anything at all appreciated !
Thanks,
Samir
-----------------------------------------------
perl Makefile.PL
-----------------------------------------------
Using DBI 1.20 installed in f:\iw-home\iw-perl\site\lib/MSWin32-x86/auto/DBI
Configuring DBD::Oracle ...
>>> Remember to actually *READ* the README file!
Especially if you have any problems.
Using Oracle in E:/oracle/ora90
Found header files in rdbms/demo.
*********************************************************
I can't find the header files I need in your Oracle installation.
You probably need to install some more Oracle components.
I'll keep going, but the compile will probably fail.
See README.clients for more information.
*********************************************************
Found oci directory
Using OCI directory 'oci'
Found oci/lib/MSVC/oci.lib library
Found oci/lib/MSVC/ociw32.lib library
Found oci/lib/MSVC/oraocci9.lib library
Using oci/lib/MSVC/OCI.lib
System: perl5.00503
Compiler:
cl.exe -Od -MD -DNDEBUG -Od -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STR
ICT
Linker: <ld not found>
Sysliblist:
Reference found where even-sized list expected at
f:\iw-home\iw-perl\site\lib/DB
I/DBD.pm line 1781.
Checking if your kit is complete...
Looks good
'HASH(0x349b14)' is not a known MakeMaker parameter name.
Warning: Guessing NAME [DBD-Oracle] from current directory name.
LD_RUN_PATH=E:/oracle/ora90/lib:E:/oracle/ora90/rdbms/lib
Using DBD::Oracle 0.10.
Using DBI 1.20 installed in f:\iw-home\iw-perl\site\lib/MSWin32-x86/auto/DBI
Writing Makefile for DBD-Oracle
*** If you have problems...
read all the log printed above, and the README and README.help files.
(Of course, you have read README by now anyway, haven't you?)
-----------------------------------------------
nmake
-----------------------------------------------
Microsoft (R) Program Maintenance Utility Version 7.00.9466
Copyright (C) Microsoft Corporation. All rights reserved.
mkdir blib
mkdir blib\lib
mkdir blib\arch
mkdir blib\arch\auto
mkdir blib\arch\auto\DBD-Oracle
mkdir blib\lib\auto
mkdir blib\lib\auto\DBD-Oracle
mkdir blib\man3
cp Oraperl.pm blib\lib/Oraperl.pm
cp ocitrace.h blib\arch\auto\DBD-Oracle/ocitrace.h
cp Oracle.pm blib\lib\Oracle.pm
cp mk.pm blib\arch\auto\DBD-Oracle/mk.pm
cp dbdimp.h blib\arch\auto\DBD-Oracle/dbdimp.h
cp oraperl.ph blib\lib/oraperl.ph
cp lib/DBD/Oracle/GetInfo.pm blib\lib\DBD\Oracle\GetInfo.pm
cp Oracle.h blib\arch\auto\DBD-Oracle/Oracle.h
f:\iw-home\iw-perl\bin\iwperl.exe -If:\iw-home\iw-perl\lib\MSWin32-x86 -
If:\iw-home\iw-perl\lib F:\iw-home\iw-perl\lib\ExtUtils/xsubpp -typemap
F:\iw-h
ome\iw-perl\lib\ExtUtils\typemap Oracle.xs >xstmp.c &&
f:\iw-home\iw-perl\bin\iw
perl.exe -If:\iw-home\iw-perl\lib\MSWin32-x86 -If:\iw-home\iw-perl\lib -MExt
Util
s::Command -e mv xstmp.c Oracle.c
cl.exe -c -Od -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -Od -MD -DNDE
BUG -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -IF:\iw-home\iw-perl\lib\
MSWi
n32-x86\CORE Oracle.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.00.9466 for 80x86
Copyright (C) Microsoft Corporation 1984-2001. All rights reserved.
Oracle.c
"Running Mkbootstrap for DBD-Oracle ()"
f:\iw-home\iw-perl\bin\iwperl.exe -If:\iw-home\iw-perl\lib\MSWin32-x86 -
If:\iw-home\iw-perl\lib -MExtUtils::Command -e chmod 644 Oracle.bs
f:\iw-home\iw-perl\bin\iwperl.exe
"-If:\iw-home\iw-perl\lib\MSWin32-x86"
"-If:\iw-home\iw-perl\lib" -MExtUtils::Mksymlists -e "Mksymlists('NAME' =>
'DB
D-Oracle', 'DLBASE' => 'Oracle', 'DL_FUNCS' => { }, 'FUNCLIST' => [],
'IMPORTS'
=> { }, 'DL_VARS' => []);"
link -out:blib\arch\auto\DBD-Oracle\Oracle.dll -dll -nologo -nodefaultli
b -release -machine:x86 Oracle.obj
F:\iw-home\iw-perl\lib\MSWin32-x86\CORE\per
l.lib oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib
wsock32.l
ib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib
PerlCRT.lib -def:Oracl
e.def
LINK : fatal error LNK1104: cannot open file 'Oracle.def'
LINK : fatal error LNK1141: failure during build of exports file
NMAKE : fatal error U1077: 'link' : return code '0x475'
Stop.
-----------------------------------------------
perl -V
-----------------------------------------------
Summary of my perl5 (5.0 patchlevel 5 subversion 03) configuration:
Platform:
osname=MSWin32, osvers=4.0, archname=MSWin32-x86
uname=''
hint=recommended, useposix=true, d_sigaction=undef
usethreads=undef useperlio=undef d_sfio=undef
Compiler:
cc='cl.exe', optimize='-Od -MD -DNDEBUG', gccversion=
cppflags='-DWIN32'
ccflags ='-Od -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT '
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
alignbytes=8, usemymalloc=n, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -release -machine:x86'
libpth="C:\Program Files\DevStudio\VC\lib"
libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.
lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib
wsock
32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib PerlCRT.lib
libc=PerlCRT.lib, so=dll, useshrplib=yes, libperl=perl.lib
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ',
lddlflags='-dll -nologo -nodefaultlib -release -machine:x86'
Characteristics of this binary (from libperl):
Built under MSWin32
Compiled at Feb 24 2000 03:33:47
@INC:
f:\iw-home\iw-perl\lib/MSWin32-x86
f:\iw-home\iw-perl\lib
f:\iw-home\iw-perl\site\5.00503\lib
f:\iw-home\iw-perl\site\lib/MSWin32-x86
f:\iw-home\iw-perl\site\lib
.
-----------------------------------------------