PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: "Sai N" <sainarasimhan at rediffmail dot com>
Subject: Win32 - Unable to make Sybperl - is this the right place?
Date: Dec 18 2001 3:59PM

Hi Gurus,

I am trying to install Sybperl on a Windoze 2000 machine. I modified the CONFIG file so that it conformed to the Sybase 12.5 installation on my PC. I apologise for posting such a long message to the list - but I need help.

Could someone help me? I am at my wits end. 
Perl is 5.6. 
Sybase is 12.5. 
Windows 2000 Service Pack 2. 
Visual C++ is 6.0 Service Pack 5
Sybperl is the latest one (2.14)

Help!!

Sai

I got the following messages when I ran 'perl Makefile.pl'
G:\NTDOWN~1\SybperlSrc\sybperl-2.14>perl Makefile.pl
The sybperl modules need access to a Sybase server to run the tests.
To clear an entry please enter 'undef'
Sybase server to use (default: undef): 
User ID to log in to Sybase (default: sa):
Password (default: undef):
The system cannot find the path specified.
The system cannot find the path specified.
Checking if your kit is complete...
Looks good
Checking if your kit is complete...
Looks good
Writing Makefile for Sybase::BCP
Checking if your kit is complete...
Looks good
Writing Makefile for Sybase::BLK
Note (probably harmless): No library found for '-llibcomn'
Writing Makefile for Sybase::CTlib
Note (probably harmless): No library found for '-llibcomn'
Writing Makefile for Sybase::DBlib
Writing Makefile for Sybase::Sybperl
Writing Makefile for Sybase

I assumed that everything is fine.

I had already installed Micro$oft Visual Studio including C++ (WITHOUT MFC) - which meant that nmake was available.

I ran nmake and got the following messages:
G:\NTDOWN~1\SybperlSrc\sybperl-2.14>nmake

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

mkdir blib
mkdir blib\lib
mkdir blib\arch
mkdir blib\arch\auto
mkdir blib\arch\auto\Sybase
mkdir blib\lib\auto
mkdir blib\lib\auto\Sybase
cp lib/sybperl.pl blib\lib\sybperl.pl
cp lib/sybutil.pl blib\lib\sybutil.pl
cp config.pl blib\lib\config.pl
cp lib/ctutil.pl blib\lib\ctutil.pl
cp lib/sql.pl blib\lib\sq
e
mkdir ..\blib\arch\auto\Sybase\BCP
mkdir ..\blib\lib\auto\Sybase\BCP
cp BCP.pm ..\blib\lib\Sybase\BCP.pm
mkdir ..\blib\arch\auto\Sybase\BLK
mkdir ..\blib\lib\auto\Sybase\BLK
cp BLK.pm ..\blib\lib\Sybase\BLK.pm
mkdir ..\blib\arch\auto\Sybase\CTlib
mkdir ..\blib\lib\auto\Sybase\CTlib
cp CTlib.pm ..\blib\lib\Sybase\CTlib.pm
AutoSplitting ..\blib\lib\Sybase\CTlib.pm (..\blib\lib\auto/Sybase\CTlib)
        G:\Perl\bin\Perl.exe -IG:\Perl\lib -IG:\Perl\lib G:\Perl\lib\ExtUtils/xs
ubpp -prototypes -typemap G:\Perl\lib\ExtUtils\typemap CTlib.xs > CTlib.xsc && G
:\Perl\bin\Perl.exe -IG:\Perl\lib -IG:\Perl\lib -MExtUtils::Command -e mv CTlib.
xsc CTlib.c
        cl -c -IC:\SYBASE/OCS-12_5\include -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -
DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DPERL_
MSVCRT_READFIX -O1 -MD -DNDEBUG      -DVERSION=\"2.14\"  -DXS_VERSION=\"2.14\"
-IG:\Perl\lib\CORE -DCTLIBVS=100 -DSYBPLVER=\"2.14\" -DDO_TIE CTlib.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.

