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: Akanksha_Gulati <Akanksha_Gulati at Satyam dot com>
Subject: RE: Installing sybperl on NT
Date: Apr 2 2002 4:24AM

Hi,
  Hi,
  Thanks for ur help Micheal ,but i still have a problem while running the
NMAKE command 
on command promt.
 After implementing what Micheal said ,initial warnings which were there are
solved
 but creation of library files  CTlib.dll and CTlib.OBJ is still a problem.
 If u could look into this it would be really nice.


Thanks and regards
Akanksha


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

        link -out:..\blib\arch\auto\Sybase\CTlib\CTlib.dll -dll -nologo
-nodefau
ltlib -release  -libpath:"D:\Perl\lib\CORE"  -machine:x86 CTlib.obj
D:\Perl\li
b\CORE\perl56.lib D:\sybase\lib\libcs.lib D:\sybase\lib\libct.lib
D:\sybase\lib\
libcomn.lib "D:\Microsoft Visual Studio\VC98\lib\oldnames.lib" "D:\Microsoft
Vis
ual Studio\VC98\lib\kernel32.lib" "D:\Microsoft Visual
Studio\VC98\lib\user32.li
b" "D:\Microsoft Visual Studio\VC98\lib\gdi32.lib" "D:\Microsoft Visual
Studio\V
C98\lib\winspool.lib" "D:\Microsoft Visual Studio\VC98\lib\comdlg32.lib"
"D:\Mic
rosoft Visual Studio\VC98\lib\advapi32.lib" "D:\Microsoft Visual
Studio\VC98\lib
\shell32.lib" "D:\Microsoft Visual Studio\VC98\lib\ole32.lib" "D:\Microsoft
Visu
al Studio\VC98\lib\oleaut32.lib" "D:\Microsoft Visual
Studio\VC98\lib\netapi32.l
ib" "D:\Microsoft Visual Studio\VC98\lib\uuid.lib" "D:\Microsoft Visual
Studio\V
C98\lib\wsock32.lib" "D:\Microsoft Visual Studio\VC98\lib\mpr.lib"
"D:\Microsoft
 Visual Studio\VC98\lib\winmm.lib" "D:\Microsoft Visual
Studio\VC98\lib\version.
lib" "D:\Microsoft Visual Studio\VC98\lib\odbc32.lib" "D:\Microsoft Visual
Studi
o\VC98\lib\odbccp32.lib" "D:\Microsoft Visual Studio\VC98\lib\msvcrt.lib"
-def:C
Tlib.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.
 




-----Original Message-----
From: Michael Peppler [mailto:mpeppler@peppler.org]
Sent: Thursday, March 28, 2002 8:21 PM
To: SybPerl Discussion List
Subject: Re: Installing sybperl on NT


Akanksha_Gulati writes:
 > Hi,
 >   I am building sybperl-2.14_01 on NT.I have perl 5.05 on my machine.
 > After running Makefile.PL,Makefile for CTlib,DBlib gets successfully
made.
 > The second step is to run NMAKE in which ceation of CTlib.obj and
CTlib.dll
 > does not take place
 > I face the following kind of error
 > 
 > Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
 > Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
 > Skip ..\blib\lib\Sybase\CTlib.pm (unchanged)
 >         cl -c -ID:\sybase\include -nologo -O1 -MD -DNDEBUG -DWIN32
 > -D_CONSOLE -D
 > NO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
 > -DPERL_M
 > SVCRT_READFIX -O1 -MD -DNDEBUG    -DVERSION=\"2.14_01\"
 > -DXS_VERSION=\"2.14_01\
 > "  -ID:\Perl\lib\CORE -DCTLIBVS=100 -DSYBPLVER=\"2.14_01\" -DDO_TIE
CTlib.c
 > CTlib.c
 > CTlib.xs(1191) : warning C4133: 'function' : incompatible types - from
 > 'struct _
 > PerlIO *' to 'struct _iobuf *'

At the top of CTlib.xs (below the #include lines) add:

#ifndef PerlIO
#  define PerlIO FILE
#  define PerlIO_printf fprintf
#  define PerlIO_stderr() stderr
#  define PerlIO_close(f) fclose(f)
#  define PerlIO_open(f,m) fopen(f,m)
#  define PerlIO_flush(f) Fflush(f)
#  define PerlIO_puts(f,s) fputs(s,f)
#endif

Now you need to edit the CTlib.xs source and replace all the fprintf,
etc. calls with PerlIO_printf, etc.

Unfortunately I don't have the time to do that right now...

Michael
-- 
Michael Peppler                              Data Migrations, Inc.
mpeppler@peppler.org           *or*          mpeppler@mbay.net
http://www.mbay.net/~mpeppler
International Sybase User Group: http://www.isug.com
************************************************************************** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************