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: Holger Haslbeck <Holger dot Haslbeck at monocom dot com>
Subject: SybPerl-Linux-CGI-Apache Problem...
Date: Nov 3 1998 6:08AM

Hi!

I'm new to Sybper and have a little Problem:

I'm using the latestest Sybperl release which I compiled on my Linux
System (2.0.35). It looks to wokr when starting scripts from the shell.
But doesn't work when using it with CGI and the Apache Server:

I get error messgae like this:

----
/usr/sbin/httpd: can't resolve symbol 'dirty'
/usr/sbin/httpd: can't resolve symbol 'Perl_markstack_ptr'
/usr/sbin/httpd: can't resolve symbol 'tmps_floor'
/usr/sbin/httpd: can't resolve symbol 'Perl_stack_max'
/usr/sbin/httpd: can't resolve symbol 'tmps_ix'
/usr/sbin/httpd: can't resolve symbol 'Perl_markstack_max'
/usr/sbin/httpd: can't resolve symbol 'Perl_Xpv'
/usr/sbin/httpd: can't resolve symbol 'Perl_sv_undef'
/usr/sbin/httpd: can't resolve symbol 'Perl_stack_sp'
/usr/sbin/httpd: can't resolve symbol 'Perl_sv_yes'
/usr/sbin/httpd: can't resolve symbol 'Perl_stack_base'
/usr/sbin/httpd: can't resolve symbol 'Perl_Sv'
/usr/sbin/httpd: can't resolve symbol 'Perl_na'
[Mon Nov  2 15:39:43 1998] [error] Can't load
'/usr/lib/perl5/site_perl/i586-lin
ux/auto/Sybase/DBlib/DBlib.so' for module Sybase::DBlib: Unable to
resolve symbo
l at /usr/lib/perl5/i586-linux/5.00404/DynaLoader.pm line 166.

 at /usr/local/httpd/cgi-bin/sql.pl line 7
BEGIN failed--compilation aborted at /usr/local/httpd/cgi-bin/sql.pl
line 7.
----

If i use "use Sybase::DBlib;". Even the DBlib.so is in that path.

And I get:

[Mon Nov  2 20:35:38 1998] [error] Can't locate Apache/Sybase/DBlib.pm
in @INC (@INC contains: /usr/lib/perl5/i586-linux/5.00404 /usr/lib/perl5
/usr/lib/perl5/site_perl/i586-linux /usr/lib/perl5/site_perl . /usr/
/usr/lib/perl) at /usr/local/httpd/cgi-bin/sql.pl line 7.
BEGIN failed--compilation aborted at /usr/local/httpd/cgi-bin/sql.pl
line 7.  

If I try "use Apache::Sybase:DBlib". 

What am I doing wrong? Should I use CTLib?

Thank you for your help!

Holger




I