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: "TISO, Marcello, GCM" <Marcello dot Tiso at gcm dot com>
Subject: Sybperl CTLib linking under Windows XP and Sybase 12.0 Problem
Date: Mar 20 2002 3:44PM

Hello,

	I am trying to manually compile sybperl and I am having problems
with 	the linking part of CTLib .
	Which Perl : ActivePerl-5.6.1.631-MSWin32-x86.
	Which OS : Windows XP.
	Which Sybase : Sybase 12.0 , using SYBASE_OCS = OCS-12_0 .
	Which Sybperl : sybperl-2.14
	I can compile both DBLib and BCP parts of sybperl. 
	Sorry for the long message but I did not want to exclude anything.
	Any help is much appreciated.

	Here is the info :

	========================
	Perl Makefile.PL OUTPUT
	========================

	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

	=========================
	nmake OUTPUT
	=========================
	Microsoft (R) Program Maintenance Utility Version 7.00.9466
	Copyright (C) Microsoft Corporation.  All rights reserved.

	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\sql.pl
	cp BCP.pm ..\blib\lib\Sybase\BCP.pm
	cp BLK.pm ..\blib\lib\Sybase\BLK.pm
	cp CTlib.pm ..\blib\lib\Sybase\CTlib.pm
	AutoSplitting ..\blib\lib\Sybase\CTlib.pm
(..\blib\lib\auto\Sybase\CTlib)	
      C:\Perl\bin\perl.exe -IC:\Perl\lib -IC:\Perl\lib
C:\Perl\lib\ExtUtils/xsubpp -prototypes -typemap
C:\Perl\lib\ExtUtils\typemap CTlib.xs > CTlib.xsc &&
C:\Perl\bin\perl.exe -IC:\Perl\lib -IC:\Perl\lib 
	-MExtUtils::Command -e mv CTlib.xsc CTlib.c
        cl -c -IR:\sybase\12.0/OCS-12_0\include -nologo -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\"  
	-IC:\Perl\lib\CORE -DCTLIBVS=100 -DSYBPLVER=\"2.14\" -DDO_TIE
CTlib.c

	CTlib.c
	CTlib.xs(1191) : warning C4133: 'function' : incompatible types -
from 		'PerlIO *' to 'FILE *'	
	CTlib.xs(1524) : warning C4133: 'function' : incompatible types -
from 		'PerlIO *' to 'FILE *'
	CTlib.xs(1537) : warning C4133: 'function' : incompatible types -
from 		'PerlIO *' to 'FILE *'
	CTlib.xs(1554) : warning C4133: 'function' : incompatible types -
from 		'PerlIO *' to 'FILE *'
	CTlib.xs(1758) : warning C4133: 'function' : incompatible types -
from 		'PerlIO *' to 'FILE *'
	CTlib.xs(1759) : warning C4133: 'function' : incompatible types -
from 		'PerlIO *' to 'FILE *'
	CTlib.xs(1761) : warning C4133: 'function' : incompatible types -
from 		'PerlIO *' to 'FILE *'
	CTlib.xs(1763) : warning C4133: 'function' : incompatible types -
from 		'PerlIO *' to 'FILE *'
	CTlib.xs(1766) : warning C4133: 'function' : incompatible types -
from 		'PerlIO *' to 'FILE *'
	CTlib.xs(1872) : warning C4133: 'function' : incompatible types -
from 		'PerlIO *' to 'FILE *'
	CTlib.xs(1873) : warning C4133: 'function' : incompatible types -
from 		'PerlIO *' to 'FILE *'
	CTlib.xs(1875) : warning C4133: 'function' : incompatible types -
from 		'PerlIO *' to 'FILE *'
	CTlib.xs(1879) : warning C4133: 'function' : incompatible types -
from 		'PerlIO *' to 'FILE *'
	CTlib.xs(1882) : warning C4133: 'function' : incompatible types -
from 		'PerlIO *' to 'FILE *'
	CTlib.xs(1884) : warning C4133: 'function' : incompatible types -
from 		'PerlIO *' to 'FILE *'
	CTlib.xs(1888) : warning C4133: 'function' : incompatible types -
from 		'PerlIO *' to 'FILE *'
	CTlib.xs(1896) : warning C4133: 'function' : incompatible types -
