Quantcast
Channel: perl.dbi.users
Viewing all 225 articles
Browse latest View live

Re: /bin/sh: cc_r: not found (5 messages)

$
0
0


Hello Team ,

We are facing an issue while trying to install DBI-1.634.

Perl Version we use : v5.8.8 built for aix-thread-multi
Server Version:AIX IMCBLRDMZSR1237 1 6 00C6FD554C00

I downloaded DBI-1.634 . It had 2 dependencies which i installed
succesfullly ExUtils:MakeMaker and Test:Simple .
Now it throws error as

Running Mkbootstrap for DBI ()
chmod 644 "DBI.bs"
cc_r -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32
-D_LARGE_FILES -qlonglong -O -DVERSION=\"1.634\" -DXS_VERSION=\"1.634\"
"-I/usr/opt/perl5/lib/5.8.8/aix-thread-multi/CORE" Perl.c
/bin/sh: cc_r: not found.
make: 1254-004 The error code from the last command is 127.

I still searched for some more gcc related rpm and installed on the
system .
RPMs i installed are:
libgcc-4.2.0-3
gcc-java-4.2.0-3
gcc-4.2.0-3
gcc-locale-4.2.0-3
gcc-c++-4.2.0-3
libgcj-4.2.0-3
gcc-gij-4.2.0-3

But still i am facing the same issue .
All forums have suggested that this issue is due to missing gcc compiler .

Please do let me know how do i resolve it or steps to install cc_r /gcc
compiler.

Thanks
Abhishek=

MS access (3 messages)

$
0
0
I am trying to connect to MS access database on my PC. I am getting an
error message of failure, data source not found, (ODBC driver manager) no
default driver is mentioned . please help

ANNOUNCE: Informix Database Driver for Perl DBI Version 2015.1101(2015-11-01) released (1 message)

$
0
0
Informix Database Driver for Perl DBI Version 2015.1101 (2015-11-01) has
been uploaded to CPAN.

IBM Informix Database Driver for Perl (also known as DBD::Informix) is
the driver code that enables Perl 5.008001 or later to access Informix
databases via the DBI module (but if you are not already using Perl
5.022000 - or a later version - you should be planning to upgrade Perl).
You will to install DBI version 1.607 or later as well (version 1.634,
or any later version, is recommended) before installing DBD::Informix.
The code for DBD::Informix is available for download via:

http://www.perl.org/CPAN/modules/by-category/07_Database_Interfaces
http://dbi.perl.org/

** When you successfully build this module, use the ItWorks (Perl)
** script to report your configuration to the maintenance team (meaning
** Jonathan Leffler) at dbd.informix@gmail.com.
** The ItWorks script does not send email to anybody; you have to do
** that yourself.

