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: "Tang, Jun [IT]" <jun dot tang at citigroup dot com>
Subject: RE: Sybperl compile error
Date: May 21 2002 2:24PM

Yes. I set the Sybase env before perl Makefile.PL and everything looked
fine.
Here is the output from perl Makefile.PL:

rcddw34 [98] $perl Makefile.PL
Checking if your kit is complete...
Looks good
Checking if your kit is complete...
Looks good
Writing Makefile for Sybase::BCP
Writing Makefile for Sybase::CTlib
Writing Makefile for Sybase::DBlib
Writing Makefile for Sybase::Sybperl
Writing Makefile for Sybase

Here is teh output from make:

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
Manifying ../blib/man3/Sybase::BCP.3
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)
/opt/perl/5.6.1/bin/perl -I/opt/perl/5.6.1/lib/5.6.1/sun4-solaris
-I/opt/perl/5.6.1/lib/5.6.1 /opt/perl/5.6.1/lib/5.6.1/ExtUtils/xsubpp
-prototypes -typemap /opt/perl/5.6.1/lib/5.6.1/ExtUtils/typemap CTlib.xs >
CTlib.xsc && mv CTlib.xsc CTlib.c
/xenv/Forte/sun4/6.2/5.6p4/WS6U2/bin/cc -c /xenv/OS/sun4/5.6p4/sun4u/include
-I/usr/local/include -I/opt/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O    -DVERSION=\"2.13\"  -DXS_VERSION=\"2.13\" -KPIC
-I/opt/perl/5.6.1/lib/5.6.1/sun4-solaris/CORE -DCTLIBVS=100
-DSYBPLVER='"2.13"' -DDO_TIE CTlib.c
+ echo Input Arguments = -c /xenv/OS/sun4/5.6p4/sun4u/include
-I/usr/local/include -I/opt/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O -DVERSION="2.13" -DXS_VERSION="2.13" -KPIC
-I/opt/perl/5.6.1/lib/5.6.1/sun4-solaris/CORE -DCTLIBVS=100
-DSYBPLVER="2.13" -DDO_TIE CTlib.c 
Input Arguments = -c /xenv/OS/sun4/5.6p4/sun4u/include -I/usr/local/include
-I/opt/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
-DVERSION="2.13"  -DXS_VERSION="2.13" -KPIC
-I/opt/perl/5.6.1/lib/5.6.1/sun4-solaris/CORE -DCTLIBVS=100
-DSYBPLVER="2.13" -DDO_TIE CTlib.c 
Input Arguments = -c /xenv/OS/sun4/5.6p4/sun4u/include -I/usr/local/include
-I/opt/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
-DVERSION="2.13" -DXS_VERSION="2.13" -KPIC
-I/opt/perl/5.6.1/lib/5.6.1/sun4-solaris/CORE -DCTLIBVS=100
-DSYBPLVER="2.13" -DDO_TIE CTlib.c
+ echo BIT64 = .\n 
BIT64 = .

