unable to install DBD::drizzle in ubuntu precise

Bug #1025318 reported by Vijay Samuel on 2012-07-16
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Drizzle
High
Ajaya Agrawal

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

Clint Byrum (clint-fewbar) wrote :

I reproduced the problem as well on a clean install of 12.04

Changed in drizzle:
status: New → Confirmed
Patrick Crews (patrick-crews) wrote :

++ here. Gotta get this fixed for our shiny new fleet of cloud slaves >: )

Changed in drizzle:
importance: Undecided → High
Ajaya Agrawal (ajayaa) wrote :

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.

Ajaya Agrawal (ajayaa) wrote :

Got rid of the above warnings(by using PRIu64 in printf and sprintf statements). Still there are two warnings.

Ajaya Agrawal (ajayaa) on 2013-02-19
Changed in drizzle:
status: Confirmed → In Progress
assignee: CaptTofu (capttofu) → Ajaya Agrawal (aj--)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers