howto compile BDI Oracle on windows

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. #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: ...
    3. #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: ...
    4. #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: ...
    5. #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...
  3. #2

    Default Re: howto compile BDI Oracle on windows

    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





    --
    To reply by email u have to take out the u in kalinaubears.

    Sisyphus Guest

  4. #3

    Default Re: howto compile BDI Oracle on windows

    Sisyphus wrote:
    > 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
    >
    >
    >
    >
    >
    Thanks for the help. I found the problem. Perl doesn't like spaces in
    the path names. By removing the path names i removed the problem.


    patrick Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139