from 	'PerlIO *' to 'FILE *'
	CTlib.xs(1917) : warning C4133: 'function' : incompatible types -
from 	'PerlIO *' to 'FILE *'
	CTlib.xs(1929) : warning C4133: 'function' : incompatible types -
from 	'PerlIO *' to 'FILE *'
	c:\unzipped\sybperl-2.14\ctlib\ctlib.xs(1652) : warning C4716:
'fetch2sv' : must return a value

"Running Mkbootstrap for Sybase::CTlib ()"
        C:\Perl\bin\perl.exe -IC:\Perl\lib -IC:\Perl\lib
-MExtUtils::Command 		-e chmod 644 CTlib.bs
        C:\Perl\bin\perl.exe "-IC:\Perl\lib" "-IC:\Perl\lib" 
		-MExtUtils::Mksymlists  -e "Mksymlists(
			'NAME' =>	'Sybase::CTlib', 
			'DLBASE' => 'CTlib', 
			'DL_FUNCS' => {  }, 
			'FUNCLIST' => [], 
			'IMPORTS' => {  }, 
			'DL_VARS' => []);"
        link -out:..\blib\arch\auto\Sybase\CTlib\CTlib.dll -dll -nologo 
		-nodefaultlib -release  -libpath:"C:\Perl\lib\CORE"  
		-machine:x86 	CTlib.obj   C:\Perl\lib\CORE\perl56.lib 
		R:\sybase\12.0\OCS-12_0\lib\libcs.lib 
		R:\sybase\12.0\OCS-12_0\lib\libct.lib 
		"C:\Program Files\Microsoft Visual Studio .NET
			\VC7\LIB\oldnames.lib" 
		"C:\Program Files\Microsoft Visual Studio .NET
			\VC7\LIB\kernel32.lib" 
		"C:\Program Files\Microsoft Visual Studio .NET
			\VC7\PlatformSDK\lib\user32.lib" 
		"C:\Program Files\Microsoft Visual Studio .NET
			\VC7\PlatformSDK\lib\gdi32.lib" 
		"C:\Program Files\Microsoft Visual Studio .NET
			\VC7\PlatformSDK\lib\winspool.lib" 
		"C:\Program Files\Microsoft Visual Studio .NET
			\VC7\PlatformSDK\lib\comdlg32.lib" 
		"C:\Program Files\Microsoft Visual Studio .NET
			\VC7\PlatformSDK\lib\advapi32.lib" 
		"C:\Program Files\Microsoft Visual Studio .NET
			\VC7\PlatformSDK\lib\shell32.lib" 
		"C:\Program Files\Microsoft Visual Studio .NET
			\VC7\PlatformSDK\lib\ole32.lib" 
		"C:\Program Files\Microsoft Visual Studio .NET
			\VC7\PlatformSDK\lib\oleaut32.lib" 
		"C:\Program Files\Microsoft Visual Studio .NET
			\VC7\PlatformSDK\lib\netapi32.lib" 
		"C:\Program Files\Microsoft Visual Studio .NET
			\VC7\PlatformSDK\lib\uuid.lib" 
		"C:\Program Files\Microsoft Visual Studio .NET
			\VC7\PlatformSDK\lib\wsock32.lib" 
		"C:\Program Files\Microsoft Visual Studio .NET
			\VC7\PlatformSDK\lib\mpr.lib" 
		"C:\Program Files\Microsoft Visual Studio .NET
			\VC7\PlatformSDK\lib\winmm.lib" 
		"C:\Program Files\Microsoft Visual Studio .NET
			\VC7\PlatformSDK\lib\version.lib" 
		"C:\Program Files\Microsoft Visual Studio .NET
			\VC7\PlatformSDK\lib\odbc32.lib" 
		"C:\Program Files\Microsoft Visual Studio .NET
			\VC7\PlatformSDK\lib\odbccp32.lib" 
		"C:\Program Files\Microsoft Visual Studio .NET
			\VC7\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 LNK2019: unresolved external symbol _blk_drop@4 
			referenced in function _blkCleanUp
	CTlib.obj : error LNK2019: unresolved external symbol