CTlib.c
CTlib.xs(1191) : warning C4133: 'function' : incompatible types - from 'struct _
PerlIO *' to 'struct _iobuf *'
CTlib.xs(1524) : warning C4133: 'function' : incompatible types - from 'struct _
PerlIO *' to 'struct _iobuf *'
CTlib.xs(1537) : warning C4133: 'function' : incompatible types - from 'struct _
PerlIO *' to 'struct _iobuf *'
CTlib.xs(1554) : warning C4133: 'function' : incompatible types - from 'struct _
PerlIO *' to 'struct _iobuf *'
CTlib.xs(1758) : warning C4133: 'function' : incompatible types - from 'struct _
PerlIO *' to 'struct _iobuf *'
CTlib.xs(1759) : warning C4133: 'function' : incompatible types - from 'struct _
PerlIO *' to 'struct _iobuf *'
CTlib.xs(1761) : warning C4133: 'function' : incompatible types - from 'struct _
PerlIO *' to 'struct _iobuf *'
CTlib.xs(1763) : warning C4133: 'function' : incompatible types - from 'struct _
PerlIO *' to 'struct _iobuf *'
CT
ction' : incompatible types - from 'struct _
PerlIO *' to 'struct _iobuf *'
CTlib.xs(1872) : warning C4133: 'function' : incompatible types - from 'struct _
PerlIO *' to 'struct _iobuf *'
CTlib.xs(1873) : warning C4133: 'function' : incompatible types - from 'struct _
PerlIO *' to 'struct _iobuf *'
CTlib.xs(1875) : warning C4133: 'function' : incompatible types - from 'struct _
PerlIO *' to 'struct _iobuf *'
CTlib.xs(1879) : warning C4133: 'function' : incompatible types - from 'struct _
PerlIO *' to 'struct _iobuf *'
CTlib.xs(1882) : warning C4133: 'function' : incompatible types - from 'struct _
PerlIO *' to 'struct _iobuf *'
CTlib.xs(1884) : warning C4133: 'function' : incompatible types - from 'struct _
PerlIO *' to 'struct _iobuf *'
CTlib.xs(1888) : warning C4133: 'function' : incompatible types - from 'struct _
PerlIO *' to 'struct _iobuf *'
CTlib.xs(1896) : warning C4133: 'function' : incompatible types - from 'struct _
PerlIO *' to 'struct _iobuf *'
CTlib.xs(1917) : warning C4133: 'function' : incompatible types - from 'struct _
PerlIO *' to 'struct _iobuf *'
CTlib.xs(1929) : warning C4133: 'function' : incompatible types - from 'struct _
PerlIO *' to 'struct _iobuf *'
CTlib.xs(1652) : warning C4716: 'fetch2sv' : must return a value
"Running Mkbootstrap for Sybase::CTlib ()"
        G:\Perl\bin\Perl.exe -IG:\Perl\lib -IG:\Perl\lib -MExtUtils::Command -e
chmod 644 CTlib.bs
        G:\Perl\bin\Perl.exe "-IG:\Perl\lib" "-IG:\Perl\lib" -MExtUtils::Mksymli
sts  -e "Mksymlists('NAME' => 'Sybase::CTlib', 'DLBASE' => 'CTlib', 'DL_FUNCS' =
> {  }, 'FUNCLIST' => [], 'IMPORTS' => {  }, 'DL_VARS' => []);"
        link -out:..\blib\arch\auto\Sybase\CTlib\CTlib.dll -dll -nologo -nodefau
ltlib -release  -libpath:"G:\Perl\lib\CORE"  -machine:x86 CTlib.obj   G:\Perl\li
b\CORE\perl56.lib C:\SYBASE\OCS-12_5\lib\libcs.lib C:\SYBASE\OCS-12_5\lib\libct.
lib "G:\Program Files\Microsoft Visual Studio\VC98\lib\oldnames.lib" "G:\Program
 Files\Microsoft Visual Studio\VC98\lib\kernel32.lib" "G:\Prog
r32.lib" "G:\Program Files\Microsoft Visual Studio\V
C98\lib\gdi32.lib" "G:\Program Files\Microsoft Visual Studio\VC98\lib\winspool.l
ib" "G:\Program Files\Microsoft Visual Studio\VC98\lib\comdlg32.lib" "G:\Program
 Files\Microsoft Visual Studio\VC98\lib\advapi32.lib" "G:\Program Files\Microsof
t Visual Studio\VC98\lib\shell32.lib" "G:\Program Files\Microsoft Visual Studio\
VC98\lib\ole32.lib" "G:\Program Files\Microsoft Visual Studio\VC98\lib\oleaut32.
lib" "G:\Program Files\Microsoft Visual Studio\VC98\lib\netapi32.lib" "G:\Progra
m Files\Microsoft Visual Studio\VC98\lib\uuid.lib" "G:\Program Files\Microsoft V
isual Studio\VC98\lib\wsock32.lib" "G:\Program Files\Microsoft Visual Studio\VC9
8\lib\mpr.lib" "G:\Program Files\Microsoft Visual Studio\VC98\lib\winmm.lib" "G:
\Program Files\Microsoft Visual Studio\VC98\lib\version.lib" "G:\Program Files\M
icrosoft Visual Studio\VC98\lib\odbc32.lib" "G:\Program Files\Microsoft Visual S
tudio\VC98\lib\odbccp32.lib" "G:\Program Files\Microsoft Visual Studio\VC98\lib\
msvcrt.lib" -def:CTlib.def
   Creating library ..\blib\arch\auto\Sybase\CTlib\CTlib.lib and object ..\blib\
arch\auto\Sybase\CTlib\CTlib.exp
CTlib.obj : error LNK2001: unresolved external symbol _blk_describe@12
CTlib.obj : error LNK2001: unresolved external symbol _blk_init@16
CTlib.obj : error LNK2001: unresolved external symbol _blk_props@24
CTlib.obj : error LNK2001: unresolved external symbol _blk_alloc@12
CTlib.obj : error LNK2001: unresolved external symbol _blk_drop@4
CTlib.obj : error LNK2001: unresolved external symbol _blk_rowxfer@4
CTlib.obj : error LNK2001: unresolved external symbol _blk_bind@24
CTlib.obj : error LNK2001: unresolved external symbol _blk_done@12
..\blib\arch\auto\Sybase\CTlib\CTlib.dll : fatal error LNK1120: 8 unresolved ext
ernals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.