$ make
cc_r -c -I/app/sybase/OCS-12_5/include
-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN
-DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong -O
-DVERSION=\"2.18\" -DXS_VERSION=\"2.18\"
"-I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE"
-DCTLIBVS=100 -DSYBPLVER='"2.18"' -DDO_TIE CTlib.c
Running Mkbootstrap for Sybase::CTlib ()
chmod 644 CTlib.bs
rm -f ../blib/arch/auto/Sybase/CTlib/CTlib.so
LD_RUN_PATH="" ld -L/app/sybase/OCS-12_5/lib
-bhalt:4 -bM:SRE
-bI:/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/perl.exp
-bE:CTlib.exp -bnoentry -lpthreads -lc_r CTlib.o -o
./blib/arch/auto/Sybase/CTlib/CTlib.so
-L/app/sybase/OCS-12_5/lib -lm
ld: 0711-317 ERROR: Undefined symbol: .cs_calc
ld: 0711-317 ERROR: Undefined symbol: .cs_cmp
ld: 0711-317 ERROR: Undefined symbol: .cs_dt_crack
ld: 0711-317 ERROR: Undefined symbol: .cs_dt_info
ld: 0711-317 ERROR: Undefined symbol: .blk_done
ld: 0711-317 ERROR: Undefined symbol: .cs_diag
ld: 0711-317 ERROR: Undefined symbol: .blk_bind
ld: 0711-317 ERROR: Undefined symbol: .blk_rowxfer
ld: 0711-317 ERROR: Undefined symbol: .blk_alloc
ld: 0711-317 ERROR: Undefined symbol: .blk_props
ld: 0711-317 ERROR: Undefined symbol: .blk_init
ld: 0711-317 ERROR: Undefined symbol: .blk_describe
ld: 0711-317 ERROR: Undefined symbol: .ct_dynamic
ld: 0711-317 ERROR: Undefined symbol: .ct_send
ld: 0711-317 ERROR: Undefined symbol: .ct_results
ld: 0711-317 ERROR: Undefined symbol: .ct_param
ld: 0711-317 ERROR: Undefined symbol: .ct_capability
ld: 0711-317 ERROR: Undefined symbol: .ct_res_info
ld: 0711-317 ERROR: Undefined symbol: .ct_describe
ld: 0711-317 ERROR: Undefined symbol: .ct_cursor
ld: 0711-317 ERROR: Undefined symbol: .ct_poll
ld: 0711-317 ERROR: Undefined symbol: .ct_con_props
ld: 0711-317 ERROR: Undefined symbol: .ct_config
ld: 0711-317 ERROR: Undefined symbol: .ct_options
ld: 0711-317 ERROR: Undefined symbol: .ct_fetch
ld: 0711-317 ERROR: Undefined symbol: .ct_cancel
ld: 0711-317 ERROR: Undefined symbol: .ct_data_info
ld: 0711-317 ERROR: Undefined symbol: .ct_send_data
ld: 0711-317 ERROR: Undefined symbol: .ct_get_data
ld: 0711-317 ERROR: Undefined symbol: .ct_command
ld: 0711-317 ERROR: Undefined symbol: .ct_cmd_alloc
ld: 0711-317 ERROR: Undefined symbol: .ct_cmd_drop
ld: 0711-317 ERROR: Undefined symbol: .ct_close
ld: 0711-317 ERROR: Undefined symbol: .ct_con_drop
ld: 0711-317 ERROR: Undefined symbol: .ct_con_alloc
ld: 0711-317 ERROR: Undefined symbol: .cs_locale
ld: 0711-317 ERROR: Undefined symbol: .ct_connect
ld: 0711-317 ERROR: Undefined symbol: .cs_convert
ld: 0711-317 ERROR: Undefined symbol: .cs_ctx_alloc
ld: 0711-317 ERROR: Undefined symbol: .cs_config
ld: 0711-317 ERROR: Undefined symbol: .ct_init
ld: 0711-317 ERROR: Undefined symbol: .ct_callback
ld: 0711-317 ERROR: Undefined symbol: .cs_loc_alloc
ld: 0711-317 ERROR: Undefined symbol: .ct_bind
ld: 0711-317 ERROR: Undefined symbol: .ct_compute_info
ld: 0711-317 ERROR: Undefined symbol: .blk_drop
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain
more information.
make: 1254-004 The error code from the last command is 8.
Stop.
make: 1254-004 The error code from the last command is 2.
Stop.
$
I don't really have enough information, but I suspect that
perl is built in 32bit mode, and you have the 64bit Sybase
client libs. If that is the case you need to either rebuild
perl in full 64bit mode, and use the Sybase 64bit libraries,
or install a 32bit OpenClient SDK and build it all in 32bit
mode.
Michael
$ perl Makefile.PL
/app/sybase
Sybase OpenClient 12.5.1 found.
The sybperl modules need access to a Sybase server to run
the tests.
To clear an entry please enter 'undef'
Sybase server to use (default: SYBASE): airtelmisdb
User ID to log in to Sybase (default: sa):
Password (default: undef): unvincible123
Sybase database to use on airtelmisdb (default: undef):
sybsystemprocs
* Writing login information, including password, to file
PWD.
/app/sybase
Sybase OpenClient 12.5.1 found.
Writing Makefile for Sybase::BCP
Writing Makefile for Sybase::BLK
/app/sybase
Sybase OpenClient 12.5.1 found.
Running in threaded mode - looking for _r libraries...
Found -lct_r for -lct
Found -lcs_r for -lcs
Found -ltcl_r for -ltcl
Found -lcomn_r for -lcomn
Found -lintl_r for -lintl
Note (probably harmless): No library found for -lct_r
Note (probably harmless): No library found for -lcs_r
Note (probably harmless): No library found for -ltcl_r
Note (probably harmless): No library found for -lcomn_r
Note (probably harmless): No library found for -lintl_r
Note (probably harmless): No library found for -lblk
Writing Makefile for Sybase::CTlib
/app/sybase
Sybase OpenClient 12.5.1 found.
Note (probably harmless): No library found for -lsybdb
Writing Makefile for Sybase::DBlib
/app/sybase
Sybase OpenClient 12.5.1 found.
Writing Makefile for Sybase::Sybperl
Writing Makefile for Sybase
To determine if perl is 32bit or 64bit: perl -v
To determine if Openclient is 32bit or 64bit:
$SYBASE/$SYBASE_OCS/bin/isql -v
both will tell you explicitly if it is 64bit
--
Jason L. Froebe
http://jfroebe.livejournal.com
Team Sybase
> Running in threaded mode - looking for _r libraries...
> Found -lct_r for -lct
> Found -lcs_r for -lcs
> Found -ltcl_r for -ltcl
> Found -lcomn_r for -lcomn
> Found -lintl_r for -lintl
> Note (probably harmless): No library found for -lct_r
This means that the perl binary and the Sybase libs aren't
of the same format.
Follow Jason's info to find out what bit-size the perl
binary and the Sybase libs are, and then we can figure out
how to fix things.
Michael
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS
USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
Built under aix
Compiled at Feb 13 2004 13:18:17
@INC:
/usr/opt/perl5/lib/5.8.2/aix-thread-multi
/usr/opt/perl5/lib/5.8.2
/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi
/usr/opt/perl5/lib/site_perl/5.8.2
/usr/opt/perl5/lib/site_perl
Hi Manoj,
Your perl is 32bit. Notice the "-q32" in the compiler lines that
specify compiling a 32bit binary:
> Compiler:
> cc='cc_r', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE
> -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias
> -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES
> -qlonglong',
I would recommend you contact your unix admin to install the 64bit
version of perl. :)