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: Re: problems with make
Date: Mar 2 2001 11:07PM

Jamie Belanger writes:
 > Here is the error output when I attempt to make sybperl:
 > 
 > # /tmp/sybperl-2.13> make
 >         cc -c -I/link/sybase/include -Ae -D_LARGEFILE_SOURCE
 > -D_FILE_OFFSET_BITS=64 -O +Onolimit      -DVERSION=\"2.13\"
 > -DXS_VERSION=\"2.13\" +z -I/opt/perl5/lib/5.6.0/PA-RISC1.1/CORE
 > -DCTLIBVS=100 -DSYBPLVER='"2.13"' -DDO_TIE CTlib.c
 > (Bundled) cc: warning 480: The -A option is available only with the C/ANSI C
 > product; ignored.
 > (Bundled) cc: warning 480: The -O option is available only with the C/ANSI C
 > product; ignored.
 > (Bundled) cc: warning 480: The +Onolimit option is available only with the
 > C/ANSI C product; ignored.
 > (Bundled) cc: warning 480: The +z option is available only with the C/ANSI C
 > product; ignored.
 > cpp: "CTlib.xs", line 41: error 4036: Can't open include file 'ctpublic.h'.
 > *** Error exit code 1

Various problems here. First I suspect that the copy of perl was built
with HPs unbundled compiler, whereas the compiler on the system is the
bundled k&r C compiler. I suggest installing gcc and then rebuilding
both perl and sybperl.

Second - the Sybase include and lib directories are needed. If this is
a 12.x installation then OpenClient is installed in
$SYBASE/OCS_12/. Recent versions of sybperl should be able to find
this (though I think they rely on the SYBASE_OCS environment variable
being set for this to work correctly.)

If you have an 11.x server then OpenClient *should* be in
$SYBASE/include and $SYBASE/lib.

Michael
-- 
Michael Peppler - Data Migrations Inc. - mpeppler@peppler.org
http://www.mbay.net/~mpeppler - mpeppler@mbay.net
International Sybase User Group - http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com