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: Mark Conover <markc at celtech dot com>
Subject: Sybperl/CGI error - cs_ctx_alloc()
Date: Sep 29 1997 9:36PM

I recently installed Sybperl (ver 2.07, static binding) on my Linux
(RedHat 2.0.30) workstation. 

Using CTlib, connections to remote Sybase servers have been successfully
created, querying like crazy.

My first attempts at incorporating sybperl in a CGI program are 
causing a bit of grief.  As soon as the "use Sybase::CTlib" is 
interpreted, I get a DynaLoader error.  Apparently cs_ctx_alloc() is
a very unhappy camper.  

Noting the FAQ reference to LD_LIBRARY_PATH, I double checked to 
see if this was set in my normal shell. (It isn't.) 

I'll include the header of my program:

----------------------------------------
#!/usr/bin/perl

use CGI::Carp qw(fatalsToBrowser);
use CGI qw(:standard);
use Sybase::CTlib;

....
----------------------------------------


CGI::Carp provides this peek at what is happening:

----------------------------------------
Software error:

Sybase::CTlib initialize: cs_ctx_alloc() failed at
/usr/lib/perl5/site_perl/Sybase/CTlib.pm line
858. 

Software error:

[Mon Sep 29 13:41:51 1997] DynaLoader.pm: Sybase::CTlib initialize:
cs_ctx_alloc() failed at
/usr/lib/perl5/site_perl/Sybase/CTlib.pm line 858. 

Software error:

[Mon Sep 29 13:41:51 1997] CTlib.pm: [Mon Sep 29 13:41:51 1997]
DynaLoader.pm: Sybase::CTlib
initialize: cs_ctx_alloc() failed at
/usr/lib/perl5/site_perl/Sybase/CTlib.pm line 858. BEGIN
failed--compilation aborted at /home/httpd/cgi-bin/cgiperl/cgptest.pl
line 7. 
-----------------------------------------


Any suggestions?  If the sybperl mailing list is archived, I'd
appreciate
a steer in its direction.

Thank you,

-Mark
-- 
Mark Conover
Software Engineer
Cellular Technical Services