New in release 2015.1101:
* Pure bug-fix release (fixing glitches in release process, and documenting
the correct process so maybe the glitches won't reoccur).

New in release 2015.1031:
* This is basically a minor bug-fix release.
* RT#108030 about mismanaging the name of the Perl binary in Makefile.PL
is fixed.
* RT#108031 is about a missing (actually, misnamed) file in the MANIFEST.

New in release 2015.0826:
* Automatically deal with Perl and DBI minimum versions since the previous
releases had a mish-mash of version numbers scattered through the code.
* Fix DBD::Informix::TechSupport module, thereby fixing the TechSupport and
ItWorks scripts too.
* Note that with effect from the first release from 2016-01-01 onwards,
DBD::Informix will no longer support any version of ClientSDK prior to
version 3.50, the oldest version currently supported by IBM. The support
code for some of the older versions of ESQL/C will be removed over time.
You're welcome to try using older versions, but if anything goes wrong,
you will need to upgrade.

New in release 2015.0825:
* Deal with changes to ExtUtils::MakeMaker that broke the build.
* Update to require Perl 5.8.1 and DBI 1.607.
* Change work email address back to jleffler@us.ibm.com

New in release 2013.0521:
* Support CSDK 4.10 for IDS 12.10
* Change work email address to jleffler@google.com

Support email address:
* This release is supported by Jonathan Leffler <dbd.informix@gmail.com>.
* You may also report your bugs via the CPAN resolution tracking system:
http://rt.cpan.org/
* Such bug reports can be sent by email to bug-DBD-Informix@rt.cpan.org;
they also get sent to dbd.informix@gmail.com, etc.

As always, see the ChangeLog file for details about what has changed.

Jonathan Leffler (jleffler@us.ibm.com, jonathan.leffler@gmail.com)

@(#)$Id: Announce,v 2015.6 2015/11/01 07:31:31 jleffler Exp $

--
Jonathan Leffler <jonathan.leffler@gmail.com> #include <disclaimer.h>
Guardian of DBD::Informix - v2015.0826 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be
amused."

error message (2 messages)

$
0
0
I did and it didn't work. for more information, the error message is the
following:
failed: [Microsoft][ODBC driver manager] data source name not found and no
default driver specified (SQL - IM002) at line..

Data sources (3 messages)

$
0
0
SQL server v6.01.7601. is installed . version of ODBC is 6.01.7601
When I click configure, it says that MS access driver is not installed.

mysql_auto_reconnect seems off after server closes connection (1 message)

$
0
0
Hi all

I am encountering a problem with DBD::mysql 4.20.0-r1, perl 5.20 and
mysql 5.5 on amd64 Linux.

The driver does not reconnect to the db once the server has closed the
session (eg. after trying to send data that exceeds max_allowed_packet).

The code (a persistant daemon application) connects to mysql at startup
like this:

my $dbh = DBI->connect($dsn,
$username,
$passwd,
{ RaiseError => 1,
AutoCommit => 1,
AutoInactiveDestroy => 1,
mysql_auto_reconnect => 1,
mysql_enable_utf8 => 1,
mysql_connect_timeout => 5,
}
);

The $dbh handle is then shared between multiple objects in the same process.
Each object prepares some statements of its own via $dbh->prepare(...)
at creation time (startup).

The code within each object class then follows this basic structure:

sub do_something
{
[...]
my $rv;
$dbh->begin_work();
eval {
# $sth was prepared at creation time
$rv = $sth->execute(...); # fails if max_allowed_packet is exceeded
$rv = 0 unless(defined $rv && $rv ne '0E0');
[...]
$dbh->commit();
};
if($@ or not $rv) {
[...]
$dbh->rollback();
}
[...]
}

Now when the mysql server closes the connection because of an error
during $sth->execute(), there are two consecutive errors:

First. the execute fails with:
DBD::mysql::st execute failed: MySQL server has gone away at ...

And then, the rollback also fails:
DBD::mysql::db rollback failed: MySQL server has gone away at ...

And after that, all subsequent attempts to use the handle immediately
fail with "MySQL server has gone away", in all objects that use the handle.

For some reason, the driver does not try to reconnect (tcpdump shows
that no packets are sent to the server).

From the docs I got the impression that it should reconnect if
AutoCommit is 1. AutoCommit is set to 0 by begin_work() and should be
set back to 1 by rollback() or commit(), as far as I understood.

But now rollback() seems to fail, and the driver never reconnects, so
could it be that AutoCommit never gets set back to 1?
Trying to set it manually after the first two errors results in
DBD driver has not implemented the AutoCommit attribute at ...

Am I doing something totally wrong here, or have I misunderstood the
documentation?

Thx for any pointers

Markus

Perl crash citing libmysql__.dll as culprit(?) (1 message)

$
0
0
Version=1
EventType=APPCRASH
EventTime=130938895829957599
ReportType=2
Consent=1
UploadTime=130938895830247616
ReportIdentifier=a2dd2066-9c2e-11e5-ba11-001a7d0abdaa
IntegratorReportIdentifier=a2dd2065-9c2e-11e5-ba11-001a7d0abdaa
Response.BucketId=104002335
Response.BucketTable=28
Response.type=4
Sig[0].Name=Application Name
Sig[0].Value=perl.exe
Sig[1].Name=Application Version
Sig[1].Value=5.18.2.1
Sig[2].Name=Application Timestamp
Sig[2].Value=52cc749d
Sig[3].Name=Fault Module Name
Sig[3].Value=libmysql__.dll
Sig[4].Name=Fault Module Version
Sig[4].Value=0.0.0.0
Sig[5].Name=Fault Module Timestamp
Sig[5].Value=4b6af33e
Sig[6].Name=Exception Code
Sig[6].Value=c0000005
Sig[7].Name=Exception Offset
Sig[7].Value=000000000002eeb0
DynamicSig[1].Name=OS Version
DynamicSig[1].Value=6.1.7601.2.1.0.256.48
DynamicSig[2].Name=Locale ID
DynamicSig[2].Value=1037
DynamicSig[22].Name=Additional Information 1
DynamicSig[22].Value=cd6a
DynamicSig[23].Name=Additional Information 2
DynamicSig[23].Value=cd6adb9befadcc4226df25fe266210e5
DynamicSig[24].Name=Additional Information 3
DynamicSig[24].Value=7f20
DynamicSig[25].Name=Additional Information 4
DynamicSig[25].Value=7f20cb3cfd821c9b61802778e12b51a6
UI[2]=C:\strawberry\perl\bin\perl.exe
UI[3]=Perl interpreter has stopped working
UI[4]=Windows can check online for a solution to the problem.
UI[5]=Check online for a solution and close the program
UI[6]=Check online for a solution later and close the program
UI[7]=Close the program
LoadedModule[0]=C:\strawberry\perl\bin\perl.exe
LoadedModule[1]=C:\Windows\SYSTEM32\ntdll.dll
LoadedModule[2]=C:\Windows\system32\kernel32.dll
LoadedModule[3]=C:\Windows\system32\KERNELBASE.dll
LoadedModule[4]=C:\strawberry\perl\bin\perl518.dll
LoadedModule[5]=C:\Windows\system32\ADVAPI32.dll
LoadedModule[6]=C:\Windows\system32\msvcrt.dll
LoadedModule[7]=C:\Windows\SYSTEM32\sechost.dll
LoadedModule[8]=C:\Windows\system32\RPCRT4.dll
LoadedModule[9]=C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18837_none_fa3b1e3d17594757\COMCTL32.dll
LoadedModule[10]=C:\Windows\system32\GDI32.dll
LoadedModule[11]=C:\Windows\system32\USER32.dll
LoadedModule[12]=C:\Windows\system32\LPK.dll
LoadedModule[13]=C:\Windows\system32\USP10.dll
LoadedModule[14]=C:\Windows\system32\SHLWAPI.dll
LoadedModule[15]=C:\Windows\system32\WS2_32.dll
LoadedModule[16]=C:\Windows\system32\NSI.dll
LoadedModule[17]=C:\strawberry\perl\bin\libgcc_s_sjlj-1.dll
LoadedModule[18]=C:\strawberry\perl\bin\libstdc++-6.dll
LoadedModule[19]=C:\Windows\system32\IMM32.DLL
LoadedModule[20]=C:\Windows\system32\MSCTF.dll
LoadedModule[21]=C:\Program Files (x86)\AVG\AVG2015\avghooka.dll
LoadedModule[22]=C:\strawberry\perl\lib\auto\Cwd\Cwd.dll
LoadedModule[23]=C:\strawberry\perl\lib\auto\Win32\Win32.dll
LoadedModule[24]=C:\Windows\system32\ole32.dll
LoadedModule[25]=C:\Windows\system32\VERSION.dll
LoadedModule[26]=C:\strawberry\perl\lib\auto\Time\HiRes\HiRes.dll
LoadedModule[27]=C:\strawberry\perl\lib\auto\Sys\Hostname\Hostname.dll
LoadedModule[28]=C:\Windows\system32\NLAapi.dll
LoadedModule[29]=C:\Windows\system32\napinsp.dll
LoadedModule[30]=C:\Windows\system32\pnrpnsp.dll
LoadedModule[31]=C:\Windows\System32\mswsock.dll
LoadedModule[32]=C:\Windows\system32\DNSAPI.dll
LoadedModule[33]=C:\Windows\System32\winrnr.dll
LoadedModule[34]=C:\Windows\system32\wshbth.dll
LoadedModule[35]=C:\strawberry\perl\vendor\lib\auto\Win32\Console\ANSI\ANSI.dll
LoadedModule[36]=C:\strawberry\perl\lib\auto\List\Util\Util.dll
LoadedModule[37]=C:\strawberry\perl\lib\auto\Fcntl\Fcntl.dll
LoadedModule[38]=C:\strawberry\perl\vendor\lib\auto\List\MoreUtils\MoreUtils.dll
LoadedModule[39]=C:\strawberry\perl\lib\auto\IO\IO.dll
LoadedModule[40]=C:\strawberry\perl\lib\auto\POSIX\POSIX.dll
LoadedModule[41]=C:\strawberry\perl\site\lib\auto\Compress\Raw\Zlib\Zlib.dll
LoadedModule[42]=C:\strawberry\perl\lib\auto\Encode\Encode.dll
LoadedModule[43]=C:\strawberry\perl\lib\auto\Data\Dumper\Dumper.dll
LoadedModule[44]=C:\strawberry\perl\site\lib\auto\Win32\Shortcut\Shortcut.dll
LoadedModule[45]=C:\Windows\system32\CRYPTBASE.dll
LoadedModule[46]=C:\Windows\system32\uxtheme.dll
LoadedModule[47]=C:\strawberry\perl\vendor\lib\auto\DBI\DBI.dll
LoadedModule[48]=C:\strawberry\perl\lib\auto\PerlIO\encoding\encoding.dll
LoadedModule[49]=C:\strawberry\perl\vendor\lib\auto\DBD\mysql\mysql.dll
LoadedModule[50]=C:\strawberry\c\bin\libmysql__.dll
LoadedModule[51]=C:\Windows\system32\WSOCK32.dll
LoadedModule[52]=C:\Windows\system32\rasadhlp.dll
LoadedModule[53]=C:\Windows\System32\wshtcpip.dll
LoadedModule[54]=C:\Windows\system32\IPHLPAPI.DLL
LoadedModule[55]=C:\Windows\system32\WINNSI.DLL
LoadedModule[56]=C:\Windows\System32\fwpuclnt.dll
State[0].Key=Transport.DoneStage1
State[0].Value=1
State[1].Key=DataRequest
State[1].Value=Bucket=104002335/nBucketTable=28/nResponse=1/n
FriendlyEventName=Stopped working
ConsentKey=APPCRASH
AppName=Perl interpreter
AppPath=C:\strawberry\perl\bin\perl.exe

Perl crashing, citing libmsql__.dll as culprit(?) (2 messages)

$
0
0
Dear DBI users,

I use Perl, DBI and DBD:mysql for years, without a problem. But working on
my latest project I encounter Perl often, but *not always(!) *crashing with
the Windows message "Perl interpreter has stopped working". As far as I can
tell the script runs to its natural end.I must add that together with this
phenomenon ("Poster hoc ergo prompter hoc...") I get, again some times but
not always, an out-of-the-blue Devel::Peek report and sometimes two or
rarely three of those. These I also don't know where did they come from.

- Platform: Win-7 Pro
- Perl: Strawberry Perl ver. 5.18.2.1.
- DBI: 1.63
- DBD::mysql 4.025

I extracted the crash report from the Windows Event log, below. If I
understand it correctly, the culprit is libmysql__.dll.
Can somebody give me directions as to how to narrow it down to the package
and line?

Thanks

==================================

Version=1
EventType=APPCRASH
EventTime=130938895829957599
ReportType=2
Consent=1
UploadTime=130938895830247616
ReportIdentifier=a2dd2066-9c2e-11e5-ba11-001a7d0abdaa
IntegratorReportIdentifier=a2dd2065-9c2e-11e5-ba11-001a7d0abdaa
Response.BucketId=104002335
Response.BucketTable=28
Response.type=4
Sig[0].Name=Application Name
Sig[0].Value=perl.exe
Sig[1].Name=Application Version
Sig[1].Value=5.18.2.1
Sig[2].Name=Application Timestamp
Sig[2].Value=52cc749d
Sig[3].Name=Fault Module Name
Sig[3].Value=libmysql__.dll
Sig[4].Name=Fault Module Version
Sig[4].Value=0.0.0.0
Sig[5].Name=Fault Module Timestamp
Sig[5].Value=4b6af33e
Sig[6].Name=Exception Code
Sig[6].Value=c0000005
Sig[7].Name=Exception Offset
Sig[7].Value=000000000002eeb0
DynamicSig[1].Name=OS Version
DynamicSig[1].Value=6.1.7601.2.1.0.256.48
DynamicSig[2].Name=Locale ID
DynamicSig[2].Value=1037
DynamicSig[22].Name=Additional Information 1
DynamicSig[22].Value=cd6a
DynamicSig[23].Name=Additional Information 2
DynamicSig[23].Value=cd6adb9befadcc4226df25fe266210e5
DynamicSig[24].Name=Additional Information 3
DynamicSig[24].Value=7f20
DynamicSig[25].Name=Additional Information 4
DynamicSig[25].Value=7f20cb3cfd821c9b61802778e12b51a6
UI[2]=C:\strawberry\perl\bin\perl.exe
UI[3]=Perl interpreter has stopped working
UI[4]=Windows can check online for a solution to the problem.
UI[5]=Check online for a solution and close the program
UI[6]=Check online for a solution later and close the program
UI[7]=Close the program
LoadedModule[0]=C:\strawberry\perl\bin\perl.exe
LoadedModule[1]=C:\Windows\SYSTEM32\ntdll.dll
LoadedModule[2]=C:\Windows\system32\kernel32.dll
LoadedModule[3]=C:\Windows\system32\KERNELBASE.dll
LoadedModule[4]=C:\strawberry\perl\bin\perl518.dll
LoadedModule[5]=C:\Windows\system32\ADVAPI32.dll
LoadedModule[6]=C:\Windows\system32\msvcrt.dll
LoadedModule[7]=C:\Windows\SYSTEM32\sechost.dll
LoadedModule[8]=C:\Windows\system32\RPCRT4.dll
LoadedModule[9]=C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18837_none_fa3b1e3d17594757\COMCTL32.dll
LoadedModule[10]=C:\Windows\system32\GDI32.dll
LoadedModule[11]=C:\Windows\system32\USER32.dll
LoadedModule[12]=C:\Windows\system32\LPK.dll
LoadedModule[13]=C:\Windows\system32\USP10.dll
LoadedModule[14]=C:\Windows\system32\SHLWAPI.dll
LoadedModule[15]=C:\Windows\system32\WS2_32.dll
LoadedModule[16]=C:\Windows\system32\NSI.dll
LoadedModule[17]=C:\strawberry\perl\bin\libgcc_s_sjlj-1.dll
LoadedModule[18]=C:\strawberry\perl\bin\libstdc++-6.dll
LoadedModule[19]=C:\Windows\system32\IMM32.DLL
LoadedModule[20]=C:\Windows\system32\MSCTF.dll
LoadedModule[21]=C:\Program Files (x86)\AVG\AVG2015\avghooka.dll
LoadedModule[22]=C:\strawberry\perl\lib\auto\Cwd\Cwd.dll
LoadedModule[23]=C:\strawberry\perl\lib\auto\Win32\Win32.dll
LoadedModule[24]=C:\Windows\system32\ole32.dll
LoadedModule[25]=C:\Windows\system32\VERSION.dll
LoadedModule[26]=C:\strawberry\perl\lib\auto\Time\HiRes\HiRes.dll
LoadedModule[27]=C:\strawberry\perl\lib\auto\Sys\Hostname\Hostname.dll
LoadedModule[28]=C:\Windows\system32\NLAapi.dll
LoadedModule[29]=C:\Windows\system32\napinsp.dll
LoadedModule[30]=C:\Windows\system32\pnrpnsp.dll
LoadedModule[31]=C:\Windows\System32\mswsock.dll
LoadedModule[32]=C:\Windows\system32\DNSAPI.dll
LoadedModule[33]=C:\Windows\System32\winrnr.dll
LoadedModule[34]=C:\Windows\system32\wshbth.dll
LoadedModule[35]=C:\strawberry\perl\vendor\lib\auto\Win32\Console\ANSI\ANSI.dll
LoadedModule[36]=C:\strawberry\perl\lib\auto\List\Util\Util.dll
LoadedModule[37]=C:\strawberry\perl\lib\auto\Fcntl\Fcntl.dll
LoadedModule[38]=C:\strawberry\perl\vendor\lib\auto\List\MoreUtils\MoreUtils.dll
LoadedModule[39]=C:\strawberry\perl\lib\auto\IO\IO.dll
LoadedModule[40]=C:\strawberry\perl\lib\auto\POSIX\POSIX.dll
LoadedModule[41]=C:\strawberry\perl\site\lib\auto\Compress\Raw\Zlib\Zlib.dll
LoadedModule[42]=C:\strawberry\perl\lib\auto\Encode\Encode.dll
LoadedModule[43]=C:\strawberry\perl\lib\auto\Data\Dumper\Dumper.dll
LoadedModule[44]=C:\strawberry\perl\site\lib\auto\Win32\Shortcut\Shortcut.dll
LoadedModule[45]=C:\Windows\system32\CRYPTBASE.dll
LoadedModule[46]=C:\Windows\system32\uxtheme.dll
LoadedModule[47]=C:\strawberry\perl\vendor\lib\auto\DBI\DBI.dll
LoadedModule[48]=C:\strawberry\perl\lib\auto\PerlIO\encoding\encoding.dll
LoadedModule[49]=C:\strawberry\perl\vendor\lib\auto\DBD\mysql\mysql.dll
LoadedModule[50]=C:\strawberry\c\bin\libmysql__.dll
LoadedModule[51]=C:\Windows\system32\WSOCK32.dll
LoadedModule[52]=C:\Windows\system32\rasadhlp.dll
LoadedModule[53]=C:\Windows\System32\wshtcpip.dll
LoadedModule[54]=C:\Windows\system32\IPHLPAPI.DLL
LoadedModule[55]=C:\Windows\system32\WINNSI.DLL
LoadedModule[56]=C:\Windows\System32\fwpuclnt.dll
State[0].Key=Transport.DoneStage1
State[0].Value=1
State[1].Key=DataRequest
State[1].Value=Bucket=104002335/nBucketTable=28/nResponse=1/n
FriendlyEventName=Stopped working
ConsentKey=APPCRASH
AppName=Perl interpreter
AppPath=C:\strawberry\perl\bin\perl.exe

New test release DBD::mysql 4.033_01 available - ssl by default? (1 message)

$
0
0
Dear Perl and MySQL community,

We're pleased to announce the release of DBD::mysql 4.033_01. This is
not a 'stable' release but merely for testing and feedback. We'll put
out a stable 4.034 release soon; probably before christmas.


** Linking against SSL by default? **
Apart from that, I'd like to announce that we might want to link to
SSL by default. MySQL 5.7 makes SSL connections to databases more
common; right now in DBD::mysql you'd need to pass an option to
Makefile.PL (-ssl) in order to enable linking to libssl. Of course,
many people (and linux distributions!) don't do this by default. On
the expense of the added dependency to libssl we'd want to default to
compiling against libssl. We'd introduce a --no-ssl flag for the cases
where you'd explicitly NOT want to link to SSL. When DBD::mysql is
compiled against libssl you can still make connections to not-sslified
servers.

Any feedback (+1's, remarks or objections) would be appreciated!


** Changelog for this development release **

2015-12-15 Patrick Galbraith, Michiel Beijen, DBI/DBD community (4.033_01)
* Raise minimum DBI version to 1.609 (from 2009!) in order to make
tests pass on RHEL5.
* Add explicit documentation for how to enable SSL at build time,
provided by genio.
* Improve test suite to make it more robust using mixed versions of client and
server.
* Fix use after free error in my_login, provided by hannob.
* Add explicit instructions stating brackets are required around ipv6-addresses
in connection strings, provided by Kenny Gryp.

https://metacpan.org/release/MICHIELB/DBD-mysql-4.033_01
https://github.com/perl5-dbi/DBD-mysql

Regards,

Patrick and Michiel

Fwd: Need support for Perl::DBD::mysql (5 messages)

$
0
0
PROBLEM:
I have perl-DBD-MySQL-4.013-release-3.el6 and Perl 5.10.1 and while I have
a user account which can connect to the database at the command prompt, I
cannot get the same user (or any user) to connect from within my Perl
script. Actually, I succeeded with one connection one time (from within
Perl script) on 20-Dec-2015 (Sun Dec 20 22:35:53 CST 2015).

Regards, Donna d-cote@tamu.edu


​INFO:​
Name : perl-DBD-MySQL
Arch : x86_64
Version : 4.013
Release : 3.el6
Size : 338 k
Repo : installed
From repo : centos-base

[d-cote@earthdata Perl]$ perl -V
Summary of my perl5 (revision 5 version 10 subversion 1) configuration:

Platform:
osname=linux, osvers=2.6.32-220.el6.x86_64,
archname=x86_64-linux-thread-multi
uname='linux c6b8.bsys.dev.centos.org 2.6.32-220.el6.x86_64 #1 smp tue
dec 6 19:48:22 gmt 2011 x86_64 x86_64 x86_64 gnulinux '
config_args='-des -Doptimize=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic -DDEBUGGING=-g -Dversion=5.10.1 -Dmyhostname=localhost
-Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dprefix=/usr
-Dvendorprefix=/usr -Dsiteprefix=/usr/local
-Dsitelib=/usr/local/share/perl5 -Dsitearch=/usr/local/lib64/perl5
-Dprivlib=/usr/share/perl5 -Darchlib=/usr/lib64/perl5
-Dvendorlib=/usr/share/perl5/vendor_perl
-Dvendorarch=/usr/lib64/perl5/vendor_perl -Dinc_version_list=5.10.0
-Darchname=x86_64-linux-thread-multi -Dlibpth=/usr/local/lib64 /lib64
/usr/lib64 -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles
-Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog
-Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005
-Uversiononly -Dpager=/usr/bin/less -isr -Dd_gethostent_r_proto
-Ud_endhostent_r_proto -Ud_sethostent_r_proto -Ud_endprotoent_r_proto
-Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_setservent_r_proto
-Dscriptdir=/usr/bin -Dusesitecustomize'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
-pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
optimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic',
cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.4.7 20120313 (Red Hat 4.4.7-4)',
gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -fstack-protector'
libpth=/usr/local/lib64 /lib64 /usr/lib64
libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.12'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-rpath,/usr/lib64/perl5/CORE'
cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic'


Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
USE_64_BIT_ALL
USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
USE_PERLIO USE_REENTRANT_API USE_SITECUSTOMIZE
Built under linux
Compiled at Nov 22 2013 18:29:21
@INC:
/usr/local/lib64/perl5
/usr/local/share/perl5
/usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl
/usr/lib64/perl5
/usr/share/perl5

SCRIPT .
[d-cote@earthdata Perl]$ cat gather-details-n-do-db-inserts.pl
#!/usr/bin/perl -w
# ~d-cote/Perl/gather-details-n-do-db-inserts.pl
#
# ./gather-details-n-do-db-inserts.pl ldm1-log-sample.log 2>
/tmp/test-pl-errors.log
#
# will want to read text file without any order, then
# build an SQL insert statement for each input line
#
use DBI;
use strict;
use warnings;
use Time::Local;
use DateTime::Format::Strptime;
<snip>
my $configinfofn = "/opt/ldmsurvey/scripts/.config";
open($setupfh, "< $encoding", $configinfofn) || die("can't open
datafile (named $configinfofn): $!");
my $myline = readline($setupfh); ### reading one line from
config file
($database, $userid, $password) = split(',',$myline,3);
close($setupfh);
#$ cat /opt/ldmsurvey/scripts/.config
print " debug 58: post gather-db-config-routine, database=$database,
userid=$userid \n";

my $driver = "mysql";
my $dsn = "dbi:$driver:$database";

my $dbh;
print " debug 65 pre attempt db connection with $dsn $userid $password
\n";
$dbh = DBI->connect($dsn, $userid, $password) or die $DBI::errstr;
my $sth = $dbh->prepare("select id, hostname, ipaddr from hosts ");
$sth->execute() or die $DBI::errstr;
print "Number of rows found :" . $sth->rows . "\n";
#my @datarows = $sth->fetchrow_array();
while (my @row = $sth->fetchrow_array()) {
my ($hostid, $hostname, $hostip ) = @row;
print "host id = $hostid, host name = $hostname, host ip = $hostip \n";
}
$sth->finish();
print " debug 76: post attempt at dbconnection, database=$database,
userid=$userid \n";
<snip>
my $rc = DBI->disconnect or warn $dbh->errstr;

DBI 1.52 make test failures (7 messages)

$
0
0
Hello greate community!

This is my first message into this list :-), I hope I could get some help
about this tricky issue.

I'm trying to install manually Perl DBI 1.52 on a el6 server. I'm doing
this manually because it comes with DBI 1.6x by default, and this version
is not the needed one.

So, when I do it manually it fails on make test.

Makefile seems to be done ok.

[root@el65 DBI-1.52]# perl Makefile.PL


*** You are using a perl configured with threading enabled.
*** You should be aware that using multiple threads is
*** not recommended for production environments.

*** Note:
The optional PlRPC-modules (RPC::PlServer etc) are not installed.
If you want to use the DBD::Proxy driver and DBI::ProxyServer
modules, then you'll need to install the RPC::PlServer, RPC::PlClient,
Storable and Net::Daemon modules. The CPAN Bundle::DBI may help you.
You can install them any time after installing the DBI.
You do *not* need these modules for typical DBI usage.

Optional modules are available from any CPAN mirror, in particular
http://search.cpan.org/
http://www.perl.com/CPAN/modules/by-module
http://www.perl.org/CPAN/modules/by-module
ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module

Your perl was compiled with gcc (version 4.4.7 20120313 (Red Hat 4.4.7-3)),
okay.
Creating DBI::PurePerl test variant: t/zvpp_01basics.t
Creating DBI::PurePerl test variant: t/zvpp_02dbidrv.t
Creating DBI::PurePerl test variant: t/zvpp_03handle.t
Creating DBI::PurePerl test variant: t/zvpp_04mods.t
Creating DBI::PurePerl test variant: t/zvpp_05thrclone.t (use threads)
Creating DBI::PurePerl test variant: t/zvpp_06attrs.t
Creating DBI::PurePerl test variant: t/zvpp_07kids.t
Creating DBI::PurePerl test variant: t/zvpp_08keeperr.t
Creating DBI::PurePerl test variant: t/zvpp_09trace.t
Creating DBI::PurePerl test variant: t/zvpp_10examp.t
Creating DBI::PurePerl test variant: t/zvpp_11fetch.t
Creating DBI::PurePerl test variant: t/zvpp_14utf8.t
Creating DBI::PurePerl test variant: t/zvpp_15array.t
Creating DBI::PurePerl test variant: t/zvpp_20meta.t
Creating DBI::PurePerl test variant: t/zvpp_30subclass.t
Creating DBI::PurePerl test variant: t/zvpp_40profile.t
Creating DBI::PurePerl test variant: t/zvpp_41prof_dump.t
Creating DBI::PurePerl test variant: t/zvpp_42prof_data.t
Creating DBI::PurePerl test variant: t/zvpp_43prof_env.t
Creating DBI::PurePerl test variant: t/zvpp_50dbm.t
Creating DBI::PurePerl test variant: t/zvpp_60preparse.t
Creating DBI::PurePerl test variant: t/zvpp_70callbacks.t
Creating DBI::PurePerl test variant: t/zvpp_72childhandles.t
Creating DBI::PurePerl test variant: t/zvpp_80proxy.t
Checking if your kit is complete...
Looks good

I see you're using perl 5.010001 on x86_64-linux-thread-multi, okay.
Remember to actually *read* the README file!
Use 'make' to build the software (dmake or nmake on Windows).
Then 'make test' to execute self tests.
Then 'make install' to install the DBI and then delete this working
directory before unpacking and building any DBD::* drivers.

Writing Makefile for DBI



Make seems also good (I guess)

[root@el65 DBI-1.52]# make
/usr/bin/perl -MExtUtils::Command -e 'mkpath' -- blib/lib/DBI
rm -f blib/lib/DBI/Changes.pm
cp Changes blib/lib/DBI/Changes.pm
/usr/bin/perl -MExtUtils::Command -e 'mkpath' -- blib/lib/DBI
rm -f blib/lib/DBI/Roadmap.pm
cp Roadmap.pod blib/lib/DBI/Roadmap.pm
cp Driver_xst.h blib/arch/auto/DBI/Driver_xst.h
cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm
cp lib/DBD/DBM.pm blib/lib/DBD/DBM.pm
cp DBIXS.h blib/arch/auto/DBI/DBIXS.h
cp lib/DBI/Const/GetInfoType.pm blib/lib/DBI/Const/GetInfoType.pm
cp Roadmap.pod blib/lib/Roadmap.pod
cp lib/DBI/DBD/Metadata.pm blib/lib/DBI/DBD/Metadata.pm
cp lib/DBI/Const/GetInfo/ODBC.pm blib/lib/DBI/Const/GetInfo/ODBC.pm
cp lib/DBI/ProfileDumper/Apache.pm blib/lib/DBI/ProfileDumper/Apache.pm
cp Driver.xst blib/arch/auto/DBI/Driver.xst
cp lib/DBD/File.pm blib/lib/DBD/File.pm
cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm
cp lib/DBI/ProfileSubs.pm blib/lib/DBI/ProfileSubs.pm
cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h
cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h
cp dbivport.h blib/arch/auto/DBI/dbivport.h
cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.pm
cp lib/DBI/SQL/Nano.pm blib/lib/DBI/SQL/Nano.pm
cp lib/DBI/Const/GetInfo/ANSI.pm blib/lib/DBI/Const/GetInfo/ANSI.pm
cp DBI.pm blib/lib/DBI.pm
cp lib/DBI/Const/GetInfoReturn.pm blib/lib/DBI/Const/GetInfoReturn.pm
cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm
cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm
cp lib/DBI/Profile.pm blib/lib/DBI/Profile.pm
cp lib/DBI/ProfileDumper.pm blib/lib/DBI/ProfileDumper.pm
cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm
cp dbipport.h blib/arch/auto/DBI/dbipport.h
cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm
cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm
cp lib/DBI/PurePerl.pm blib/lib/DBI/PurePerl.pm
cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
cp lib/DBI/ProfileData.pm blib/lib/DBI/ProfileData.pm
/usr/bin/perl -p -e "s/~DRIVER~/Perl/g" ./Driver.xst > Perl.xsi
/usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp -typemap
/usr/share/perl5/ExtUtils/typemap -typemap typemap Perl.xs > Perl.xsc &&
mv Perl.xsc Perl.c
gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic -DVERSION=\"1.52\" -DXS_VERSION=\"1.52\" -fPIC
"-I/usr/lib64/perl5/CORE" -W -Wall -Wpointer-arith -Wbad-function-cast
-Wno-comment -Wno-sign-compare -Wno-cast-qual -Wmissing-noreturn
-Wno-unused-parameter Perl.c
/usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp -typemap
/usr/share/perl5/ExtUtils/typemap -typemap typemap DBI.xs > DBI.xsc && mv
DBI.xsc DBI.c
gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic -DVERSION=\"1.52\" -DXS_VERSION=\"1.52\" -fPIC
"-I/usr/lib64/perl5/CORE" -W -Wall -Wpointer-arith -Wbad-function-cast
-Wno-comment -Wno-sign-compare -Wno-cast-qual -Wmissing-noreturn
-Wno-unused-parameter DBI.c
DBI.xs: In function ‘neatsvpv’:
DBI.xs:351: warning: return discards qualifiers from pointer target type
DBI.xs: In function ‘set_trace’:
DBI.xs:704: warning: format ‘%lx’ expects type ‘long unsigned int’, but
argument 6 has type ‘int’
DBI.xs:704: warning: format ‘%ld’ expects type ‘long int’, but argument 7
has type ‘unsigned int’
DBI.xs: In function ‘dbih_setup_handle’:
DBI.xs:1112: warning: value computed is not used
DBI.xs:1113: warning: value computed is not used
DBI.xs:1118: warning: value computed is not used
DBI.xs:1121: warning: value computed is not used
DBI.xs: In function ‘dbih_clearcom’:
DBI.xs:1268: warning: format ‘%x’ expects type ‘unsigned int’, but argument
2 has type ‘struct HV *’
DBI.xs:1268: warning: format ‘%d’ expects type ‘int’, but argument 3 has
type ‘IV’
DBI.xs:1275: warning: format ‘%x’ expects type ‘unsigned int’, but argument
2 has type ‘struct HV *’
DBI.xs:1281: warning: format ‘%x’ expects type ‘unsigned int’, but argument
2 has type ‘struct HV *’
DBI.xs:1287: warning: format ‘%x’ expects type ‘unsigned int’, but argument
2 has type ‘struct HV *’
DBI.xs: In function ‘dbih_set_attr_k’:
DBI.xs:1704: warning: value computed is not used
DBI.xs: In function ‘dbih_get_attr_k’:
DBI.xs:1796: warning: value computed is not used
DBI.xs:2024: warning: value computed is not used
DBI.xs: In function ‘dbih_find_attr’:
DBI.xs:2053: warning: value computed is not used
DBI.xs: In function ‘XS_DBI_dispatch’:
DBI.xs:2798: warning: value computed is not used
DBI.xs:2873: warning: value computed is not used
DBI.xs: In function ‘XS_DBI__install_method’:
DBI.xs:3879: warning: format ‘%d’ expects type ‘int’, but argument 3 has
type ‘IV’
DBI.xs:3880: warning: format ‘%d’ expects type ‘int’, but argument 3 has
type ‘IV’
DBI.xs: In function ‘XS_DBD_____st_fetchrow_hashref’:
DBI.xs:4358: warning: value computed is not used
DBI.c: At top level:
DBI.xs:2036: warning: ‘dbih_find_attr’ defined but not used
Running Mkbootstrap for DBI ()
chmod 644 DBI.bs
rm -f blib/arch/auto/DBI/DBI.so
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic DBI.o -o
blib/arch/auto/DBI/DBI.so \
\

chmod 755 blib/arch/auto/DBI/DBI.so
cp DBI.bs blib/arch/auto/DBI/DBI.bs
chmod 644 blib/arch/auto/DBI/DBI.bs
/usr/bin/perl "-Iblib/arch" "-Iblib/lib" dbiprof.PL dbiprof
Extracted dbiprof from dbiprof.PL with variable substitutions.
cp dbiprof blib/script/dbiprof
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/dbiprof
/usr/bin/perl "-Iblib/arch" "-Iblib/lib" dbiproxy.PL dbiproxy
Extracted dbiproxy from dbiproxy.PL with variable substitutions.
cp dbiproxy blib/script/dbiproxy
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/dbiproxy
Manifying blib/man1/dbiprof.1
Manifying blib/man1/dbiproxy.1
Manifying blib/man3/DBI::FAQ.3pm
Manifying blib/man3/DBD::Proxy.3pm
Manifying blib/man3/DBI::SQL::Nano.3pm
Manifying blib/man3/DBI::Const::GetInfo::ANSI.3pm
Manifying blib/man3/DBD::DBM.3pm
Manifying blib/man3/DBI::Const::GetInfoReturn.3pm
Manifying blib/man3/DBI.3pm
Manifying blib/man3/DBD::Sponge.3pm
Manifying blib/man3/DBI::Const::GetInfoType.3pm
Manifying blib/man3/Roadmap.3pm
Manifying blib/man3/DBI::DBD::Metadata.3pm
Manifying blib/man3/DBI::W32ODBC.3pm
Manifying blib/man3/DBI::Const::GetInfo::ODBC.3pm
Manifying blib/man3/DBI::ProfileDumper::Apache.3pm
Manifying blib/man3/Bundle::DBI.3pm
Manifying blib/man3/DBI::Profile.3pm
Manifying blib/man3/DBD::File.3pm
Manifying blib/man3/DBI::ProfileDumper.3pm
Manifying blib/man3/DBI::ProxyServer.3pm
Manifying blib/man3/DBI::ProfileSubs.3pm
Manifying blib/man3/DBI::DBD.3pm
Manifying blib/man3/Win32::DBIODBC.3pm
Manifying blib/man3/DBI::PurePerl.3pm
Manifying blib/man3/DBI::ProfileData.3pm



This what I see it is failing.

[root@el65 DBI-1.52]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01basics.t ............. ok
t/02dbidrv.t ............. ok
t/03handle.t ............. ok
t/04mods.t ............... ok
t/05thrclone.t ........... 1/? # Looks like you planned 43 tests but ran 44.
t/05thrclone.t ........... Dubious, test returned 255 (wstat 65280, 0xff00)
All 43 subtests passed
t/06attrs.t .............. ok
t/07kids.t ............... ok
t/08keeperr.t ............ ok
t/09trace.t .............. ok
t/10examp.t .............. 1/263 Can't DBI::st=HASH(0x27ba750)->bind_col(1,
SCALAR(0x26dd958),...), need a reference to a scalar at blib/lib/DBI.pm
line 1831.
# Looks like you planned 263 tests but ran 79.
# Looks like your test exited with 2 just after 79.
t/10examp.t .............. Dubious, test returned 2 (wstat 512, 0x200)
Failed 184/263 subtests
t/11fetch.t .............. ok
t/14utf8.t ............... ok
t/15array.t .............. ok
t/20meta.t ............... ok
t/30subclass.t ........... ok
t/40profile.t ............ ok
t/41prof_dump.t .......... ok
t/42prof_data.t .......... ok
t/43prof_env.t ........... ok
t/50dbm.t ................ ok
t/60preparse.t ........... ok
t/70callbacks.t .......... ok
t/72childhandles.t ....... ok
t/80proxy.t .............. skipped: modules required for proxy are probably
not installed (e.g., RPC/PlClient.pm)
t/pod.t .................. skipped: Test::Pod 1.00 required for testing POD
t/zvpp_01basics.t ........ ok
t/zvpp_02dbidrv.t ........ ok
t/zvpp_03handle.t ........ ok
t/zvpp_04mods.t .......... ok
t/zvpp_05thrclone.t ...... 1/? # Looks like you planned 43 tests but ran 44.
t/zvpp_05thrclone.t ...... Dubious, test returned 255 (wstat 65280, 0xff00)
All 43 subtests passed
t/zvpp_06attrs.t ......... ok
t/zvpp_07kids.t .......... skipped: $h->{Kids} attribute not supported for
DBI::PurePerl
t/zvpp_08keeperr.t ....... ok
t/zvpp_09trace.t ......... ok
t/zvpp_10examp.t ......... ok
t/zvpp_11fetch.t ......... ok
t/zvpp_14utf8.t .......... ok
t/zvpp_15array.t ......... ok
t/zvpp_20meta.t .......... ok
t/zvpp_30subclass.t ...... ok
t/zvpp_40profile.t ....... skipped: profiling not supported for
DBI::PurePerl
t/zvpp_41prof_dump.t ..... skipped: profiling not supported for
DBI::PurePerl
t/zvpp_42prof_data.t ..... skipped: profiling not supported for
DBI::PurePerl
t/zvpp_43prof_env.t ...... skipped: profiling not supported for
DBI::PurePerl
t/zvpp_50dbm.t ........... ok
t/zvpp_60preparse.t ...... skipped: preparse not supported for DBI::PurePerl
t/zvpp_70callbacks.t ..... skipped: $h->{Callbacks} attribute not supported
for DBI::PurePerl
t/zvpp_72childhandles.t .. ok
t/zvpp_80proxy.t ......... skipped: modules required for proxy are probably
not installed (e.g., RPC/PlClient.pm)

Test Summary Report
-------------------
t/05thrclone.t (Wstat: 65280 Tests: 44 Failed: 1)
Failed test: 44
Non-zero exit status: 255
Parse errors: Plan (1..43) must be at the beginning or end of the TAP
output
Bad plan. You planned 43 tests but ran 44.
t/10examp.t (Wstat: 512 Tests: 79 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 263 tests but ran 79.
t/zvpp_05thrclone.t (Wstat: 65280 Tests: 44 Failed: 1)
Failed test: 44
Non-zero exit status: 255
Parse errors: Plan (1..43) must be at the beginning or end of the TAP
output
Bad plan. You planned 43 tests but ran 44.
Files=49, Tests=2138, 3 wallclock secs ( 0.41 usr 0.20 sys + 1.70 cusr
0.81 csys = 3.12 CPU)
Result: FAIL
Failed 3/49 test programs. 2/2138 subtests failed.
make: *** [test_dynamic] Error 255


As far as I can see, this is not good. Or I could ignore it and install it
with make install ?

I suspect is due to Perl 5.10.1, which comes with el6. On el5, where DBI
1.52 can be installed, Perl 5.8.8 is the default version.

Please any idea or help? I would appreciate, so, so much! :-)



Cheers.


Erick.

---

IRC : zerick
Blog : http://zerick.me
About : http://about.me/zerick
Linux User ID : 549567

Re: Issue with build/test of DBD::Informix - implicit functiondeclaration: MIN (1 message)

$
0
0
Hi David,

This looks to be a genuine oversight on my part, which has until recently
been patched up accidentally by the definition of a macro MIN() in
/usr/include/sys/param.h (on Mac OS X 10.10.5 and RHEL 5, for example) — a
file which is included indirectly from one or more of the system headers —
and presumably MIN is no longer being patched by that file on your system
(either because the header isn't included, or because MIN is no longer
defined in the header). There's a definition of MIN in decfix.c, but
that's no direct help.

In the short term, please add a line:

#define MIN(a, b) (((a) < (b))?(a):(b))

near the top of dbdimp.ec — that should allow you to proceed. I will in
due course make a new release with that oversight fixed.




On Mon, Jan 25, 2016 at 4:34 PM, David Zepp <david.zepp@gmail.com> wrote:

> Hello,
>
>
>
> On compile of dbdimp.ec I get this message. -
>
> "dbdimp.ec", line 285: warning: implicit function declaration: MIN
>
>
>
> Then most all tests fail with following message. -
>
> install_driver(Informix) failed: Can't load
> '/home/dzepp/.cpan/build/DBD-Informix-2015.1101-RpDmke/blib/arch/auto/DBD/Informix/Informix.so'
> for module DBD::Informix:
>
> ld.so.1: perl: fatal: relocation error: file
> /home/dzepp/.cpan/build/DBD-Informix-2015.1101-RpDmke/blib/arch/auto/DBD/Informix/Informix.so:
> symbol MIN:
>
> referenced symbol not found at
> /usr/perl5/5.22.1/lib/5.22.1/i86pc-solaris/DynaLoader.pm line 193. at (eval
> 5) line 3.
>
> Compilation failed in require at (eval 5) line 3.
>
> Perhaps a required shared library or dll isn't installed where expected
>
>
>
>
>
> By adding a definition for MIN in dbdimp.ec (I used the define from
> decfix.c) I can get it to compile and test successfully.
>
>
>
> Just wanted some validation that this is an OK work-around.
>
>
> Also, any ideas as to why my environment won’t compile it cleanly while
> others do? Compiling with Solaris Studio 12.3.
>
>
>
> Bug report attached. Please let me know if I can submit any other info.
>
>
>
> Thanks,
>
>
>
> Dave
>



--
Jonathan Leffler <jonathan.leffler@gmail.com> #include <disclaimer.h>
Guardian of DBD::Informix - v2015.1101 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be
amused."

Re: Extra nulls inserted with binary data (DBD::ODBC on Win7) (4 messages)

$
0
0
I have the problem whether I use the default DBD::ODBC from Strawberry Perl,
or one built specifically with Unicode disabled.

DBI::db=HASH(0x25f2608) trace level set to 0x6000100/2 (DBI @
0x0/0) in DBI1.634-ithread (pid 1844)
-> prepare for DBD::ODBC::db (DBI::db=HASH(0x25f26e0)~0x25f2608
'Update Room
Set FloorUValue=? WHERE Number=?') thr#679fb8
SQLPrepare Update Room Set FloorUValue=? WHERE Number=?
Processing sql in non-unicode mode for SQLPrepare
<- prepare= ( DBI::st=HASH(0x25f6678) ) [1 items] at db_ODBC.pl line 89
-> execute for DBD::ODBC::st (DBI::st=HASH(0x25f6678)~0x25f3058
'..... ............α@..PA..(B..pB' 1) thr#679fb8
<- execute= ( 1 ) [1 items] at db_ODBC.pl line 90
-> DESTROY for DBD::ODBC::st (DBI::st=HASH(0x25f3058)~INNER) thr#679fb8
<- DESTROY= ( undef ) [1 items] at db_ODBC.pl line 69
3000000040021000400000000000000000000e04000005140000822400000724! ->
DESTROY for DBD::ODBC::db (DBI::db=HASH(0x25f2608)~INNER)
thr#679fb8SQLDisconnect=0
! <- DESTROY= ( undef ) [1 items] during global destruction

--
Jerrad Pierce, Research Assistant 2, NMR Group
617-284-6230x21

Fwd: Re: Extra nulls inserted with binary data (DBD::ODBC on Win7) (1 message)

Re: Help with DBD::Oracle install (1 message)

$
0
0
Hi. I don't provide support for DBD::Oracle directly. Please email
dbi-users@perl.org or, if you'd rather not just yet, then something here
will probably help:
https://www.google.com/search?q=dbd-oracle+/usr/ucb/cc:++language+optional+software+package+not+installed

Tim.

On Fri, Feb 05, 2016 at 05:40:52PM +0000, Linn, Steven D CTR (US) wrote:
> Hi Tim,
>
> I have hit a wall as far as trying to get this module to install, so I was
> wondering if you might know where I go from here...I am on a Solaris 10
> server running Oracle 10.2.0. When I run 'make', I get the following
> error...Any help would be greatly appreciated!
>
>
> [root: </.cpan/build/DBD-Oracle-1.74>]
> rsol0018# ls
> CONTRIBUTING.mkd Makefile.PL blib oci.def
> CONTRIBUTORS Oracle.c dbdimp.c oci8.c
> Changes Oracle.h dbdimp.h ocitrace.h
> INSTALL Oracle.xs dbivport.h pm_to_blib
> LICENSE Oracle.xsi examples t
> MANIFEST README hints typemap
> META.json README.help.txt lib
> META.yml README.mkdn mk.pm
> Makefile Todo mkta.pl
> [root: </.cpan/build/DBD-Oracle-1.74>]
> redslsa0sol0018# make
> cc -c -I/opt/oracle/product/10.2.0/client_1/rdbms/public
> -I/opt/oracle/product/10.2.0/client_1/rdbms/demo
> -I/opt/oracle/product/10.2.0/client_1/rdbms/public
> -I/opt/oracle/product/10.2.0/client_1/plsql/public
> -I/opt/oracle/product/10.2.0/client_1/network/public
> -I/usr/perl5/vendor_perl/5.8.4/i86pc-solaris-64int/auto/DBI
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO
> -DPERL_USE_SAFE_PUTENV -xO3 -xspace -xildoff -DVERSION=\"1.74\"
> -DXS_VERSION=\"1.74\" -KPIC
> "-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE" -DUTF8_SUPPORT
> -DORA_OCI_VERSION=\"10.2.0.5\" -DORA_OCI_102 Oracle.c
> /usr/ucb/cc: language optional software package not installed
> *** Error code 1
> make: Fatal error: Command failed for target `Oracle.o'
>
> Steve Linn
> Data Center, SA
> Brockwell Technology, Inc
> Team IBM (Contractor)
> Steven.D.Linn.ctr@mail.mil
> 256-313-0363
> DSN:897



Re: May CPAN Pull request chalenge (1 message)

$
0
0
On Fri, May 01, 2015 at 06:34:58PM +0200, jluis@escomposlinux.org wrote:
> Hi Tim,

Hi!

> I have got as a May a assignment your module DBI.

Congratulations :)

> In Neil's message he sugested 3 areas for the pull request:
> """
> Notes on your distribution:
>
> * It has a file 'test.pl' in the top directory.
> The modern convention is for all tests to live in a 't/' directory.

test.pl is more of a manual testing tool - you'll see it has a bunch of
options for command line use. It could simply be renamed to tester.pl :)

> * The distribution has CPAN Testers failures, so you could look at those:
> http://www.cpantesters.org/distro/D/DBI.html

I find http://matrix.cpantesters.org/?dist=DBI+1.633 easier to read.
Most of the failures are for obscure systems like mirbsd and dragonfly
that, I'd guess, you don't have access to. So those would be tricky.
If you have access to Windows then investigating those failures might be
useful.

> * The distribution has CPANTS warnings - check out its page for details:
> http://cpants.cpanauthors.org/dist/DBI

Addressing the 'use strict' and 'use warnings' metrics seems reasonable
at first sight. (I'm less keen on 'consistent version' though.)
Adding a LICENSE file would also be good.

> I would like to take the first suggestion first but do you like me to look
> on other issues?

Feel free to scan the issues in RT and see if any appeal.

> Must I test the changes in all perl releases since 5.008 or using the ones
> available on perlbrew will be enough?

perlbrew versions are fine.

> Thanks for your time

Thank you! Feel free to email or ping me or others on IRC.

Good luck!

Tim.

--
Enviado desde mi teléfono con K-9 Mail.

suppress quoting in prepared sql (13 messages)

$
0
0
I'm generating a sql statement like this:

sth = $mysql_dbh->prepare(
"select sum(column) as columnSum from table where value in ( ? ) and row_date between cast( ? as date) and cast( ? as date) ");

sth->execute( $ValueIDs ,$week_start_date,$week_end_date);

$ValueIDs is a series of unquoted values:

01161,01162,01262,01147,01034,01125,01125,01017,01125,01278,01204,01164

When observed at the mysql server, the sql appears as follows:

select sum(column) as columnSum where value in ( '01161,01162,01262,01147,01034,01125,01125,01017,01125,01278,01204,01164' ) and row_date between cast( '2016-03-29' as date) and
cast( '2016-04-05' as date)

resulting in no data being returned.

When the sql is manually entered as follows:

select sum(column) as columnSum where value in ( 01161,01162,01262,01147,01034,01125,01125,01017,01125,01278,01204,01164 ) and row_date between cast( '2016-03-29' as date) and
cast( '2016-04-05' as date)

The correct values are returned.

How can I suppress the quoting for the IN clause?


Re: DBI Utility Functions - more documentation? (2 messages)

$
0
0
Hello John.

The DBI::hash function simply returns an integer that hash been derived
from a string by some maths. See https://en.wikipedia.org/wiki/Hash_function

That kind of 'hash' is (mostly) unrelated to a Perl hash like my %foo;
also known as an associative array.

I've CC'd this to the dbi-users mailing list. If you reply with more
details about what you're trying to achieve then I'm sure you'll get
some useful replies.

Meanwhile I'll clarify the docs of the DBI::hash function. Thanks.

Tim.

On Fri, Apr 15, 2016 at 06:45:19PM +0000, John Martel wrote:
> Tim,
>
> While reading through your DBI documentation in CPAN, I came across `DBI::hash' under the `DBI Utility
> Functions' header and
>
> was intrigued about how to `store hash values in a database'. The example and verbiage is very sparse
> here, so I was wondering if
>
> there was any other documentation. I just want to know how a hash can be stored in a database using
> DBI. I have your eBook version of
>
> `Programming the Perl DBI', but I didn't find anything when I searched for `DBI::hash'.
>
>
>
> John Martel | Programmer / Analyst, Data Services | KBM Group | Part of the Wunderman Network
> (Tel) 303 228 5051 | (Fax) 303 926 1367 | (Mob) 720 473 9000 | kbmg.com
> 2051 Dogwood Street, Suite 220 | Louisville, CO 80027
> [1]John.Martel@kbmg.com
>
>
>
> [2]cid:image001.png@01D11719.76FB7FB0[3]cid:image003.png@01D04A97.81E303C0
>
> This email - including attachments - may contain confidential information. If you are not the intended
> recipient, do not copy, distribute or act on it. Instead, notify the sender immediately and delete the
> message.
>
>
>
>
>
> --------------------------------------------------------------------------------------------------------
>
> This email - including attachments - may contain confidential information. If you are not the intended
> recipient, do not copy, distribute or act on it. Instead, notify the sender immediately and delete the
> message.
>
> --------------------------------------------------------------------------------------------------------
>
> References
>
> Visible links
> 1. mailto:Aundra.Thompson@kbmg.com



help to connect (6 messages)

$
0
0
Hi,

I've been trying many differents things with the following error, but nothing seems to be working.


Let me start to explain my problem from the beginning.

(Perl version: v5.10.)

I use a configuration file that I parse using Config::General::ParseConfig. This file is encoded in UTF8 as shown below:

$ file config/application.conf
config/application.conf: UTF-8 Unicode English text


In this configuration file, there is a field called 'target_db_list_default_password' which contains a default password to be used for my monitoring.
This password is then used in conjunction with DBI->connect() method primarily to contact an Oracle Database instance.

I always get the following message at execution:

Perl Error message: DBI connect('MY_DB','halfonz',...) failed:
ORA-01017: invalid username/password;
logon denied (DBD ERROR: OCISessionBegin) at /home/jeff.elias/Projects/DBA_SOURCES/branches/develop-next/Templates/Projet Perl simple/src/libs/Common/DbConnection.pm line 210


The password cannot be changed that easily. I've printed out the password I get back and copy-pasted it into a SQL Developer new connection dialog then tried to connect and it worked.
So, my conclusion is that the password can be considered as the OK.

The password (which is normally the good one) contains several special and accented characters as follows: _é+#à.

To try to avoid to disturb you for nothing, I've also tried on a server with perl 5.8.8 installed but it didn't work neither.

Just to test, I've changed the username and password without accented characters and it worked.

Do you have any idea on what I can do (except changing the password) ?



Best Regards,





Jefferson ELIAS








Service Applications Informatiques

Database Administrator

Tel.: +32 4 366 83 56

Fax: +32 4 366 72 99








Email : jefferson.elias@chu.ulg.ac.be

Email DBA : db.sai@chu.ulg.ac.be
















Nedd your help to get DBD:Sybase working to connect to SQL Server (4 messages)

$
0
0
Dear Experts,

I am new to perl and I really need your help. I need your help for a perl
DBD:sybase module i am using.

I am trying to connect to a MS SQL Server from a linux server. Below are
the details and the error message.

Request you to let me know how I can fix it. I will provide any more logs
which you may require. For now, below are the details.

Thank you very much. Looking forward for your assistance.


Brief Description
I have freetds, DBI and DBD:Sybase installated. When i TSQL to a sql server
is works fine, but when i try to connect form a perl script it fails with
the error "REquested server name not found". by testing i have noticed it
may be using $HOME/interfaces file instead of freetds.conf file.

cat /etc/*release

Kernel Release: Red Hat Enterprise Linux 6.4

Kernel Architecture: x86_64

Packages Release: Red Hat Enterprise Linux Server release 6.5 (Santiago)

Red Hat Enterprise Linux Server release 6.5 (Santiago)
Red Hat Enterprise Linux Server release 6.5 (Santiago)


[sybase@1636541cllapp15 ~]$ perl -V
Summary of my perl5 (revision 5 version 10 subversion 1) configuration:

Platform:
osname=linux, osvers=2.6.18-402.el5, archname=x86_64-linux-thread-multi
uname='linux x86-027.build.eng.bos.redhat.com 2.6.18-402.el5 #1 smp thu
jan 8 06:22:34 est 2015 x86_64 x86_64 x86_64 gnulinux '
config_args='-des -Doptimize=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic -DDEBUGGING=-g -Dversion=5.10.1 -Dmyhostname=localhost
-Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dprefix=/usr
-Dvendorprefix=/usr -Dsiteprefix=/usr/local
-Dsitelib=/usr/local/share/perl5 -Dsitearch=/usr/local/lib64/perl5
-Dprivlib=/usr/share/perl5 -Darchlib=/usr/lib64/perl5
-Dvendorlib=/usr/share/perl5/vendor_perl
-Dvendorarch=/usr/lib64/perl5/vendor_perl -Dinc_version_list=5.10.0
-Darchname=x86_64-linux-thread-multi -Dlibpth=/usr/local/lib64 /lib64
/usr/lib64 -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles
-Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog
-Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005
-Uversiononly -Dpager=/usr/bin/less -isr -Dd_gethostent_r_proto
-Ud_endhostent_r_proto -Ud_sethostent_r_proto -Ud_endprotoent_r_proto
-Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_setservent_r_proto
-Dscriptdir=/usr/bin -Dusesitecustomize'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
-pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
optimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic',
cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.4.7 20120313 (Red Hat 4.4.7-14)',
gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -fstack-protector'
libpth=/usr/local/lib64 /lib64 /usr/lib64
libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.12'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-rpath,/usr/lib64/perl5/CORE'
cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic'


Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
USE_64_BIT_ALL
USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
USE_PERLIO USE_REENTRANT_API USE_SITECUSTOMIZE
Built under linux
Compiled at Mar 13 2015 07:49:15
%ENV:
PERL5LIB="/usr/local/lib64/perl5:/usr/lib64/perl5"
@INC:
/usr/local/lib64/perl5
/usr/lib64/perl5/x86_64-linux-thread-multi
/usr/lib64/perl5/5.10.0
/usr/lib64/perl5
/usr/local/lib64/perl5
/usr/local/share/perl5
/usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl
/usr/lib64/perl5
/usr/share/perl5
.
[sybase@1636541cllapp15 ~]$


[sybase@1636541cllapp15 ~]$ tsql -C
Compile-time settings (established with the "configure" script)
Version: freetds v0.91
freetds.conf directory: /etc
MS db-lib source compatibility: yes
Sybase binary compatibility: yes
Thread safety: yes
iconv library: yes
TDS version: 4.2
iODBC: no
unixodbc: yes
SSPI "trusted" logins: no
Kerberos: no
[sybase@1636541cllapp15 ~]$


$ tsql -UXXXXXX -S XXXXXX
Password:
locale is "C"
locale charset is "ANSI_X3.4-1968"
using default charset "ISO-8859-1"
1>

#!/usr/bin/perl
#

$ENV{'FREETDSCONF'}='/opt/sybase/etc/freetds.conf';
print $ENV{'FREETDSCONF'};


use DBI;

my $dbh = DBI->connect("DBI:Sybase:server=XXXXXXX", "XXXXXXX", 'XXXXXXX');
die "unable to connect to server $DBI::errstr" unless $dbh;

$dbh->do("use tempdb");

$query = "SELECT * FROM master..sys.sysusers";
$sth = $dbh->prepare ($query) or die "prepare failed\n";
$sth->execute( ) or die "unable to execute query $query error
$DBI::errstr";

$rows = $sth->rows ;
print "$row rows returned by query\n";

while ( @first = $sth->fetchrow_array ) {
foreach $field (@first) {
print "field: $field\n";
}
}

ERROR
--------
DBI connect('server=XXXXXXX,','XXXXXXX',...) failed: OpenClient message:
LAYER = (6) ORIGIN = (8) SEVERITY = (5) NUMBER = (3)
Server XXXXXXXXXX, database
Message String: ct_connect(): directory service layer: internal directory
control layer error: Requested server name not found.
at ./test.pl line 10
unable to connect to server OpenClient message: LAYER = (6) ORIGIN = (8)
SEVERITY = (5) NUMBER = (3)
Server wsvmvsysSQT01, database
Message String: ct_connect(): directory service layer: internal directory
control layer error: Requested server name not found.
Respectfully,
Sumanth
Viewing all 225 articles
Browse latest View live