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: Michael Peppler <mpeppler at peppler dot org>
Subject: [Fwd: Compiling sybperl on Win2K under cygwin]
Date: Mar 31 2003 11:44PM

-----Forwarded Message-----

From: Maria Murphy 
To: mpeppler@peppler.org, sybperl-l@peppler.org
Subject: Compiling sybperl on Win2K under cygwin
Date: 31 Mar 2003 13:34:44 -1000

Hi,

I'm trying to compile sybperl on a Win2000 machine using gcc in cygwin. 
I'm failing during the make when compiling the CTLib module.  I have:

sybperl v. 2.151
OCS 12.5
perl v5.6.1 built for cygwin-multi
make v3.79.1
gcc 3.2


The output of 'perl Makefile.PL' is:

strings: /cygdrive/c/sybase/OCS-12_5/lib/libct.a: No such file or directory
Sybase OpenClient  found.
The sybperl modules need access to a Sybase server to run the tests.
To clear an entry please enter 'undef'
): ase server to use (default: ***************
): r ID to log in to Sybase (default: *******
): sword (default: *********
Checking if your kit is complete...
Looks good
strings: /cygdrive/c/sybase/OCS-12_5/lib/libct.a: No such file or directory
Sybase OpenClient  found.
Checking if your kit is complete...
Looks good
Writing Makefile for Sybase::BCP
strings: /cygdrive/c/sybase/OCS-12_5/lib/libct.a: No such file or directory
Sybase OpenClient  found.
Checking if your kit is complete...
Looks good
Writing Makefile for Sybase::BLK
strings: /cygdrive/c/sybase/OCS-12_5/lib/libct.a: No such file or directory
Sybase OpenClient  found.
Note (probably harmless): No library found for -lct
Note (probably harmless): No library found for -lcs
Note (probably harmless): No library found for -lcomn
Note (probably harmless): No library found for -lblk
Writing Makefile for Sybase::CTlib
strings: /cygdrive/c/sybase/OCS-12_5/lib/libct.a: No such file or directory
Sybase OpenClient  found.
Note (probably harmless): No library found for -lsybdb
Writing Makefile for Sybase::DBlib
strings: /cygdrive/c/sybase/OCS-12_5/lib/libct.a: No such file or directory
Sybase OpenClient  found.
Writing Makefile for Sybase::Sybperl
Writing Makefile for Sybase
-----------------------------------
Note:  Not sure why the freaky prompts are happening at the beginning; I 
also *'d out the server/password info

The output of 'make' is:

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
make[1]: Entering directory `/cygdrive/d/sybperl-2.151/BCP'
cp BCP.pm ../blib/lib/Sybase/BCP.pm
Manifying ../blib/man3/Sybase.BCP.3
make[1]: Leaving directory `/cygdrive/d/sybperl-2.151/BCP'
make[1]: Entering directory `/cygdrive/d/sybperl-2.151/BLK'
cp BLK.pm ../blib/lib/Sybase/BLK.pm
Manifying ../blib/man3/Sybase.BLK.3
make[1]: Leaving directory `/cygdrive/d/sybperl-2.151/BLK'
make[1]: Entering directory `/cygdrive/d/sybperl-2.151/CTlib'
cp CTlib.pod ../blib/lib/Sybase/CTlib.pod
cp CTlib.pm ../blib/lib/Sybase/CTlib.pm
AutoSplitting ../blib/lib/Sybase/CTlib.pm (../blib/lib/auto/Sybase/CTlib)
/usr/bin/perl -I/usr/lib/perl5/5.6.1/cygwin-multi -I/usr/lib/perl5/5.6.1 
/usr/li
b/perl5/5.6.1/ExtUtils/xsubpp -prototypes -typemap 
/usr/lib/perl5/5.6.1/ExtUtils
/typemap CTlib.xs > CTlib.xsc && mv CTlib.xsc CTlib.c
gcc -c -I/cygdrive/c/sybase/OCS-12_5/include -DPERL_USE_SAFE_PUTENV 
-fno-strict-
aliasing -I/usr/local/include -DUSEIMPORTLIB -O2   -DVERSION=\"2.151\" 
-DXS_VERS
ION=\"2.151\"  -I/usr/lib/perl5/5.6.1/cygwin-multi/CORE -DCTLIBVS=100 
-DSYBPLVER
='"2.151"' -DDO_TIE CTlib.c
Running Mkbootstrap for Sybase::CTlib ()
chmod 644 CTlib.bs
rm -f ../blib/arch/auto/Sybase/CTlib/CTlib.dll
LD_RUN_PATH="/usr/lib" ld2  -L/cygdrive/c/sybase/OCS-12_5/lib  -s 
-L/usr/local/l
ib CTlib.o  -o ../blib/arch/auto/Sybase/CTlib/CTlib.dll  
/usr/lib/perl5/5.6.1/cy
gwin-multi/CORE/libperl5_6_1.a -L/cygdrive/c/sybase/OCS-12_5/lib -ltcl 
-lintl -l
m
dllwrap --dllname CTlib.dll --driver-name gcc --dlltool dlltool 
--export-all-sym
bols --as as --output-def libCTlib.def --output-lib libCTlib.a \
-L/cygdrive/c/sybase/OCS-12_5/lib -s -L/usr/local/lib CTlib.o  
/usr/lib/perl5/5.
6.1/cygwin-multi/CORE/libperl5_6_1.a -L/cygdrive/c/sybase/OCS-12_5/lib 
-ltcl -li
ntl -lm
dllwrap: no export definition file provided.
Creating one, but that may not be what you want
CTlib.o(.text+0x17b9):CTlib.c: undefined reference to `_cs_convert'
[---- multiple lines of similar undefined references for CTLib.o---]
collect2: ld returned 1 exit status
dllwrap: gcc exited with status 1
perlld: *** system() failed to execute
dllwrap --dllname CTlib.dll --driver-name gcc --dlltool dlltool 
--export-all-sym
bols --as as --output-def libCTlib.def --output-lib libCTlib.a \
-L/cygdrive/c/sybase/OCS-12_5/lib -s -L/usr/local/lib CTlib.o  
/usr/lib/perl5/5.
6.1/cygwin-multi/CORE/libperl5_6_1.a -L/cygdrive/c/sybase/OCS-12_5/lib 
-ltcl -li
ntl -lm

make[1]: *** [../blib/arch/auto/Sybase/CTlib/CTlib.dll] Error 1
make[1]: Leaving directory `/cygdrive/d/sybperl-2.151/CTlib'
make: *** [subdirs] Error 2
-----------------------------------------

Does anyone have any hints for me (besides trying Activestate perl, 
which unfortunately doesn't have a version of sybperl for Win32 :-) ) ?

tia,

-maria
-- 
Michael Peppler                              Data Migrations, Inc.
mpeppler@peppler.org                 http://www.mbay.net/~mpeppler
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or 
long term contract positions - http://www.mbay.net/~mpeppler/resume.html