_blk_describe@12 
			referenced in function _XS_Sybase__CTlib_blk_init

	CTlib.obj : error LNK2019: unresolved external symbol _blk_init@16 
			referenced in function _XS_Sybase__CTlib_blk_init
	CTlib.obj : error LNK2019: unresolved external symbol _blk_props@24

			referenced in function _XS_Sybase__CTlib_blk_init
	CTlib.obj : error LNK2019: unresolved external symbol _blk_alloc@12

			referenced in function _XS_Sybase__CTlib_blk_init
	CTlib.obj : error LNK2019: unresolved external symbol
_blk_rowxfer@4 			referenced in function
_XS_Sybase__CTlib_blk_rowxfer
	CTlib.obj : error LNK2019: unresolved external symbol _blk_bind@24
referenced in function _XS_Sybase__CTlib_blk_rowxfer
	CTlib.obj : error LNK2019: unresolved external symbol _blk_done@12
referenced in function _XS_Sybase__CTlib_blk_done
	
	..\blib\arch\auto\Sybase\CTlib\CTlib.dll : fatal error LNK1120: 8
unresolved externals
	NMAKE : fatal error U1077: 'link' : return code '0x460'
		Stop.
	NMAKE : fatal error U1077: 'cd' : return code '0x2'
		Stop.

	================
	Perl -V OUTPUT
	================
	Summary of my perl5 (revision 5 version 6 subversion 1)
configuration:
	  Platform:
	    osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
	    uname=''
	    config_args='undef'
	    hint=recommended, useposix=true, d_sigaction=undef
	    usethreads=undef use5005threads=undef useithreads=define
usemultiplicity=define
	    useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef
	    use64bitint=undef use64bitall=undef uselongdouble=undef
  	Compiler:
    		cc='cl', ccflags ='-nologo -O1 -MD -DNDEBUG -DWIN32
-D_CONSOLE -		DNO_STRICT -DHAVE_DES_FCRYPT  -DPERL_IMPLICIT_CONTE
		T -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX',
	    optimize='-O1 -MD -DNDEBUG',
	    cppflags='-DWIN32'
	    ccversion='', gccversion='', gccosandvers=''
	    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
	    d_longlong=undef, longlongsize=8, d_longdbl=define,
longdblsize=10
	    ivtype='long', ivsize=4, nvtype='double', nvsize=8,
Off_t='off_t', 		lseeksize=4
	    alignbytes=8, usemymalloc=n, prototype=define
  	Linker and Libraries:
    	ld='link', ldflags ='-nologo -nodefaultlib -release  -
libpath:"C:\Perl\lib\CORE"  -machine:x86'
	libpth="C:\Program Files\Microsoft Visual Studio
..NET\VC7\ATLMFC\LIB" 	"C:\Program Files\Microsoft Visual Studio
..NE\VC7\LIB" 
	"C:\Program Files\Microsoft Visual
Studio.NET\VC7\PlatformSDK\lib\prerelease" 
	"C:\Program Files\Microsoft Visual Studio .NET\VC7\PlatformSDK\lib"
"C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\lib"
"C:\Program Files	Microsoft Visual Studio .NET\FrameworkSDK\Lib"
"R:\sybase\12.0\OCS-12_0\lib" "C:\Perl\lib\CORE"
    libs=  oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib
	oleaut32.lib  netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib
version.lib odbc32.lib odbccp32.lib msvcrt.lib
    	perllibs=  oldnames.lib kernel32.lib user32.lib gdi32.lib
winspool.lib  	comdlg32.lib advapi32.lib shell32.lib ole32
	lib oleaut32.lib  netapi32.lib uuid.lib wsock32.lib mpr.lib
winmm.lib  	version.lib odbc32.lib odbccp32.lib msvcrt.lib
	    libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl56.lib
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -release
-libpath:"C:\Perl\lib\CORE"  -machine:x86'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY USE_ITHREADS PERL_IMPLICIT_CONTEXT
PERL_IMPLICIT_SYS
  Locally applied patches:
        ActivePerl Build 631
  Built under MSWin32
  Compiled at Jan  2 2002 17:16:22
  @INC:
    c:/Perl/lib
    R:/Perl/5.6.1/site/lib
    c:/Perl/site/lib
    .




THANKS!

-Marcello Tiso



**********************************************************************
This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
************************************************************************