+ echo -c /xenv/OS/sun4/5.6p4/sun4u/include -I/usr/local/include
-I/opt/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
-DVERSION="2.13" -DXS_VERSION="2.13" -KPIC
-I/opt/perl/5.6.1/lib/5.6.1/sun4-solaris/CORE -DCTLIBVS=100
-DSYBPLVER="2.13" -DDO_TIE CTlib.c 
+ grep \-xchip 
+ [ 1 -eq 0 ] 
+ echo -c /xenv/OS/sun4/5.6p4/sun4u/include -I/usr/local/include
-I/opt/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
-DVERSION="2.13" -DXS_VERSION="2.13" -KPIC
-I/opt/perl/5.6.1/lib/5.6.1/sun4-solaris/CORE -DCTLIBVS=100
-DSYBPLVER="2.13" -DDO_TIE CTlib.c 
+ grep \-xcache 
+ [ 1 -eq 0 ] 
+ echo -c /xenv/OS/sun4/5.6p4/sun4u/include -I/usr/local/include
-I/opt/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
-DVERSION="2.13" -DXS_VERSION="2.13" -KPIC
-I/opt/perl/5.6.1/lib/5.6.1/sun4-solaris/CORE -DCTLIBVS=100
-DSYBPLVER="2.13" -DDO_TIE CTlib.c 
+ grep \-fast
+ [ 1 -eq 0 ] 
+ echo -c /xenv/OS/sun4/5.6p4/sun4u/include -I/usr/local/include
-I/opt/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
-DVERSION="2.13" -DXS_VERSION="2.13" -KPIC
-I/opt/perl/5.6.1/lib/5.6.1/sun4-solaris/CORE -DCTLIBVS=100
-DSYBPLVER="2.13" -DDO_TIE CTlib.c 
+ grep \-xprefetch 
+ [ 1 -eq 0 ] 
+ echo -c /xenv/OS/sun4/5.6p4/sun4u/include -I/usr/local/include
-I/opt/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
-DVERSION="2.13" -DXS_VERSION="2.13" -KPIC
-I/opt/perl/5.6.1/lib/5.6.1/sun4-solaris/CORE -DCTLIBVS=100
-DSYBPLVER="2.13" -DDO_TIE CTlib.c 
+ grep \-xsafe 
+ [ 1 -eq 0 ] 
+ [ -z  ] 
XENVINCREMENTLINK=N
+ [ -n  ] 
ARCH64=generic64
ARCLOC=v9
+ [ -z  ] 
BIT64=N
+ [ N = Y ] 
LD_LIBRARY_PATH=/xenv/iona/sun4/5.x/3.0.1p59/lib::/opt/sybase/10.0.1.a/ebf43
28/lib:/home/jt07936/rvplayer5.0:/home/jt07936/inprise/ias/lib:/xenv/OS/sun4
/5.6p4/sun4u/lib:/xenv/OS/sun4/5.6p4/sun4u/ccs/lib:/xenv/Forte/sun4/6.2/5.6p
4/lib:/xenv/Forte/sun4/6.2/5.6p4/WS6U2/lib:/xenv/Forte/sun4/6.2/5.6p4/WS6U2/
lib/CC4
+ echo LD_LIBRARY_PATH =
/xenv/iona/sun4/5.x/3.0.1p59/lib::/opt/sybase/10.0.1.a/ebf4328/lib:/home/jt0
7936/rvplayer5.0:/home/jt07936/inprise/ias/lib:/xenv/OS/sun4/5.6p4/sun4u/lib
:/xenv/OS/sun4/5.6p4/sun4u/ccs/lib:/xenv/Forte/sun4/6.2/5.6p4/lib:/xenv/Fort
e/sun4/6.2/5.6p4/WS6U2/lib:/xenv/Forte/sun4/6.2/5.6p4/WS6U2/lib/CC4
LD_LIBRARY_PATH =
/xenv/iona/sun4/5.x/3.0.1p59/lib::/opt/sybase/10.0.1.a/ebf4328/lib:/home/jt0
7936/rvplayer5.0:/home/jt07936/inprise/ias/lib:/xenv/OS/sun4/5.6p4/sun4u/lib
:/xenv/OS/sun4/5.6p4/sun4u/ccs/lib:/xenv/Forte/sun4/6.2/5.6p4/lib:/xenv/Fort
e/sun4/6.2/5.6p4/WS6U2/lib:/xenv/Forte/sun4/6.2/5.6p4/WS6U2/lib/CC4
+ [ N = Y ] 
PURIFY_ON=-Yl,/nld32
QUANTIFY_ON=-Yl,/nld32
PURIFY_OFF=-Yl,/xenv/Forte/sun4/6.2/5.6p4/WS6U2/bin
+ [ N = Y ] 
LIBDIRS=-L/xenv/OS/sun4/5.6p4/sun4u/lib -L/xenv/OS/sun4/5.6p4/sun4u/ccs/lib
+ [ N = Y ] 
PATHOPT=                -Yl,/xenv/Forte/sun4/6.2/5.6p4/WS6U2/bin
-Yp,/xenv/OS/sun4/5.6p4/sun4u/ccs/lib
-YI,/xenv/OS/sun4/5.6p4/sun4u/include
+ [ N = Y ] 
PATHOPT_PURIFY=         -Yl,/nld32
-Yp,/xenv/OS/sun4/5.6p4/sun4u/ccs/lib
-YI,/xenv/OS/sun4/5.6p4/sun4u/include
+ [ N = Y ] 
PATHOPT_QUANTIFY=               -Yl,/nld32
-Yp,/xenv/OS/sun4/5.6p4/sun4u/ccs/lib
-YI,/xenv/OS/sun4/5.6p4/sun4u/include
+ [ -n  ] 
+ [ -n  ] 
+ [ N = Y ] 
+ [ N = Y ] 
+ [ -z  ] 
+ exec /xenv/Forte/sun4/6.2/5.6p4/WS6U2/bin/_cc -xildoff -Dsvr4
-Yl,/xenv/Forte/sun4/6.2/5.6p4/WS6U2/bin
-Yp,/xenv/OS/sun4/5.6p4/sun4u/ccs/lib -YI,/xenv/OS/sun4/5.6p4/sun4u/include
-c /xenv/OS/sun4/5.6p4/sun4u/include -I/usr/local/include
-I/opt/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
-DVERSION="2.13" -DXS_VERSION="2.13" -KPIC
-I/opt/perl/5.6.1/lib/5.6.1/sun4-solaris/CORE -DCTLIBVS=100
-DSYBPLVER="2.13" -DDO_TIE CTlib.c -L/xenv/OS/sun4/5.6p4/sun4u/lib
-L/xenv/OS/sun4/5.6p4/sun4u/ccs/lib 
"CTlib.xs", line 41: cannot find include file: 
"CTlib.xs", line 75: syntax error before or at: CS_SMALLINT
"CTlib.xs", line 75: cannot recover from previous errors
cc: acomp failed for CTlib.c
*** Error code 2
make: Fatal error: Command failed for target `CTlib.o'
Current working directory /home/jt07936/archive/sybperl-2.13/CTlib
*** Error code 1
make: Fatal error: Command failed for target `subdirs'

