Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sybperl compilation error on AIX 5.3

0 views
Skip to first unread message

Manoj

unread,
Jan 13, 2006, 3:43:38 AM1/13/06
to
I aqm getting this error while comipling sybperl. Can anyone
help me ?


$ 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.
$

mpep...@peppler.org

unread,
Jan 13, 2006, 4:39:31 AM1/13/06
to
> I aqm getting this error while comipling sybperl. Can
> anyone help me ?
>
>
> $ 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.ex
> p -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

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

Manoj

unread,
Jan 13, 2006, 5:52:14 AM1/13/06
to
Hi Michale,
How can I determine whether perl is 32bit or 64 bit. BTW
perl was preinstalled along with AIX.
When I was running perl Makefile.PL it also gave errors -

$ 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

Jason L. Froebe [Team Sybase]

unread,
Jan 14, 2006, 10:26:44 PM1/14/06
to

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

mpep...@peppler.org

unread,
Jan 16, 2006, 4:35:55 AM1/16/06
to
> Hi Michale,
> How can I determine whether perl is 32bit or 64 bit. BTW
> perl was preinstalled along with AIX.
> When I was running perl Makefile.PL it also gave errors -

> 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

Manoj

unread,
Jan 17, 2006, 3:41:31 AM1/17/06
to
Hi Michale,
Open client is 64 bit. For perl I could not determine. Here
is perl -V output -
$ perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 2)
configuration:
Platform:
osname=aix, osvers=5.2.0.0, archname=aix-thread-multi
uname='aix perlfly 2 5 000ad7df4c00 '
config_args=''
hint=previous, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef
useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define
usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
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',
optimize='-O',
cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN
-DNEED_PTHREAD_INIT -D_ALL_SOURCE -D_ANSI_C_SOURCE

-D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias
-DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES
-qlonglong -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE

-qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN
-DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong
-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN
-DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong
-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN
-DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong
-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN
-DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong
-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN
-DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong'
ccversion='', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8,
byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define,
longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8,
Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='ld', ldflags =' -brtl -b32 -bmaxdata:0x80000000'
libpth=/lib /usr/lib /usr/ccs/lib
libs=-lbind -lnsl -ldbm -ldl -lld -lm -lpthreads -lc_r
-lcrypt -lbsd -lPW
perllibs=-lbind -lnsl -ldl -lld -lm -lpthreads -lc_r
-lcrypt -lbsd -lPW
libc=/lib/libc.a, so=a, useshrplib=true,
libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-bE:/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/perl.exp
-bE:/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/perl.exp
-bE:/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/perl.exp
-bE:/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/perl.exp'
cccdlflags=' ', lddlflags='-bhalt:4 -bM:SRE
-bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -bnoentry
-lpthreads -lc_r'


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

Jason L. Froebe [Team Sybase]

unread,
Jan 17, 2006, 9:11:03 AM1/17/06
to


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. :)

0 new messages