Ask a Question related to PERL Modules, Design and Development.
-
patrick #1
howto compile BDI Oracle on windows
Hi
I am trying to compile the DBI::Oracle module on windows but it keeps
giving me the following error message:
b -release -machine:x86 Oracle.obj dbdimp.obj oci7.obj oci8.obj
D:\iw-home\
iw-perl\lib\MSWin32-x86\CORE\perl.lib
D:\oracle\ora81\oci\LIB\MSVC\OCI.lib -def:
Oracle.def
Creating library blib\arch\auto\DBD\Oracle\Oracle.lib and object
blib\arch\au
to\DBD\Oracle\Oracle.exp
Oracle.obj : error LNK2001: unresolved external symbol __fltused
dbdimp.obj : error LNK2001: unresolved external symbol __fltused
Oracle.obj : error LNK2001: unresolved external symbol __imp__sprintf
dbdimp.obj : error LNK2001: unresolved external symbol __imp__sprintf
oci8.obj : error LNK2001: unresolved external symbol __imp__sprintf
Oracle.obj : error LNK2001: unresolved external symbol _strcmp
dbdimp.obj : error LNK2001: unresolved external symbol _strcmp
dbdimp.obj : error LNK2001: unresolved external symbol __imp__atoi
oci8.obj : error LNK2001: unresolved external symbol __imp__atoi
dbdimp.obj : error LNK2001: unresolved external symbol _memset
oci8.obj : error LNK2001: unresolved external symbol _memset
dbdimp.obj : error LNK2001: unresolved external symbol _strlen
oci8.obj : error LNK2001: unresolved external symbol _strlen
dbdimp.obj : error LNK2001: unresolved external symbol _strcpy
oci8.obj : error LNK2001: unresolved external symbol _strcpy
oci8.obj : error LNK2001: unresolved external symbol __imp__strchr
oci8.obj : error LNK2001: unresolved external symbol __imp__strncpy
oci8.obj : error LNK2001: unresolved external symbol _strcat
LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
blib\arch\auto\DBD\Oracle\Oracle.dll : fatal error LNK1120: 11
unresolved extern
als
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
I have installed the oracle 8.1 client with the oci support.
I have succesfully compiled and installed the DBD module.
Any solutions??
thanks in advance
Patrick
patrick Guest
-
HOWTO: Synchronize app passwords with a Windows domain
You may want to know how to make your PHP app on a Unix, Linux, or Windows host synch up with a Windows domain. It's simple. Just start an IIS... -
#25005 [Opn->Fbk]: php can not compile --with-oracle
ID: 25005 Updated by: sniper@php.net Reported By: phpnet at gal dot dk -Status: Open +Status: ... -
#25005 [Opn]: php can not compile --with-oracle
ID: 25005 User updated by: phpnet at gal dot dk Reported By: phpnet at gal dot dk Status: Open Bug Type: ... -
#25005 [Fbk->Opn]: php can not compile --with-oracle
ID: 25005 User updated by: phpnet at gal dot dk Reported By: phpnet at gal dot dk -Status: Feedback +Status: ... -
#25005 [NEW]: php can not compile --with-oracle
From: phpnet at gal dot dk Operating system: FreeBSD 4.8-STABLE PHP version: 4.3.3RC3 PHP Bug Type: Compile Failure Bug... -
Sisyphus #2
Re: howto compile BDI Oracle on windows
patrick wrote:
My guess is that there's a library or two ('.lib' files) within Oracle> Hi
>
> I am trying to compile the DBI::Oracle module on windows but it keeps
> giving me the following error message:
>
> b -release -machine:x86 Oracle.obj dbdimp.obj oci7.obj oci8.obj
> D:\iw-home\
> iw-perl\lib\MSWin32-x86\CORE\perl.lib
> D:\oracle\ora81\oci\LIB\MSVC\OCI.lib -def:
> Oracle.def
> Creating library blib\arch\auto\DBD\Oracle\Oracle.lib and object
> blib\arch\au
> to\DBD\Oracle\Oracle.exp
> Oracle.obj : error LNK2001: unresolved external symbol __fltused
> dbdimp.obj : error LNK2001: unresolved external symbol __fltused
> Oracle.obj : error LNK2001: unresolved external symbol __imp__sprintf
> dbdimp.obj : error LNK2001: unresolved external symbol __imp__sprintf
> oci8.obj : error LNK2001: unresolved external symbol __imp__sprintf
> Oracle.obj : error LNK2001: unresolved external symbol _strcmp
> dbdimp.obj : error LNK2001: unresolved external symbol _strcmp
> dbdimp.obj : error LNK2001: unresolved external symbol __imp__atoi
> oci8.obj : error LNK2001: unresolved external symbol __imp__atoi
> dbdimp.obj : error LNK2001: unresolved external symbol _memset
> oci8.obj : error LNK2001: unresolved external symbol _memset
> dbdimp.obj : error LNK2001: unresolved external symbol _strlen
> oci8.obj : error LNK2001: unresolved external symbol _strlen
> dbdimp.obj : error LNK2001: unresolved external symbol _strcpy
> oci8.obj : error LNK2001: unresolved external symbol _strcpy
> oci8.obj : error LNK2001: unresolved external symbol __imp__strchr
> oci8.obj : error LNK2001: unresolved external symbol __imp__strncpy
> oci8.obj : error LNK2001: unresolved external symbol _strcat
> LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
> blib\arch\auto\DBD\Oracle\Oracle.dll : fatal error LNK1120: 11
> unresolved extern
> als
> NMAKE : fatal error U1077: 'link' : return code '0x460'
> Stop.
>
> I have installed the oracle 8.1 client with the oci support.
> I have succesfully compiled and installed the DBD module.
>
8.1 that you need to link to - and that you have failed to do so.
That being the case, then in the WriteMakefile() section of the
DBI::Oracle 'Makefile.PL', you need to specify the option:
'LIBS' => ['-L/path_to/Oracle_lib_folder -llibname1 -llibname2'],
Cheers,
Rob
--
To reply by email u have to take out the u in kalinaubears.
Sisyphus Guest
-
patrick #3
Re: howto compile BDI Oracle on windows
Sisyphus wrote:
Thanks for the help. I found the problem. Perl doesn't like spaces in> patrick wrote:
>>>> Hi
>>
>> I am trying to compile the DBI::Oracle module on windows but it keeps
>> giving me the following error message:
>>
>> b -release -machine:x86 Oracle.obj dbdimp.obj oci7.obj oci8.obj
>> D:\iw-home\
>> iw-perl\lib\MSWin32-x86\CORE\perl.lib
>> D:\oracle\ora81\oci\LIB\MSVC\OCI.lib -def:
>> Oracle.def
>> Creating library blib\arch\auto\DBD\Oracle\Oracle.lib and object
>> blib\arch\au
>> to\DBD\Oracle\Oracle.exp
>> Oracle.obj : error LNK2001: unresolved external symbol __fltused
>> dbdimp.obj : error LNK2001: unresolved external symbol __fltused
>> Oracle.obj : error LNK2001: unresolved external symbol __imp__sprintf
>> dbdimp.obj : error LNK2001: unresolved external symbol __imp__sprintf
>> oci8.obj : error LNK2001: unresolved external symbol __imp__sprintf
>> Oracle.obj : error LNK2001: unresolved external symbol _strcmp
>> dbdimp.obj : error LNK2001: unresolved external symbol _strcmp
>> dbdimp.obj : error LNK2001: unresolved external symbol __imp__atoi
>> oci8.obj : error LNK2001: unresolved external symbol __imp__atoi
>> dbdimp.obj : error LNK2001: unresolved external symbol _memset
>> oci8.obj : error LNK2001: unresolved external symbol _memset
>> dbdimp.obj : error LNK2001: unresolved external symbol _strlen
>> oci8.obj : error LNK2001: unresolved external symbol _strlen
>> dbdimp.obj : error LNK2001: unresolved external symbol _strcpy
>> oci8.obj : error LNK2001: unresolved external symbol _strcpy
>> oci8.obj : error LNK2001: unresolved external symbol __imp__strchr
>> oci8.obj : error LNK2001: unresolved external symbol __imp__strncpy
>> oci8.obj : error LNK2001: unresolved external symbol _strcat
>> LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
>> blib\arch\auto\DBD\Oracle\Oracle.dll : fatal error LNK1120: 11
>> unresolved extern
>> als
>> NMAKE : fatal error U1077: 'link' : return code '0x460'
>> Stop.
>>
>> I have installed the oracle 8.1 client with the oci support.
>> I have succesfully compiled and installed the DBD module.
>>
> My guess is that there's a library or two ('.lib' files) within Oracle
> 8.1 that you need to link to - and that you have failed to do so.
>
> That being the case, then in the WriteMakefile() section of the
> DBI::Oracle 'Makefile.PL', you need to specify the option:
>
> 'LIBS' => ['-L/path_to/Oracle_lib_folder -llibname1 -llibname2'],
>
> Cheers,
> Rob
>
>
>
>
>
the path names. By removing the path names i removed the problem.
patrick Guest



Reply With Quote

