hi all,
I have been trying to compile and install a recent DBI-module and a
DBD-Interbase module. The first went OK, the latter gave me problems
which I cannot solve. Can anybody give me a hint?
I work on a Solaris platform,
I use perl-5.6.0
I have already installed DBI-1.21
The first try, after running configure gave me the following output:
ruud@loki$ make
gcc -c -I/usr/interbase/include
-I/opt/perl-5.6.0-AP618/lib/site_perl/5.6.0/sun4-solaris/auto/DBI
-fno-strict-aliasing -I/opt/gdbm-1.8.0/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.30\" -DXS_VERSION=\"0.30\"
-fPIC -I/opt/perl-5.6.0-AP618/lib/5.6.0/sun4-solaris/CORE dbdimp.c
dbdimp.c: In function `ib2sql_type':
dbdimp.c:229: `SQL_TYPE_DATE' undeclared (first use in this function)
dbdimp.c:229: (Each undeclared identifier is reported only once
dbdimp.c:229: for each function it appears in.)
dbdimp.c:233: `SQL_TYPE_TIME' undeclared (first use in this function)
dbdimp.c:237: `SQL_TIMESTAMP' undeclared (first use in this function)
dbdimp.c: In function `dbd_db_login6':
dbdimp.c:444: `isc_dpb_SQL_dialect' undeclared (first use in this
function)
dbdimp.c: In function `ib_st_prepare':
dbdimp.c:1061: `SQL_TYPE_DATE' undeclared (first use in this function)
dbdimp.c:1083: `SQL_TIMESTAMP' undeclared (first use in this function)
dbdimp.c:1096: `SQL_TYPE_TIME' undeclared (first use in this function)
dbdimp.c:1062: warning: unreachable code at beginning of switch
statement
dbdimp.c: In function `ib_fill_isqlda':
dbdimp.c:2420: `SQL_TIMESTAMP' undeclared (first use in this function)
dbdimp.c:2428: `SQL_TYPE_DATE' undeclared (first use in this function)
dbdimp.c:2436: `SQL_TYPE_TIME' undeclared (first use in this function)
dbdimp.c:2421: warning: unreachable code at beginning of switch
statement
*** Error code 1
make: Fatal error: Command failed for target `dbdimp.o'
I 'fixed' this by commenting out the #undef's in dbdimp.h. Now the
compiler complains about the changes I made, but it gets further:
ruud@loki$ make
gcc -c -I/usr/interbase/include
-I/opt/perl-5.6.0-AP618/lib/site_perl/5.6.0/sun4-solaris/auto/DBI
-fno-strict-aliasing -I/opt/gdbm-1.8.0/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.30\" -DXS_VERSION=\"0.30\"
-fPIC -I/opt/perl-5.6.0-AP618/lib/5.6.0/sun4-solaris/CORE dbdimp.c
In file included from dbdimp.h:68,
from InterBase.h:15,
from dbdimp.c:13:
/usr/interbase/include/ibase.h:2736: warning: `SQL_FLOAT' redefined
/opt/perl-5.6.0-AP618/lib/site_perl/5.6.0/sun4-solaris/auto/DBI/dbi_sql.h:31:
warning: this is the location of the previous definition
/usr/interbase/include/ibase.h:2737: warning: `SQL_DOUBLE' redefined
/opt/perl-5.6.0-AP618/lib/site_perl/5.6.0/sun4-solaris/auto/DBI/dbi_sql.h:33:
warning: this is the location of the previous definition
/usr/interbase/include/ibase.h:2739: warning: `SQL_DATE' redefined
/opt/perl-5.6.0-AP618/lib/site_perl/5.6.0/sun4-solaris/auto/DBI/dbi_sql.h:35:
warning: this is the location of the previous definition
/usr/interbase/include/ibase.h:2740: warning: `SQL_BLOB' redefined
/opt/perl-5.6.0-AP618/lib/site_perl/5.6.0/sun4-solaris/auto/DBI/dbi_sql.h:45:
warning: this is the location of the previous definition
/usr/interbase/include/ibase.h:2741: warning: `SQL_ARRAY' redefined
/opt/perl-5.6.0-AP618/lib/site_perl/5.6.0/sun4-solaris/auto/DBI/dbi_sql.h:49:
warning: this is the location of the previous definition
dbdimp.c: In function `dbd_db_login6':
dbdimp.c:444: `isc_dpb_SQL_dialect' undeclared (first use in this
function)
dbdimp.c:444: (Each undeclared identifier is reported only once
dbdimp.c:444: for each function it appears in.)
dbdimp.c: In function `ib_st_fetch':
dbdimp.c:1577: `ISC_TIMESTAMP' undeclared (first use in this function)
dbdimp.c:1577: parse error before `)'
dbdimp.c:1581: `ISC_DATE' undeclared (first use in this function)
dbdimp.c:1581: parse error before `)'
dbdimp.c:1585: `ISC_TIME' undeclared (first use in this function)
dbdimp.c:1585: parse error before `)'
*** Error code 1
make: Fatal error: Command failed for target `dbdimp.o'
ruud@loki$
This is the point where I have to ask for advice.
Has anyone had this problem too? Is there some patch to work around
this problem? I would greatly appreciate any help!!
thanks in advance,
Ruud