-----Original Message-----
From: Michael Peppler [mailto:mpeppler@peppler.org]
Sent: Tuesday, May 21, 2002 9:54 AM
To: SybPerl Discussion List
Subject: RE: Sybperl compile error


On Tue, 2002-05-21 at 06:23, Tang, Jun [IT] wrote:
> Michael,
> 
> The sybase is install in /opt/sybase directory. I set SYBASE=/opt/sybase
but
> not SYBASE_OCS. Is SYBASE_OCS for Sybase 12? I am using 11.

Yes, SYBASE_OCS is for Sybase 12.x.

Is your SYBASE env. variable set to /opt/sybase when you run perl
Makefile.PL?
Do you get any errors/warnings when you run perl Makefile.PL?

Michael


> -----Original Message-----
> From: Michael Peppler [mailto:mpeppler@peppler.org]
> Sent: Monday, May 20, 2002 7:06 PM
> To: SybPerl Discussion List
> Subject: RE: Sybperl compile error
> 
> 
> On Mon, 2002-05-20 at 15:22, Tang, Jun [IT] wrote:
> > Michael,
> > 
> > I did it in both the CONFIG file and on the command line but I still can
> not
> > compile it. I am not using the Solaris 2.6 64bit feature and that should
> not
> > be a problem.
> 
> Where is Sybase installed?
> 
> Is your SYBASE and SYBASE_OCS env. variables set correctly?
> 
> Michael
> 
> > -----Original Message-----
> > From: Michael Peppler [mailto:mpeppler@peppler.org]
> > Sent: Monday, May 20, 2002 5:56 PM
> > To: SybPerl Discussion List
> > Subject: Re: Sybperl compile error
> > 
> > 
> > On Mon, 2002-05-20 at 14:45, Tang, Jun [IT] wrote:
> > > Hi,
> > > 
> > > I am new to Sybper and trying to compile it  but got the following
> error:
> > > 
> > > 
> > > + exec /xenv/Forte/sun4/6.2/5.6p4/WS6U2/bin/_cc -xildoff -Dsvr4
> > > -Yl,/xenv/Forte/sun4/6.2/5.6p4/WS6U2/bin
> > > -Yp,/xenv/OS/sun4/5.6p4/sun4u/ccs/lib
> > -YI,/xenv/OS/sun4/5.6p4/sun4u/include
> > > -c /xenv/OS/sun4/5.6p4/sun4u/include -I/usr/local/include
> > > -I/opt/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
> > > -DVERSION="2.13" -DXS_VERSION="2.13" -KPIC
> > > -I/opt/perl/5.6.1/lib/5.6.1/sun4-solaris/CORE -DCTLIBVS=100
> > > -DSYBPLVER="2.13" -DDO_TIE CTlib.c -L/xenv/OS/sun4/5.6p4/sun4u/lib
> > > -L/xenv/OS/sun4/5.6p4/sun4u/ccs/lib 
> > > "CTlib.xs", line 41: cannot find include file: 
> > 
> > Which means that the SYBASE installation wasn't found correctly.
> > 
> > This would seem to indicate that your SYBASE environment variable and/or
> > SYBASE_OCS wasn't set correctly. 
> > 
> > In addition - do you have the 64 bit version of Sybase installed?
> > 
> > If so - you need to do one of two things:
> > 
> > 1) Rebuild perl in 64 bit mode, get sybperl 2.14_01 (from
> > http://www.peppler.org/downloads) and the build this new version (but
> > read the information in the README and CONFIG files).
> > 
> > 2) Load the 32 bit version of OpenClient, and use that to build sybperl