DBD::Sybase 0.91 fails to Build/install on Windows NT

DBD::Sybase 0.91 fails to Build/install on Windows NT

Post by Munis » Thu, 19 Jul 2001 12:22:30



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

 
 
 

1. 24007-NJ-Warren-PC-Windows 95-Windows NT-SYBASE-Windows NT-ORACLE-Crystal Info-Programmer

******** VISIT US AT http://www.selectjobs.com ***********
=
*************************************************************
Company    : Technisource
Website    : http://www.tsi.net
Job Title  : Programmer
Location   : Warren, NJ
Job Type   : Contract
============================
Technisource is an innovative and rapidly growing national contract, consulting
and staffing organization Technisource has a long list of satisfied clients and
hundreds of high caliber consultants with rewarding careers in the technical
industry Technisource offers the best solution whether our clients' needs are
for one engineer, a team or a complete outsourcing unit Since 1987 Technisource
has specialized in the technical consulting industry and is the most qualified
resource to turn for your next project Over 600 opportunities are listed on our
website, WWWTSINET for engineers, programmers, designers, technicians and
technical writers

 PC (IBM or Compatible), Windows 95, Windows NT, and CRYSTAL INFO 4 or 5
required Oracle, Sybase and NT Servers desired DURATION 6 - 9 months

Travel Required          :None
Educational Requirements :None
=
Required Skills
* PC
* Windows 95
* Windows NT
* SYBASE
* Windows NT  Version: Servers
* ORACLE
* Crystal Info  Version: 4/5
=
=
Contact Information:
Reference : NJ10962

Technisource
1901 NW 62nd St.,  #401

Ft. Lauderdale, FL 33309

Phone: 800-940-1111 EXT 237
   -   -
Fax No: 888-290-2990
***********************  http://www.selectjobs.com  ****************************

                The On-Line, On-Target Job Finder for Computer Professionals

** Post Your Resume and see results immediately!! ** Always free **
** Post jobs for 30 days for $40, unlimited postings $250/month
** Matching Resumes E-mailed daily
**  Your ads are virtually guaranteed to be seen by jobseekers on the NET' **

                    ** Automatic Posting to **
   ** Yahoo            ** Americas Job Bank    ** Career City
   ** HeadHunter.Net   ** Classifieds 2000     ** Usenet Newsgroups
               *** OVER 20 MILLION HITS/MONTH COMBINED !!! ***

***********************  http://www.selectjobs.com  ****************************

2. Select for update in a session does not ban insert referring key in another

3. Problems in Installing Sybase SQL Server for Windows NT

4. Average?

5. Can I install Sybase SQL Server database on Windows 4.0 NT Workstation

6. Journaling - how to ?

7. DBD-Oracle install failed

8. JOB: US - Boston,MA -- Business Dev Mkt-Securities

9. Problem wih DBD::Sybase 09.1- Set Autocommit fails after prepare