CC: | KERSPERN Nicolas <nicolas.kerspern [...] atos.net> |
Subject: | DBD-Sybase: Issue installing DBD::Sybase1.15 |
Date: | Mon, 16 Sep 2013 13:00:10 +0000 |
To: | "bug-DBD-Sybase [...] rt.cpan.org" <bug-DBD-Sybase [...] rt.cpan.org> |
From: | KERSPERN Nicolas <nicolas.kerspern [...] atos.net> |
Hi Team,
We are trying to install DBD:Sybase 1.15 on SunOS x86 server 5.10 with Perl version as 5.14.2 and gcc version 3.4.6.
We are facing below error :
Root# make clean
rm -f \
*.a core \
core.[0-9] blib/arch/auto/DBD/Sybase/extralibs.all \
core.[0-9][0-9] Sybase.bso \
pm_to_blib.ts core.[0-9][0-9][0-9][0-9] \
MYMETA.yml Sybase.x \
Sybase.bs perl \
tmon.out *.o \
pm_to_blib blib/arch/auto/DBD/Sybase/extralibs.ld \
Sybase.c blibdirs.ts \
core.[0-9][0-9][0-9][0-9][0-9] *perl.core \
core.*perl.*.? Makefile.aperl \
Sybase.def perl \
core.[0-9][0-9][0-9] mon.out \
libSybase.def perlmain.c \
perl.exe so_locations \
Sybase.exp
rm -rf \
Sybase.xsi PWD \
blib
mv Makefile Makefile.old > /dev/null 2>&1
Root# perl M*L --accept_test_defaults --chained {Y, N} --threaded_libs {Y, N}-I/opt/sybase/ASE-15_0/lib --file
Sybase OpenClient 15.7 found.
By default DBD::Sybase 1.05 and later use the 'CHAINED' mode (where available)
when 'AutoCommit' is turned off. Versions 1.04 and older instead managed
the transactions explicitly with a 'BEGIN TRAN' before the first DML
statement. Using the 'CHAINED' mode is preferable as it is the way that
Sybase implements AutoCommit handling for both its ODBC and JDBC drivers.
Use 'CHAINED' mode by default (Y/N) [Y]:
Running in threaded mode - looking for _r libraries...
***NOTE***
There is an incompatibility between perl (5.8.x or later) built in threaded
mode and Sybase's threaded libraries, which means that signals delivered to
the perl process result in a segment violation.
I suggest building DBD::Sybase with the normal libraries in this case to get
reasonable behavior for signal handling.
Use the threaded (lib..._r) libraries [N]:
OK - I'll use the normal libs
BLK api available - found: sybblk sybblk_r sybblk_r64 sybblk64
* Writing login information, including password, to file PWD.
Checking if your kit is complete...
Looks good
Using DBI 1.628 (for perl 5.014002 on i86pc-solaris-thread-multi) installed in /opt/perl2exe-SunOS-x86-5.14.2/perl5/lib/site_perl/5.14.2/i86pc-solaris-thread-multi/auto/DBI/
Writing Makefile for DBD::Sybase
Writing MYMETA.yml
Root# make
cp dbd-sybase.pod blib/lib/DBD/dbd-sybase.pod
cp Sybase.pm blib/lib/DBD/Sybase.pm
/opt/perl2exe-SunOS-x86-5.14.2/perl5/bin/perl -p -e "s/~DRIVER~/Sybase/g" /opt/perl2exe-SunOS-x86-5.14.2/perl5/lib/site_perl/5.14.2/i86pc-solaris-thread-multi/auto/DBI/Driver.xst > Sybase.xsi
/opt/perl2exe-SunOS-x86-5.14.2/perl5/bin/perl /opt/perl2exe-SunOS-x86-5.14.2/perl5/lib/5.014002/ExtUtils/xsubpp -typemap /opt/perl2exe-SunOS-x86-5.14.2/perl5/lib/5.014002/ExtUtils/typemap Sybase.xs > Sybase.xsc && mv Sybase.xsc Sybase.c
gcc -c -I/opt/sybase/OCS-15_0/include -DNO_CHAINED_TRAN=1 -I/opt/perl2exe-SunOS-x86-5.14.2/perl5/lib/site_perl/5.14.2/i86pc-solaris-thread-multi/auto/DBI -D_REENTRANT -DNO_HASH_SEED -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" -fPIC "-I/opt/perl2exe-SunOS-x86-5.14.2/perl5/lib/5.014002/i86pc-solaris-thread-multi/CORE" Sybase.c
gcc -c -I/opt/sybase/OCS-15_0/include -DNO_CHAINED_TRAN=1 -I/opt/perl2exe-SunOS-x86-5.14.2/perl5/lib/site_perl/5.14.2/i86pc-solaris-thread-multi/auto/DBI -D_REENTRANT -DNO_HASH_SEED -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" -fPIC "-I/opt/perl2exe-SunOS-x86-5.14.2/perl5/lib/5.014002/i86pc-solaris-thread-multi/CORE" dbdimp.c
dbdimp.c: In function `syb_st_execute':
dbdimp.c:3906: warning: passing arg 2 of `ct_results' from incompatible pointer type
dbdimp.c:3930: warning: passing arg 5 of `ct_bind' from incompatible pointer type
rm -rf blib/arch/auto/DBD/Sybase/Sybase.a
/usr/ccs/bin/ar cr blib/arch/auto/DBD/Sybase/Sybase.a Sybase.o dbdimp.o && : blib/arch/auto/DBD/Sybase/Sybase.a
chmod 755 blib/arch/auto/DBD/Sybase/Sybase.a
Manifying blib/man3/DBD::Sybase.3
Root# uname -a
SunOS unknown 5.10 Generic_147441-01 i86pc i386 i86pc
Root# perl -v
This is perl 5, version 14, subversion 2 (v5.14.2) built for i86pc-solaris-thread-multi
Copyright 1987-2011, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
Root# gcc -v
Reading specs from /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6
Root#
Thanks for advance your assistance.
Cordialement / Best regards
Nicolas KERSPERN
Phone : +33 1 73 26 34 76
Cell : +33 6 45 25 91 67
ATOS INFOGERANCE - Global Factory ATS
Engineer Tooling and Automation
[Description : Description : cid:image002.jpg@01CE9E4C.9588B2B0]
[Description : Description : Description : cid:image004.png@01CEA7C2.DA7F8F90]
[cid:image003.jpg@01CEB2ED.70573600]
Show quoted text
________________________________
Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne pouvant ?tre assur?e sur Internet, la responsabilit? du groupe Atos ne pourra ?tre engag?e quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'exp?diteur ne donne aucune garantie ? cet ?gard et sa responsabilit? ne saurait ?tre engag?e pour tout dommage r?sultant d'un virus transmis.
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.
Message body is not shown because it is too large.