Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: DBD::ODBC install can't find boot_DBI

by DanEllison (Scribe)
on Oct 07, 2017 at 15:42 UTC ( [id://1200902]=note: print w/replies, xml ) Need Help??


in reply to Re: DBD::ODBC install can't find boot_DBI
in thread DBD::ODBC install can't find boot_DBI

First, I'm using Strawberry and cpan, not ActiveState and ppm. And, the file is built, not extracted. Both the successful install and failed install perform the same compile:

dlltool --def DBI.def --output-exp dll.exp g++ -o blib\arch\auto\DBI\DBI.xs.dll -Wl,--base-file -Wl,dll.base -mdl +l -s -L"C:\STRAWB~1\perl\lib\CORE" -L"C:\STRAWB~1\c\lib" DBI.o "C:\ +STRAWB~1\perl\lib\CORE\libperl520.a" -lmoldname -lkernel32 -luser32 - +lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 +-lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp3 +2 -lcomctl32 dll.exp dlltool --def DBI.def --base-file dll.base --output-exp dll.exp g++ -o blib\arch\auto\DBI\DBI.xs.dll -mdll -s -L"C:\STRAWB~1\perl\lib\ +CORE" -L"C:\STRAWB~1\c\lib" DBI.o "C:\STRAWB~1\perl\lib\CORE\libper +l520.a" -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 +-ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -l +mpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 dll.exp "C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e chmod -- 755 +blib\arch\auto\DBI\DBI.xs.dll

Replies are listed 'Best First'.
Re^3: DBD::ODBC install can't find boot_DBI
by Anonymous Monk on Oct 07, 2017 at 18:59 UTC

    I see the newer strawberry use .xs.dll :/ but ActiveState uses MinGW just like strawberry, as you can see from the full build log

    ? What do you get with  grep -r boot_DBI .

    ? What is the difference in the "same compile" between the successful install and failed install ? ( diff the build logs )

      I get:

      Binary file ./blib/arch/auto/DBI/DBI.xs.dll matches ./DBI.c:XS_EXTERNAL(boot_DBI); /* prototype to pass -Wmissing-prototyp +es */ ./DBI.c:XS_EXTERNAL(boot_DBI) ./DBI.def: boot_DBI Binary file ./DBI.o matches Binary file ./dll.exp matches
      on both machines.

      The two machines extract the files and compile in a different order, but it appears to be the same files and same compile commands. The only difference I see before the failed test is that one machine refers to dmake as C:\STRAWB~1\c\bin\dmake.exe, while the other refers to it as C:\Strawberry\c\bin\dmake.EXE.

        The only difference I see before the failed test is that one machine refers to dmake as C:\STRAWB~1\c\bin\dmake.exe, while the other refers to it as C:\Strawberry\c\bin\dmake.EXE.
        This looks like one is using CMD.EXE and the other COMMAND.COM - what are the values of the COMSPEC environment variable?

        The two machines extract the files and compile in a different order, but it appears to be the same files and same compile commands. The only difference I see before the failed test is that one machine refers to dmake as C:\STRAWB~1\c\bin\dmake.exe, while the other refers to it as C:\Strawberry\c\bin\dmake.EXE.

        Hi,

        A shortpath versus a longpath wouldn't/shouldn't make a difference if they're pointing to the same place

        Yeah "appears to be" sounds very much like "doesn't work" ( vague) but

        its windows, a debugger might provide more info

        If it works on your version of windows (probably doesn't), try depends.exe Ctrl+O perl.exe , F7 ...foo.pl to see a LoadLibrary trace, might have more info

        or from commandline depends.exe /c /f:1 /pb /ot:temp.txt ...perl.exe foo.pl

        Or try the same thing (windbg) with WinDbg

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1200902]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-18 00:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found