On 6/29/24 18:22, C.J. Collier wrote:
I think you figured the mailing list out.
Can you tell us about your environment? On what system are you
attempting to install? Why aren't you using cpanm or your system packages?
On Sat, Jun 29, 2024, 15:16 Dennis German
<dger...@real-world-systems.com <mailto:dger...@real-world-systems.com>>
wrote:
__
I have been having a wonderful discussion with ezmlm.
After reading careful, all her recommendations and subscribing and
acknowledging,
I cannot seem to understand how to post to the mailing list.
++++++++++++++++++++++++++++++++++++++++++++
I am attempting to *
*
*cpan
install DBI*
results in:
...
*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]
dbi_state_lval_p =
(_dbi_state_lval_t)CvXSUB(cv); \
^
DBIXS.h:506:27: note: in expansion of macro ‘_DBISTATE_DECLARE_COMMON’
# define DBISTATE_DECLARE _DBISTATE_DECLARE_COMMON
^~~~~~~~~~~~~~~~~~~~~~~~
Perl.xs:13:1: note: in expansion of macro ‘DBISTATE_DECLARE’
DBISTATE_DECLARE;
^~~~~~~~~~~~~~~~
"/usr/bin/perl" "/usr/share/perl5/vendor_perl/ExtUtils/xsubpp"
-typemap '/usr/share/perl5/ExtUtils/typemap' -typemap
'/home/xgmkbck7ggwp/.cpan/build/DBI-1.643-1/typemap' DBI.xs > DBI.xsc
mv DBI.xsc DBI.c*
Is this a problem on my end?
What you have posted simply appears to be warnings emitted by your
C-compiler when 'cpan' is running its 'make' phase. Behind the scene,
what 'cpan' is doing (to over-simplify) is saying:
$ perl Makefile.PL
$ make
$ make test
$ make install
Those warnings are being emitted in the 2nd step above. They are places
where the maintainers of DBI should be touching up the C-level code, but
they do not prevent DBI from building. Did you see any strings with
'error:' in them being emitted during 'make'? If 'make' completes
successfully, 'cpan' then invokes 'make test' and 'make install'. Did
you get any test failures?
HTH
Jim Keenan