Hi,

I'm trying compile libdbi with DB2 support. I've downloaded the latest version 
(libdbi-drivers-0.9.0) and exec'ed 

./configure --with-db2 --with-db2-incdir=/opt/ibm/db2/V10.5/include 
--with-db2-dir=/opt/ibm/db2/V10.5

That part worked. But when running 'make' it fails with:

make  all-recursive
make[1]: Entering directory `/var/tmp/libdbi-drivers-0.9.0'
Making all in drivers
make[2]: Entering directory `/var/tmp/libdbi-drivers-0.9.0/drivers'
Making all in mysql
make[3]: Entering directory `/var/tmp/libdbi-drivers-0.9.0/drivers/mysql'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/tmp/libdbi-drivers-0.9.0/drivers/mysql'
Making all in pgsql
make[3]: Entering directory `/var/tmp/libdbi-drivers-0.9.0/drivers/pgsql'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/tmp/libdbi-drivers-0.9.0/drivers/pgsql'
Making all in sqlite
make[3]: Entering directory `/var/tmp/libdbi-drivers-0.9.0/drivers/sqlite'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/tmp/libdbi-drivers-0.9.0/drivers/sqlite'
Making all in sqlite3
make[3]: Entering directory `/var/tmp/libdbi-drivers-0.9.0/drivers/sqlite3'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/tmp/libdbi-drivers-0.9.0/drivers/sqlite3'
Making all in msql
make[3]: Entering directory `/var/tmp/libdbi-drivers-0.9.0/drivers/msql'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/tmp/libdbi-drivers-0.9.0/drivers/msql'
Making all in oracle
make[3]: Entering directory `/var/tmp/libdbi-drivers-0.9.0/drivers/oracle'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/tmp/libdbi-drivers-0.9.0/drivers/oracle'
Making all in firebird
make[3]: Entering directory `/var/tmp/libdbi-drivers-0.9.0/drivers/firebird'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/tmp/libdbi-drivers-0.9.0/drivers/firebird'
Making all in freetds
make[3]: Entering directory `/var/tmp/libdbi-drivers-0.9.0/drivers/freetds'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/tmp/libdbi-drivers-0.9.0/drivers/freetds'
Making all in ingres
make[3]: Entering directory `/var/tmp/libdbi-drivers-0.9.0/drivers/ingres'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/tmp/libdbi-drivers-0.9.0/drivers/ingres'
Making all in db2
make[3]: Entering directory `/var/tmp/libdbi-drivers-0.9.0/drivers/db2'
/bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. 
-I../.. -I../../include  -I/opt/ibm/db2/V10.5/include -I/include    -std=gnu99  
-MT dbd_db2.lo -MD -MP -MF .deps/dbd_db2.Tpo -c -o dbd_db2.lo dbd_db2.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include 
-I/opt/ibm/db2/V10.5/include -I/include -std=gnu99 -MT dbd_db2.lo -MD -MP -MF 
.deps/dbd_db2.Tpo -c dbd_db2.c  -fPIC -DPIC -o .libs/dbd_db2.o
dbd_db2.c: In function 'dbd_connect':
dbd_db2.c:134: warning: cast from pointer to integer of different size
dbd_db2.c:140: warning: cast from pointer to integer of different size
dbd_db2.c:145: warning: cast from pointer to integer of different size
dbd_db2.c:154: warning: cast from pointer to integer of different size
dbd_db2.c:156: warning: cast from pointer to integer of different size
dbd_db2.c:162: warning: cast from pointer to integer of different size
dbd_db2.c:169: warning: cast from pointer to integer of different size
dbd_db2.c: In function 'dbd_disconnect':
dbd_db2.c:185: warning: cast from pointer to integer of different size
dbd_db2.c:187: warning: cast from pointer to integer of different size
dbd_db2.c:190: warning: cast from pointer to integer of different size
dbd_db2.c:192: warning: cast from pointer to integer of different size
dbd_db2.c:195: warning: cast from pointer to integer of different size
dbd_db2.c:197: warning: cast from pointer to integer of different size
dbd_db2.c: In function 'dbd_geterror':
dbd_db2.c:230: warning: cast from pointer to integer of different size
dbd_db2.c: At top level:
dbd_db2.c:267: error: conflicting types for 'dbd_goto_row'
/usr/include/dbi/dbd.h:41: note: previous declaration of 'dbd_goto_row' was here
dbd_db2.c: In function 'dbd_free_query':
dbd_db2.c:291: warning: cast from pointer to integer of different size
dbd_db2.c:293: warning: cast from pointer to integer of different size
dbd_db2.c: In function 'dbd_get_engine_version':
dbd_db2.c:348: warning: cast from pointer to integer of different size
dbd_db2.c:350: warning: cast from pointer to integer of different size
dbd_db2.c: In function 'dbd_list_tables':
dbd_db2.c:383: warning: cast from pointer to integer of different size
dbd_db2.c:385: warning: cast from pointer to integer of different size
dbd_db2.c:409: warning: cast from pointer to integer of different size
dbd_db2.c:414: warning: cast to pointer from integer of different size
dbd_db2.c: In function 'dbd_query':
dbd_db2.c:472: warning: cast from pointer to integer of different size
dbd_db2.c:474: warning: cast from pointer to integer of different size
dbd_db2.c:483: warning: cast from pointer to integer of different size
dbd_db2.c:517: warning: cast from pointer to integer of different size
dbd_db2.c:551: warning: cast from pointer to integer of different size
dbd_db2.c:553: warning: cast from pointer to integer of different size
dbd_db2.c:562: warning: cast from pointer to integer of different size
dbd_db2.c:573: warning: cast to pointer from integer of different size
dbd_db2.c: In function '_get_field_info':
dbd_db2.c:817: warning: cast from pointer to integer of different size
dbd_db2.c:827: warning: cast from pointer to integer of different size
dbd_db2.c: In function '_get_row_data':
dbd_db2.c:872: warning: cast from pointer to integer of different size
dbd_db2.c:874: warning: cast from pointer to integer of different size
dbd_db2.c:905: warning: cast from pointer to integer of different size
dbd_db2.c:910: warning: cast from pointer to integer of different size
dbd_db2.c:916: warning: cast from pointer to integer of different size
dbd_db2.c:923: warning: cast from pointer to integer of different size
dbd_db2.c:935: warning: cast from pointer to integer of different size
dbd_db2.c:940: warning: cast from pointer to integer of different size
dbd_db2.c:950: warning: cast from pointer to integer of different size
dbd_db2.c:958: warning: cast from pointer to integer of different size
dbd_db2.c:969: warning: cast from pointer to integer of different size
dbd_db2.c:973: warning: passing argument 1 of 'snprintf' discards qualifiers 
from pointer target type
/usr/include/stdio.h:385: note: expected 'char * restrict' but argument is of 
type 'const char *'
dbd_db2.c:976: warning: cast from pointer to integer of different size
dbd_db2.c:980: warning: passing argument 1 of 'snprintf' discards qualifiers 
from pointer target type
/usr/include/stdio.h:385: note: expected 'char * restrict' but argument is of 
type 'const char *'
dbd_db2.c:983: warning: cast from pointer to integer of different size
dbd_db2.c:990: warning: passing argument 1 of 'snprintf' discards qualifiers 
from pointer target type
/usr/include/stdio.h:385: note: expected 'char * restrict' but argument is of 
type 'const char *'
dbd_db2.c: In function '_set_error_handle':
dbd_db2.c:1017: warning: cast to pointer from integer of different size
make[3]: *** [dbd_db2.lo] Error 1
make[3]: Leaving directory `/var/tmp/libdbi-drivers-0.9.0/drivers/db2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/libdbi-drivers-0.9.0/drivers'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/libdbi-drivers-0.9.0'
make: *** [all] Error 2


Any idea how to make this work? 

Thanks,

Sadek
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
libdbi-users mailing list
libdbi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libdbi-users

Reply via email to