Good day.  I am receiving an error when trying to install DBI on a fresh Cygwin 
install.  Enclosed is a screenshot of the error, and output from cygcheck.
Do you have an idea on where I might look next?  I am inexperienced in Cygwin, 
and have installed DBI only twice before.

Running Mkbootstrap for DBI ()
chmod 644 "DBI.bs"
"/usr/bin/perl.exe" -MExtUtils::Command::MM -e 'cp_nonempty' -- DBI.bs 
blib/arch/auto/DBI/DBI.bs 644
"/usr/bin/perl.exe" -p -e "s/~DRIVER~/Perl/g" ./Driver.xst > Perl.xsi
"/usr/bin/perl.exe" "/usr/share/perl5/5.30/ExtUtils/xsubpp"  -typemap 
'/usr/share/perl5/5.30/ExtUtils/typemap' -typemap 
'/home/svc_dpa_sql/.cpan/build/DBI-1.643-1/typemap'  Perl.xs > Perl.xsc
mv Perl.xsc Perl.c
gcc -c   -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -D_GNU_SOURCE -ggdb -O2 -pipe 
-Wall -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong 
--param=ssp-buffer-size=4 
-fdebug-prefix-map=/mnt/share/cygpkgs/perl/perl.x86/build=/usr/src/debug/perl-5.30.3-1
 
-fdebug-prefix-map=/mnt/share/cygpkgs/perl/perl.x86/src/perl-5.30.3=/usr/src/debug/perl-5.30.3-1
 -fwrapv -fno-strict-aliasing -DUSEIMPORTLIB -O3   -DVERSION=\"1.643\" 
-DXS_VERSION=\"1.643\"  "-I/usr/lib/perl5/5.30/i686-cygwin-threads-64int/CORE"  
-W -Wall -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare 
-Wno-cast-qual -Wmissing-noreturn -Wno-unused-parameter Perl.c
In file included from Perl.xs:7:
Perl.xs: In function 'dbi_get_state':
DBIXS.h:498:32: warning: cast between incompatible function types from 'void 
(*)(PerlInterpreter *, CV *)' {aka 'void (*)(struct interpreter *, struct cv 
*)'} to 'dbistate_t ** (*)(PerlInterpreter *)' {aka 'struct dbistate_st ** 
(*)(struct interpreter *)'} [-Wcast-function-type]
  498 |             dbi_state_lval_p = (_dbi_state_lval_t)CvXSUB(cv);           
    \
      |                                ^
DBIXS.h:506:27: note: in expansion of macro '_DBISTATE_DECLARE_COMMON'
  506 | # define DBISTATE_DECLARE _DBISTATE_DECLARE_COMMON
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~
Perl.xs:13:1: note: in expansion of macro 'DBISTATE_DECLARE'
   13 | DBISTATE_DECLARE;
      | ^~~~~~~~~~~~~~~~
"/usr/bin/perl.exe" "/usr/share/perl5/5.30/ExtUtils/xsubpp"  -typemap 
'/usr/share/perl5/5.30/ExtUtils/typemap' -typemap 
'/home/svc_dpa_sql/.cpan/build/DBI-1.643-1/typemap'  DBI.xs > DBI.xsc
mv DBI.xsc DBI.c
gcc -c   -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -D_GNU_SOURCE -ggdb -O2 -pipe 
-Wall -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong 
--param=ssp-buffer-size=4 
-fdebug-prefix-map=/mnt/share/cygpkgs/perl/perl.x86/build=/usr/src/debug/perl-5.30.3-1
 
-fdebug-prefix-map=/mnt/share/cygpkgs/perl/perl.x86/src/perl-5.30.3=/usr/src/debug/perl-5.30.3-1
 -fwrapv -fno-strict-aliasing -DUSEIMPORTLIB -O3   -DVERSION=\"1.643\" 
-DXS_VERSION=\"1.643\"  "-I/usr/lib/perl5/5.30/i686-cygwin-threads-64int/CORE"  
-W -Wall -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare 
-Wno-cast-qual -Wmissing-noreturn -Wno-unused-parameter DBI.c
In file included from 
/usr/lib/perl5/5.30/i686-cygwin-threads-64int/CORE/perl.h:5359,
                 from DBIXS.h:23,
                 from DBI.xs:13:
DBI.xs: In function 'boot_DBI':
DBI.xs:4477:42: warning: cast between incompatible function types from 
'dbistate_t ** (*)(PerlInterpreter *)' {aka 'struct dbistate_st ** (*)(struct 
interpreter *)'} to 'void (*)(PerlInterpreter *, CV *)' {aka 'void (*)(struct 
interpreter *, struct cv *)'} [-Wcast-function-type]
4477 |     (void) newXS("DBI::_dbi_state_lval", (XSUBADDR_t)_dbi_state_lval, 
__FILE__);
      |                                          ^
/usr/lib/perl5/5.30/i686-cygwin-threads-64int/CORE/embed.h:556:52: note: in 
definition of macro 'newXS'
  556 | #define newXS(a,b,c)            Perl_newXS(aTHX_ a,b,c)
      |                                                    ^
DBI.c: In function 'XS_DBD_____db_take_imp_data':
DBI.xs:5163:16: warning: 'mg' may be used uninitialized in this function 
[-Wmaybe-uninitialized]
5163 |     mg->mg_obj = Nullsv;        /* sever the link from handle to imp_xxh 
*/
DBI.xs:5075:12: note: 'mg' was declared here
5075 |     MAGIC *mg;
      |            ^~
rm -f blib/arch/auto/DBI/DBI.dll
g++  --shared  -Wl,--enable-auto-import -Wl,--export-all-symbols 
-Wl,--enable-auto-image-base -fstack-protector-strong  DBI.o  -o 
blib/arch/auto/DBI/DBI.dll  \
  /usr/lib/perl5/5.30/i686-cygwin-threads-64int/CORE/cygperl5_30.dll    \

g++: fatal error: -fuse-linker-plugin, but cyglto_plugin.dll not found
compilation terminated.
make: *** [Makefile:652: blib/arch/auto/DBI/DBI.dll] Error 1
  TIMB/DBI-1.643.tar.gz
  /usr/bin/make -- NOT OK
Failed during this command:
TIMB/DBI-1.643.tar.gz                        : make NO

Thanks in advance!
Michael Lascuola

IMPORTANT NOTICE AND DISCLAIMER: The information contained in this e-mail, 
including any attachments, is privileged, strictly confidential, and is 
intended only for the use of the addressee(s) indicated above. If you are not 
an intended recipient of this e-mail, you are strictly prohibited from reading, 
reviewing, using, disclosing, printing, copying or disseminating this e-mail, 
and are asked to (a) notify the sender only of your receipt of this e-mail, and 
(b) permanently delete this e-mail immediately. Thank you.

<<attachment: perlUsers.zip>>

Reply via email to