Hi,
i'm tryng to install DBD::DB2 on my linux box but it fails:

------------------------
install DBD::DB2
Going to read '/root/.cpan/Metadata'
  Database was generated on Thu, 08 Sep 2011 09:28:48 GMT
Running install for module 'DBD::DB2'
Running make for I/IB/IBMTORDB2/DBD-DB2-1.81.tar.gz
Checksum for /root/.cpan/sources/authors/id/I/IB/IBMTORDB2/DBD-DB2-1.81.tar.gz ok
Scanning cache /root/.cpan/build for sizes
..........................................................................--DONE
DEL(1/2): /root/.cpan/build/SOAP-Lite-0.712-CNzvW5
DEL(2/2): /root/.cpan/build/SOAP-Lite-0.712-CNzvW5.yml

  CPAN.pm: Going to build I/IB/IBMTORDB2/DBD-DB2-1.81.tar.gz

Legacy library flush.pl will be removed from the Perl core distribution in the next major release. Please install it from the CPAN distribution Perl4::CoreLibs. It is being used at Makefile.PL, line 11.

Configuring DBD::DB2...
Remember to actually read the README and CAVEATS files!

Using DB2 in "/opt/ibm/db2/V9.7"
System: perl5.014001 DBI1.616 linux monitor.regione.toscana.it 2.6.32-131.6.1.el6.x86_64 #1 smp mon jun 20 14:15:38 edt 2011 x86_64 x86_64 x86_64 gnulinux x86_64-linux dl_dlopen.xs Compiler: cc -O2 -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 Includes: -I"/opt/ibm/db2/V9.7/include" -I"/opt/perl5/lib/site_perl/5.14.1/x86_64-linux/auto/DBI" -I"/opt/perl5/lib/5.14.1/x86_64-linux/auto/DBI" -I"/opt/perl5/lib/site_perl/5.14.1/x86_64-linux/auto/DBI"
Libraries: -L/opt/ibm/db2/V9.7/lib64 -ldb2

