← Back to team overview

linux-traipu team mailing list archive

[Bug 1025318] Re: unable to install DBD::drizzle in ubuntu precise

 

solved: commented out the drizzle_refresh() function beacuse there is no
such function in drizzle source code as of now. Some constants in perl
library which were old and throwing errors were renamed. Although there
are still warnings of type (warning: format ‘%lu’ expects argument of
type ‘long unsigned int’, but argument 3 has type ‘uint64_t’
[-Wformat]). Created this perl script and tested and there was indeed a
table in the database with two rows.

use DBI;
$dbh = DBI->connect('DBI:drizzle:aj', 'aj', ''
	           ) || die "Could not connect to database: $DBI::errstr";
$dbh->do('CREATE TABLE exmpl_tbl (id INT, val VARCHAR(100))');
$dbh->do('INSERT INTO exmpl_tbl VALUES(1, ?)', undef, 'Hello');
$dbh->do('INSERT INTO exmpl_tbl VALUES(2, ?)', undef, 'World');

P.S: Just did basic research of errors in internet and got solutions.

-- 
You received this bug notification because you are a member of UBUNTU -
AL - BR, which is subscribed to Drizzle.
https://bugs.launchpad.net/bugs/1025318

Title:
  unable to install DBD::drizzle in ubuntu precise

Status in A Lightweight SQL Database for Cloud Infrastructure and Web Applications:
  Confirmed

Bug description:
  vjsamuel@codeshack:~/DBD-drizzle-0.304$ sudo make
  cc -c  -I/usr/local/lib/perl/5.14.2/auto/DBI -I/usr/include/libdrizzle-1.0 -DDBD_DRIZZLE_INSERT_ID_IS_GOOD -g  -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"0.304\" -DXS_VERSION=\"0.304\" -fPIC "-I/usr/lib/perl/5.14/CORE"   dbdimp.c
  dbdimp.c: In function ‘drizzle_dr_connect’:
  dbdimp.c:899:5: error: ‘sv_yes’ undeclared (first use in this function)
  dbdimp.c:899:5: note: each undeclared identifier is reported only once for each function it appears in
  dbdimp.c: In function ‘dbd_discon_all’:
  dbdimp.c:1336:8: error: ‘dirty’ undeclared (first use in this function)
  dbdimp.c:1344:3: error: ‘perl_destruct_level’ undeclared (first use in this function)
  dbdimp.c: In function ‘drizzle_db_FETCH_attrib’:
  dbdimp.c:1579:58: error: ‘sv_undef’ undeclared (first use in this function)
  dbdimp.c: In function ‘drizzle_st_execute’:
  dbdimp.c:2080:5: warning: conversion lacks type at end of format [-Wformat]
  dbdimp.c: In function ‘drizzle_st_FETCH_internal’:
  dbdimp.c:2565:14: error: ‘sv_undef’ undeclared (first use in this function)
  dbdimp.c: In function ‘drizzle_db_type_info_all’:
  dbdimp.c:2986:5: error: ‘sv_undef’ undeclared (first use in this function)
  dbdimp.c: In function ‘drop_schema’:
  dbdimp.c:3199:14: warning: passing argument 1 of ‘drizzle_dr_error’ from incompatible pointer type [enabled by default]
  dbdimp.c:785:6: note: expected ‘struct SV *’ but argument is of type ‘struct imp_dbh_t *’
  dbdimp.c: In function ‘create_schema’:
  dbdimp.c:3215:14: warning: passing argument 1 of ‘drizzle_dr_error’ from incompatible pointer type [enabled by default]
  dbdimp.c:785:6: note: expected ‘struct SV *’ but argument is of type ‘struct imp_dbh_t *’
  make: *** [dbdimp.o] Error 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/drizzle/+bug/1025318/+subscriptions


References