Hi All,
I am trying to build DBD:Sybase ver 0.91, that I downloaded from
CPAN.org written by Michael Peppler, on Windows NT using Perl 5.6.0,
Sybase Open Client 12.0 and VC++ 6.0. After struggling for one week I
was able compile but nmake test FAILS. Even I tried to install but
still get error about connection.
Your help is greatly appreciated.
Thanx, MunishK
Here is information about all component(s)
OS : Windows NT SP6a
Perl : 5.6.0
Sybase Open client : ASE 12.0
I have changed Config file for Sybase home and specified the path for
VC libs and tried with specific sybase OCS libs viz. libct.lib etc. it
expects perl file in D: drive and I have copied whole perl in d: also.
In summary :
1) makefile.pl is able to find libcomn.lib, libintl.lib and sybase
documentation recommend to compile with libct.lib,libcs.lib
2) nmake completes with link warning:
LINK : warning LNK4044: unrecognized option "LC:/SYBASE/OCS-12_0/lib";
ignored
3) nmake test fails and finish with 9-16% tests pass with the
similar error as in 4 below
4) thus installing this dbd:sybase driver fails to connect to
server when sql.ini has correct server name and isql does connetc
properly.
Error IS
Open Client Message:
Message number: LAYER = (5) ORIGIN = (3) SEVERITY = (5) NUMBER =
(131)
Message String: ct_init(): network packet layer: internal net
library error: Attempt to spawn thread failed
install_driver(Sybase) failed: DBD::Sybase initialize: ct_init()
failed at d:\perl\5.6.0\lib\MSWin32-x86/DynaLoader.pm line 219.
Compilation failed in require at (eval 1) line 3
Here are excerpts from whole compilation and test process.
----------------------------------------------------------
perl Makefile.pl
----------------
Have C:\perl\5.6.0\lib\MSWin32-x86\Config.pm expected
D:\perl\5.6.0\lib\MSWin32-x86\Config.pm
Your perl and your Config.pm seem to have different ideas about the
architecture
they are running on.
Perl thinks: [MSWin32-x86]
Config says: [MSWin32-x86]
This may or may not cause problems. Please check your installation of
perl if you
have problems building this extension.
Using DBI 1.13 installed in
C:/perl/site/5.6.0/lib/MSWin32-x86/auto/DBI
Writing Makefile for DBD::Sybase
nmake
=======================
cl -c -IC:/SYBASE/OCS-12_0/include
-Id:\perl\site\5.6.0\lib\MSWin32-x86/auto/DBI -O1 -MD -DNDEBUG -DWIN32
-D_CONSOLE -DNO_STRICT -DPERL_MSVCRT_READFIX -O1 -MD -DNDEBUG
-DVERSION=\"0.91\" -DXS_VERSION=\"0.91\"
-ID:\perl\5.6.0\lib\MSWin32-x86\CORE Sybase.c
Sybase.c
cl -c -IC:/SYBASE/OCS-12_0/include
-Id:\perl\site\5.6.0\lib\MSWin32-x86/auto/DBI -O1 -MD -DNDEBUG -DWIN32
-D_CONSOLE -DNO_STRICT -DPERL_MSVCRT_READFIX -O1 -MD -DNDEBUG
-DVERSION=\"0.91\" -DXS_VERSION=\"0.91\"
-ID:\perl\5.6.0\lib\MSWin32-x86\CORE dbdimp.c
dbdimp.c
"Running Mkbootstrap for DBD::Sybase ()"
C:\perl\5.6.0\bin\MSWin32-x86\perl.exe
-Id:\perl\5.6.0\lib\MSWin32-x86 -Id:\perl\5.6.0\lib
-MExtUtils::Command -e chmod 644 Sybase.bs
link -out:blib\arch\auto\DBD\Sybase\Sybase.dll
-LC:/SYBASE/OCS-12_0/lib -dll -nologo -nodefaultlib -release
-libpath:"d:\perl\5.6.0\lib\MSWin32-x86\CORE" -machine:x86 Sybase.obj
dbdimp.obj D:\perl\5.6.0\lib\MSWin32-x86\CORE\perl56.lib
C:\SYBASE\OCS-12_0\lib\libct.lib C:\SYBASE\OCS-12_0\lib\libcs.lib
C:\Progra~1\Micros~2\VC98\Lib\oldnames.lib
C:\Progra~1\Micros~2\VC98\Lib\kernel32.lib
C:\Progra~1\Micros~2\VC98\Lib\user32.lib
C:\Progra~1\Micros~2\VC98\Lib\gdi32.lib
C:\Progra~1\Micros~2\VC98\Lib\winspool.lib
C:\Progra~1\Micros~2\VC98\Lib\comdlg32.lib
C:\Progra~1\Micros~2\VC98\Lib\advapi32.lib
C:\Progra~1\Micros~2\VC98\Lib\shell32.lib
C:\Progra~1\Micros~2\VC98\Lib\ole32.lib
C:\Progra~1\Micros~2\VC98\Lib\oleaut32.lib
C:\Progra~1\Micros~2\VC98\Lib\netapi32.lib
C:\Progra~1\Micros~2\VC98\Lib\uuid.lib
C:\Progra~1\Micros~2\VC98\Lib\wsock32.lib
C:\Progra~1\Micros~2\VC98\Lib\mpr.lib
C:\Progra~1\Micros~2\VC98\Lib\winmm.lib
C:\Progra~1\Micros~2\VC98\Lib\version.lib
C:\Progra~1\Micros~2\VC98\Lib\odbc32.lib
C:\Progra~1\Micros~2\VC98\Lib\odbccp32.lib
C:\Progra~1\Micros~2\VC98\Lib\msvcrt.lib -def:Sybase.def
LINK : warning LNK4044: unrecognized option "LC:/SYBASE/OCS-12_0/lib";
ignored
Creating library blib\arch\auto\DBD\Sybase\Sybase.lib and object
blib\arch\auto\DBD\Sybase\Sybase.exp
C:\perl\5.6.0\bin\MSWin32-x86\perl.exe
-Id:\perl\5.6.0\lib\MSWin32-x86 -Id:\perl\5.6.0\lib
-MExtUtils::Command -e chmod 755 blib\arch\auto\DBD\Sybase\Sybase.dll
C:\perl\5.6.0\bin\MSWin32-x86\perl.exe
-Id:\perl\5.6.0\lib\MSWin32-x86 -Id:\perl\5.6.0\lib
-MExtUtils::Command -e cp Sybase.bs
blib\arch\auto\DBD\Sybase\Sybase.bs
C:\perl\5.6.0\bin\MSWin32-x86\perl.exe
-Id:\perl\5.6.0\lib\MSWin32-x86 -Id:\perl\5.6.0\lib
-MExtUtils::Command -e chmod 644 blib\arch\auto\DBD\Sybase\Sybase.bs
nmake test
========================
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
Using C:/DBD-Sybase-0.91/blib
Open Client Message:
Message number: LAYER = (5) ORIGIN = (3) SEVERITY = (5) NUMBER = (131)
Message String: ct_init(): network packet layer: internal net library
error: Attempt to spawn thread failed
install_driver(Sybase) failed: DBD::Sybase initialize: ct_init()
failed at d:\perl\5.6.0\lib\MSWin32-x86/DynaLoader.pm line 219.
Compilation failed in require at (eval 1) line 3.
at t\autocommit.t line 40
Open Client Message:
Message number: LAYER = (5) ORIGIN = (3) SEVERITY = (5) NUMBER = (131)
Message String: ct_init(): network packet layer: internal net library
error: Attempt to spawn thread failed
install_driver(Sybase) failed: DBD::Sybase initialize: ct_init()
failed at d:\perl\5.6.0\lib\MSWin32-x86/DynaLoader.pm line 219.
Compilation failed in require at (eval 1) line 3.
at t\base.t line 18
Open Client Message:
Message number: LAYER = (5) ORIGIN = (3) SEVERITY = (5) NUMBER = (131)
Message String: ct_init(): network packet layer: internal net library
error: Attempt to spawn thread failed
install_driver(Sybase) failed: DBD::Sybase initialize: ct_init()
failed at d:\perl\5.6.0\lib\MSWin32-x86/DynaLoader.pm line 219.
Compilation failed in require at (eval 1) line 3.
at t\fail.t line 36
Open Client Message:
Message number: LAYER = (5) ORIGIN = (3) SEVERITY = (5) NUMBER = (131)
Message String: ct_init(): network packet layer: internal net library
error: Attempt to spawn thread failed
install_driver(Sybase) failed: DBD::Sybase initialize: ct_init()
failed at d:\perl\5.6.0\lib\MSWin32-x86/DynaLoader.pm line 219.
Compilation failed in require at (eval 1) line 3.
at t\login.t line 38
Open Client Message:
Message number: LAYER = (5) ORIGIN = (3) SEVERITY = (5) NUMBER = (131)
Message String: ct_init(): network packet layer: internal net library
error: Attempt to spawn thread failed
install_driver(Sybase) failed: DBD::Sybase initialize: ct_init()
failed at d:\perl\5.6.0\lib\MSWin32-x86/DynaLoader.pm line 219.
Compilation failed in require at (eval 1) line 3.
at t\main.t line 45
Open Client Message:
Message number: LAYER = (5) ORIGIN = (3) SEVERITY = (5) NUMBER = (131)
Message String: ct_init(): network packet layer: internal net library
error: Attempt to spawn thread failed
install_driver(Sybase) failed: DBD::Sybase initialize: ct_init()
failed at d:\perl\5.6.0\lib\MSWin32-x86/DynaLoader.pm line 219.
Compilation failed in require at (eval 1) line 3.
at t\place.t line 39
Failed 6/6 test scripts, 0.00% okay. 42/50 subtests failed, 16.00%
okay.
NMAKE : fatal error U1077:
'C:\eGain\Live\perl\5.6.0\bin\MSWin32-x86\perl.exe' : return code
'0x2'
Stop.
C:\eGain\Live\perl\5.6.0\bin\MSWin32-x86\perl.exe -Mblib
-Id:\perl\5.6.0\lib\MSWin32-x86 -Id:\perl\5.6.0\lib -e "use
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;"
t\autocommit.t t\base.t t\fail.t t\login.t t\main.t t\place.t
t\autocommit........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-4
Failed 3/4 tests, 25.00% okay
t\base..............dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 4-5
Failed 2/5 tests, 60.00% okay
t\fail..............dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-13
Failed 12/13 tests, 7.69% okay
t\login.............dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-3
Failed 2/3 tests, 33.33% okay
t\main..............dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-14
Failed 13/14 tests, 7.14% okay
t\place.............dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-11
Failed 10/11 tests, 9.09% okay
Failed Test Status Wstat Total Fail Failed List of failed
---------------------------------------------------------------------------
t\autocommit.t 255 65280 4 3 75.00% 2-4
t\base.t 255 65280 5 2 40.00% 4-5
t\fail.t 255 65280 13 12 92.31% 2-13
t\login.t 255 65280 3 2 66.67% 2-3
t\main.t 255 65280 14 13 92.86% 2-14
t\place.t 255 65280 11 10 90.91% 2-11