Checking if your kit is complete...
Looks good
Checking if your kit is complete...
Looks good
Writing Makefile for DBD::DB2::Constants
Writing MYMETA.yml
Writing Makefile for DBD::DB2
Writing MYMETA.yml
cp DB2.pm blib/lib/DBD/DB2.pm
cp lib/Bundle/DBD/DB2.pm blib/lib/Bundle/DBD/DB2.pm
cp DB2.pod blib/lib/DBD/DB2.pod
make[1]: Entering directory `/root/.cpan/build/DBD-DB2-1.81-xaPjeE/Constants'
cp Constants.pm ../blib/lib/DBD/DB2/Constants.pm
AutoSplitting ../blib/lib/DBD/DB2/Constants.pm (../blib/lib/auto/DBD/DB2/Constants) /opt/perl5/bin/perl /opt/perl5/lib/5.14.1/ExtUtils/xsubpp -typemap /opt/perl5/lib/5.14.1/ExtUtils/typemap Constants.xs > Constants.xsc && mv Constants.xsc Constants.c cc -c -I"/opt/ibm/db2/V9.7/include" -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.81\" -DXS_VERSION=\"1.81\" -fPIC "-I/opt/perl5/lib/5.14.1/x86_64-linux/CORE" Constants.c
Running Mkbootstrap for DBD::DB2::Constants ()
chmod 644 Constants.bs
rm -f ../blib/arch/auto/DBD/DB2/Constants/Constants.so
cc -shared -O2 -L/usr/local/lib -fstack-protector Constants.o -o ../blib/arch/auto/DBD/DB2/Constants/Constants.so \
                \

chmod 755 ../blib/arch/auto/DBD/DB2/Constants/Constants.so
cp Constants.bs ../blib/arch/auto/DBD/DB2/Constants/Constants.bs
chmod 644 ../blib/arch/auto/DBD/DB2/Constants/Constants.bs
make[1]: Leaving directory `/root/.cpan/build/DBD-DB2-1.81-xaPjeE/Constants'
/opt/perl5/bin/perl /opt/perl5/lib/5.14.1/ExtUtils/xsubpp -typemap /opt/perl5/lib/5.14.1/ExtUtils/typemap DB2.xs > DB2.xsc && mv DB2.xsc DB2.c cc -c -I"/opt/ibm/db2/V9.7/include" -I"/opt/perl5/lib/site_perl/5.14.1/x86_64-linux/auto/DBI" -I"/opt/perl5/lib/5.14.1/x86_64-linux/auto/DBI" -I"/opt/perl5/lib/site_perl/5.14.1/x86_64-linux/auto/DBI" -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.81\" -DXS_VERSION=\"1.81\" -fPIC "-I/opt/perl5/lib/5.14.1/x86_64-linux/CORE" -DDB2_CACHE_FIX DB2.c
DB2.xs: In function âXS_DBD__DB2__dr_disconnect_allâ:
DB2.xs:49: error: âdirtyâ undeclared (first use in this function)
DB2.xs:49: error: (Each undeclared identifier is reported only once
DB2.xs:49: error: for each function it appears in.)
DB2.xs: In function âXS_DBD__DB2__db__loginâ:
DB2.xs:92: error: âsv_yesâ undeclared (first use in this function)
DB2.xs:92: error: âsv_noâ undeclared (first use in this function)
DB2.xs: In function âXS_DBD__DB2__db_commitâ:
DB2.xs:103: error: âsv_yesâ undeclared (first use in this function)
DB2.xs:103: error: âsv_noâ undeclared (first use in this function)
DB2.xs: In function âXS_DBD__DB2__db_rollbackâ:
DB2.xs:112: error: âsv_yesâ undeclared (first use in this function)
DB2.xs:112: error: âsv_noâ undeclared (first use in this function)
DB2.xs: In function âXS_DBD__DB2__db_disconnectâ:
DB2.xs:134: error: âdirtyâ undeclared (first use in this function)
DB2.xs:141: error: âsv_yesâ undeclared (first use in this function)
DB2.xs:141: error: âsv_noâ undeclared (first use in this function)
DB2.xs: In function âXS_DBD__DB2__db_STOREâ:
DB2.xs:156: error: âsv_yesâ undeclared (first use in this function)
DB2.xs:159: error: âsv_noâ undeclared (first use in this function)
DB2.xs: In function âXS_DBD__DB2__db_DESTROYâ:
DB2.xs:178: error: âsv_yesâ undeclared (first use in this function)
DB2.xs:181: error: âdirtyâ undeclared (first use in this function)
DB2.xs: In function âXS_DBD__DB2__st__prepareâ:
DB2.xs:271: error: âsv_yesâ undeclared (first use in this function)
DB2.xs:271: error: âsv_noâ undeclared (first use in this function)
DB2.xs: In function âXS_DBD__DB2__st_bind_paramâ:
DB2.xs:307: error: âsv_yesâ undeclared (first use in this function)
DB2.xs:307: error: âsv_noâ undeclared (first use in this function)
DB2.xs: In function âXS_DBD__DB2__st_bind_param_inoutâ:
DB2.xs:341: error: âsv_yesâ undeclared (first use in this function)
DB2.xs:341: error: âsv_noâ undeclared (first use in this function)
DB2.xs: In function âXS_DBD__DB2__st_fetchrow_arrayrefâ:
DB2.xs:400: error: âsv_undefâ undeclared (first use in this function)
DB2.xs: In function âXS_DBD__DB2__st_cancelâ:
DB2.xs:426: error: âsv_yesâ undeclared (first use in this function)
DB2.xs:426: error: âsv_noâ undeclared (first use in this function)
DB2.xs: In function âXS_DBD__DB2__st_finishâ:
DB2.xs:445: error: âsv_yesâ undeclared (first use in this function)
DB2.xs:445: error: âsv_noâ undeclared (first use in this function)
DB2.xs: In function âXS_DBD__DB2__st_blob_readâ:
DB2.xs:463: error: âsv_undefâ undeclared (first use in this function)
DB2.xs: In function âXS_DBD__DB2__st_STOREâ:
DB2.xs:476: error: âsv_yesâ undeclared (first use in this function)
DB2.xs:479: error: âsv_noâ undeclared (first use in this function)
DB2.xs: In function âXS_DBD__DB2__st_DESTROYâ:
DB2.xs:499: error: âsv_yesâ undeclared (first use in this function)
DB2.xs:502: error: âdirtyâ undeclared (first use in this function)
DB2.xs: In function âXS_DBD__DB2__st__table_infoâ:
DB2.xs:533: error: âsv_yesâ undeclared (first use in this function)
DB2.xs:533: error: âsv_noâ undeclared (first use in this function)
DB2.xs: In function âXS_DBD__DB2__st__primary_key_infoâ:
DB2.xs:551: error: âsv_yesâ undeclared (first use in this function)
DB2.xs:551: error: âsv_noâ undeclared (first use in this function)
DB2.xs: In function âXS_DBD__DB2__st__foreign_key_infoâ:
DB2.xs:570: error: âsv_yesâ undeclared (first use in this function)
DB2.xs:570: error: âsv_noâ undeclared (first use in this function)
DB2.xs: In function âXS_DBD__DB2__st__column_infoâ:
DB2.xs:585: error: âsv_yesâ undeclared (first use in this function)
DB2.xs:585: error: âsv_noâ undeclared (first use in this function)
DB2.xs: In function âXS_DBD__DB2__st__type_info_allâ:
DB2.xs:595: error: âsv_yesâ undeclared (first use in this function)
DB2.xs:595: error: âsv_noâ undeclared (first use in this function)
make: *** [DB2.o] Error 1
  IBMTORDB2/DBD-DB2-1.81.tar.gz
  /usr/bin/make -- NOT OK
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible
Failed during this command:
 IBMTORDB2/DBD-DB2-1.81.tar.gz                : make NO
-----
my perl version:
---------
Summary of my perl5 (revision 5 version 14 subversion 1) configuration:

  Platform:
    osname=linux, osvers=2.6.32-131.6.1.el6.x86_64, archname=x86_64-linux
uname='linux monitor.regione.toscana.it 2.6.32-131.6.1.el6.x86_64 #1 smp mon jun 20 14:15:38 edt 2011 x86_64 x86_64 x86_64 gnulinux '
    config_args='-d -Dprefix=/opt/perl5'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include' ccversion='', gccversion='4.4.5 20110214 (Red Hat 4.4.5-6)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib/../lib64 /usr/lib/../lib64 /lib /usr/lib /lib64 /usr/lib64 /usr/local/lib64
    libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.12.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.12'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector'


Characteristics of this binary (from libperl):
  Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP
                        PERL_PRESERVE_IVUV USE_64_BIT_ALL USE_64_BIT_INT
                        USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF
  Built under linux
  Compiled at Sep  8 2011 13:12:21
  @INC:
    /opt/perl5/lib/site_perl/5.14.1/x86_64-linux
    /opt/perl5/lib/site_perl/5.14.1
    /opt/perl5/lib/5.14.1/x86_64-linux
    /opt/perl5/lib/5.14.1
---------------

any suggestions?
thanks

Marco

Reply via email to