Skip Menu |

This queue is for tickets about the DBD-DB2 CPAN distribution.

Report information
The Basics
Id: 17042
Status: resolved
Priority: 0/
Queue: DBD-DB2

People
Owner: Nobody in particular
Requestors: jesper [...] krogh.cc
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.78
Fixed in: (no value)



Subject: Connect fails on amd64 system.
I get this error message upon connect from a amd64 platform: Connecting to 'DBI:DB2:PD' database... DBI connect('PD','db2_admin',...) failed: [IBM][CLI Driver] SQL1042C An unexpected system error occurred. SQLSTATE=58004 at ./mytest.pl line 13 Can't connect to DBI:DB2:PD: [IBM][CLI Driver] SQL1042C An unexpected system error occurred. SQLSTATE=58004 The db2-commandline utility works fine on the system I'd need to change the Makefile from lib to lib64 in order to get the driver to compile.. even then it gives quite a lot of warnings. dbdimp.c: In function 'db2_st_table_info': dbdimp.c:1364: warning: pointer targets in initialization differ in signedness dbdimp.c:1365: warning: pointer targets in initialization differ in signedness dbdimp.c: In function 'db2_st_primary_key_info': dbdimp.c:1496: warning: pointer targets in passing argument 2 of 'SQLPrimaryKeys' differ in signedness dbdimp.c:1496: warning: pointer targets in passing argument 4 of 'SQLPrimaryKeys' differ in signedness dbdimp.c:1496: warning: pointer targets in passing argument 6 of 'SQLPrimaryKeys' differ in signedness dbdimp.c: In function 'db2_st_foreign_key_info': dbdimp.c:1595: warning: pointer targets in passing argument 2 of 'SQLForeignKeys' differ in signedness dbdimp.c:1595: warning: pointer targets in passing argument 4 of 'SQLForeignKeys' differ in signedness dbdimp.c:1595: warning: pointer targets in passing argument 6 of 'SQLForeignKeys' differ in signedness dbdimp.c:1595: warning: pointer targets in passing argument 8 of 'SQLForeignKeys' differ in signedness dbdimp.c:1595: warning: pointer targets in passing argument 10 of 'SQLForeignKeys' differ in signedness dbdimp.c:1595: warning: pointer targets in passing argument 12 of 'SQLForeignKeys' differ in signedness dbdimp.c: In function 'db2_st_column_info': dbdimp.c:1681: warning: pointer targets in passing argument 2 of 'SQLColumns' differ in signedness dbdimp.c:1681: warning: pointer targets in passing argument 4 of 'SQLColumns' differ in signedness dbdimp.c:1681: warning: pointer targets in passing argument 6 of 'SQLColumns' differ in signedness dbdimp.c:1681: warning: pointer targets in passing argument 8 of 'SQLColumns' differ in signedness
On Fri Jan 13 03:31:01 2006, guest wrote: Show quoted text
> I get this error message upon connect from a amd64 platform: > > Connecting to 'DBI:DB2:PD' database... > DBI connect('PD','db2_admin',...) failed: [IBM][CLI Driver]
SQL1042C An Show quoted text
> unexpected system error occurred. SQLSTATE=58004 > at ./mytest.pl line 13 > Can't connect to DBI:DB2:PD: [IBM][CLI Driver] SQL1042C An
unexpected Show quoted text
> system error occurred. SQLSTATE=58004 > > > The db2-commandline utility works fine on the system > > I'd need to change the Makefile from lib to lib64 in order to get the > driver to compile.. even then it gives quite a lot of warnings. > > dbdimp.c: In function 'db2_st_table_info': > dbdimp.c:1364: warning: pointer targets in initialization differ in > signedness > dbdimp.c:1365: warning: pointer targets in initialization differ in > signedness > dbdimp.c: In function 'db2_st_primary_key_info': > dbdimp.c:1496: warning: pointer targets in passing argument 2 of > 'SQLPrimaryKeys' differ in signedness > dbdimp.c:1496: warning: pointer targets in passing argument 4 of > 'SQLPrimaryKeys' differ in signedness > dbdimp.c:1496: warning: pointer targets in passing argument 6 of > 'SQLPrimaryKeys' differ in signedness > dbdimp.c: In function 'db2_st_foreign_key_info': > dbdimp.c:1595: warning: pointer targets in passing argument 2 of > 'SQLForeignKeys' differ in signedness > dbdimp.c:1595: warning: pointer targets in passing argument 4 of > 'SQLForeignKeys' differ in signedness > dbdimp.c:1595: warning: pointer targets in passing argument 6 of > 'SQLForeignKeys' differ in signedness > dbdimp.c:1595: warning: pointer targets in passing argument 8 of > 'SQLForeignKeys' differ in signedness > dbdimp.c:1595: warning: pointer targets in passing argument 10 of > 'SQLForeignKeys' differ in signedness > dbdimp.c:1595: warning: pointer targets in passing argument 12 of > 'SQLForeignKeys' differ in signedness > dbdimp.c: In function 'db2_st_column_info': > dbdimp.c:1681: warning: pointer targets in passing argument 2 of > 'SQLColumns' differ in signedness > dbdimp.c:1681: warning: pointer targets in passing argument 4 of > 'SQLColumns' differ in signedness > dbdimp.c:1681: warning: pointer targets in passing argument 6 of > 'SQLColumns' differ in signedness > dbdimp.c:1681: warning: pointer targets in passing argument 8 of > 'SQLColumns' differ in signedness
On Fri Jan 13 03:31:01 2006, guest wrote: Show quoted text
> I get this error message upon connect from a amd64 platform: > > Connecting to 'DBI:DB2:PD' database... > DBI connect('PD','db2_admin',...) failed: [IBM][CLI Driver]
SQL1042C An Show quoted text
> unexpected system error occurred. SQLSTATE=58004 > at ./mytest.pl line 13 > Can't connect to DBI:DB2:PD: [IBM][CLI Driver] SQL1042C An
unexpected Show quoted text
> system error occurred. SQLSTATE=58004 > > > The db2-commandline utility works fine on the system > > I'd need to change the Makefile from lib to lib64 in order to get the > driver to compile.. even then it gives quite a lot of warnings. > > dbdimp.c: In function 'db2_st_table_info': > dbdimp.c:1364: warning: pointer targets in initialization differ in > signedness > dbdimp.c:1365: warning: pointer targets in initialization differ in > signedness > dbdimp.c: In function 'db2_st_primary_key_info': > dbdimp.c:1496: warning: pointer targets in passing argument 2 of > 'SQLPrimaryKeys' differ in signedness > dbdimp.c:1496: warning: pointer targets in passing argument 4 of > 'SQLPrimaryKeys' differ in signedness > dbdimp.c:1496: warning: pointer targets in passing argument 6 of > 'SQLPrimaryKeys' differ in signedness > dbdimp.c: In function 'db2_st_foreign_key_info': > dbdimp.c:1595: warning: pointer targets in passing argument 2 of > 'SQLForeignKeys' differ in signedness > dbdimp.c:1595: warning: pointer targets in passing argument 4 of > 'SQLForeignKeys' differ in signedness > dbdimp.c:1595: warning: pointer targets in passing argument 6 of > 'SQLForeignKeys' differ in signedness > dbdimp.c:1595: warning: pointer targets in passing argument 8 of > 'SQLForeignKeys' differ in signedness > dbdimp.c:1595: warning: pointer targets in passing argument 10 of > 'SQLForeignKeys' differ in signedness > dbdimp.c:1595: warning: pointer targets in passing argument 12 of > 'SQLForeignKeys' differ in signedness > dbdimp.c: In function 'db2_st_column_info': > dbdimp.c:1681: warning: pointer targets in passing argument 2 of > 'SQLColumns' differ in signedness > dbdimp.c:1681: warning: pointer targets in passing argument 4 of > 'SQLColumns' differ in signedness > dbdimp.c:1681: warning: pointer targets in passing argument 6 of > 'SQLColumns' differ in signedness > dbdimp.c:1681: warning: pointer targets in passing argument 8 of > 'SQLColumns' differ in signedness
On Thu Mar 30 09:14:25 2006, guest wrote: Show quoted text
> On Fri Jan 13 03:31:01 2006, guest wrote:
> > I get this error message upon connect from a amd64 platform: > > > > Connecting to 'DBI:DB2:PD' database... > > DBI connect('PD','db2_admin',...) failed: [IBM][CLI Driver]
> SQL1042C An
> > unexpected system error occurred. SQLSTATE=58004 > > at ./mytest.pl line 13 > > Can't connect to DBI:DB2:PD: [IBM][CLI Driver] SQL1042C An
> unexpected
> > system error occurred. SQLSTATE=58004 > > > > > > The db2-commandline utility works fine on the system > > > > I'd need to change the Makefile from lib to lib64 in order to get
the Show quoted text
> > driver to compile.. even then it gives quite a lot of warnings. > > > > dbdimp.c: In function 'db2_st_table_info': > > dbdimp.c:1364: warning: pointer targets in initialization differ in > > signedness > > dbdimp.c:1365: warning: pointer targets in initialization differ in > > signedness > > dbdimp.c: In function 'db2_st_primary_key_info': > > dbdimp.c:1496: warning: pointer targets in passing argument 2 of > > 'SQLPrimaryKeys' differ in signedness > > dbdimp.c:1496: warning: pointer targets in passing argument 4 of > > 'SQLPrimaryKeys' differ in signedness > > dbdimp.c:1496: warning: pointer targets in passing argument 6 of > > 'SQLPrimaryKeys' differ in signedness > > dbdimp.c: In function 'db2_st_foreign_key_info': > > dbdimp.c:1595: warning: pointer targets in passing argument 2 of > > 'SQLForeignKeys' differ in signedness > > dbdimp.c:1595: warning: pointer targets in passing argument 4 of > > 'SQLForeignKeys' differ in signedness > > dbdimp.c:1595: warning: pointer targets in passing argument 6 of > > 'SQLForeignKeys' differ in signedness > > dbdimp.c:1595: warning: pointer targets in passing argument 8 of > > 'SQLForeignKeys' differ in signedness > > dbdimp.c:1595: warning: pointer targets in passing argument 10 of > > 'SQLForeignKeys' differ in signedness > > dbdimp.c:1595: warning: pointer targets in passing argument 12 of > > 'SQLForeignKeys' differ in signedness > > dbdimp.c: In function 'db2_st_column_info': > > dbdimp.c:1681: warning: pointer targets in passing argument 2 of > > 'SQLColumns' differ in signedness > > dbdimp.c:1681: warning: pointer targets in passing argument 4 of > > 'SQLColumns' differ in signedness > > dbdimp.c:1681: warning: pointer targets in passing argument 6 of > > 'SQLColumns' differ in signedness > > dbdimp.c:1681: warning: pointer targets in passing argument 8 of > > 'SQLColumns' differ in signedness
> >
We have added the support for 64 libraries during compilation. This can be seen in the latest version: 0.80. Thank you for your patience and support!