|
|
sybperl-l Archive
Up Prev Next
From: Matthew Hempel <root at reliant dot select dot net>
Subject: building sybperl on Linux
Date: Nov 4 1997 4:03AM
Hello
I'm trying to build sybperl on Linux 2.0.30, so that I might be able to
connect via SYBASE to Microsoft SQL Server on an NT box. I've downloaded
and installed the SYBASE Open Client for Linux, which came with
precompiled static libraries. I installed the entire sybase.tgz package
in /usr/local/sybase.
My CONFIG looks like so (comments removed):
DBLIBVS=0
CTLIBVS=100
SYBASE=/usr/local/sybase
EXTRA_LIBS=-lsybtcl -linsck
LINKTYPE=static
make Makefile.PL reports all good.
make has no complaints.
make test on the other hand
/build/sybperl-2.08/blib/arch/auto/Sybase/CTlib/CTlib.a(CTlib.o): In function `to_datetime':
CTlib.o(.text+0x6a3): undefined reference to `cs_convert'
/build/sybperl-2.08/blib/arch/auto/Sybase/CTlib/CTlib.a(CTlib.o): In function `from_datetime':
CTlib.o(.text+0x783): undefined reference to `cs_convert'
/build/sybperl-2.08/blib/arch/auto/Sybase/CTlib/CTlib.a(CTlib.o): In function `to_money':
CTlib.o(.text+0x8f3): undefined reference to `cs_convert'
/build/sybperl-2.08/blib/arch/auto/Sybase/CTlib/CTlib.a(CTlib.o): In function `from_money':
CTlib.o(.text+0x9d3): undefined reference to `cs_convert'
/build/sybperl-2.08/blib/arch/auto/Sybase/CTlib/CTlib.a(CTlib.o): In function `money2float':
CTlib.o(.text+0xa85): undefined reference to `cs_convert'
/build/sybperl-2.08/blib/arch/auto/Sybase/CTlib/CTlib.a(CTlib.o)(.text+0xc52): more undefined references to `cs_convert' follow
/build/sybperl-2.08/blib/arch/auto/Sybase/CTlib/CTlib.a(CTlib.o): In function `describe':
CTlib.o(.text+0x12a9): undefined reference to `ct_res_info'
ad nauseam ...
I checked the libraries in /usr/local/sybase/lib and found these symbols
in libcs.a and libct.a. So I added -lcs and -lct to the EXTRALIBS
section of the CONFIG file. No luck. I changed the LINKTPE to dynamic:
/usr/bin/perl: can't resolve symbol 'cs_dt_info'
/usr/bin/perl: can't resolve symbol 'ct_param'
/usr/bin/perl: can't resolve symbol 'ct_compute_info'
/usr/bin/perl: can't resolve symbol 'ct_results'
/usr/bin/perl: can't resolve symbol 'ct_cancel'
/usr/bin/perl: can't resolve symbol 'ct_close'
/usr/bin/perl: can't resolve symbol 'ct_options'
/usr/bin/perl: can't resolve symbol 'cs_ctx_drop'
/usr/bin/perl: can't resolve symbol 'cs_calc'
/usr/bin/perl: can't resolve symbol 'ct_callback'
/usr/bin/perl: can't resolve symbol 'ct_command'
/usr/bin/perl: can't resolve symbol 'ct_init'
/usr/bin/perl: can't resolve symbol 'ct_fetch'
/usr/bin/perl: can't resolve symbol 'ct_config'
/usr/bin/perl: can't resolve symbol 'ct_con_props'
/usr/bin/perl: can't resolve symbol 'ct_con_drop'
/usr/bin/perl: can't resolve symbol 'ct_connect'
/usr/bin/perl: can't resolve symbol 'ct_describe'
/usr/bin/perl: can't resolve symbol 'ct_cmd_drop'
/usr/bin/perl: can't resolve symbol 'ct_send'
/usr/bin/perl: can't resolve symbol 'ct_con_alloc'
/usr/bin/perl: can't resolve symbol 'ct_cursor'
/usr/bin/perl: can't resolve symbol 'cs_ctx_alloc'
/usr/bin/perl: can't resolve symbol 'cs_cmp'
/usr/bin/perl: can't resolve symbol 'ct_cmd_alloc'
/usr/bin/perl: can't resolve symbol 'ct_bind'
/usr/bin/perl: can't resolve symbol 'ct_res_info'
/usr/bin/perl: can't resolve symbol 'cs_dt_crack'
/usr/bin/perl: can't resolve symbol 'cs_convert'
Can't load '.././blib/arch/auto/Sybase/CTlib/CTlib.so' for module Sybase::CTlib: Unable to resolve symbol at /usr/lib/perl5/i486-linux/5.00403/DynaLoader.pm line 155.
BEGIN failed--compilation aborted at t/cursor.t line 12.
Failed 2/2 test scripts, 0.00% okay. 52/52 subtests failed, 0.00% okay.
make[1]: *** [test_dynamic] Error 2
make: *** [test] Error 2
Any thoughts?
--matt hempel
____________________________________________________________________________
Matthew Hempel SelectNet Internet Services
Systems Administrator Carlsbad, California
(760) 438-9555
|