cpan install DBI fails
[email protected] (Dennis German) Sat, 29 Jun 2024 22:09:35 -0400
| Newsgroups | perl.dbi.users |
|---|---|
| Message-ID | <[email protected]> |
--------------vV4rLL70OsvDub1gYT938S9x
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Thank you very much for your prompt replies.
1) platforms: (sorry details were in my original .original email)
1a) My linux (mint)
1b) Raspberry Pi Linux dapi2 5.10.103+ #1529 Tue Mar 8 12:19:18 GMT
*2022* armv6l GNU/Linux; cpan (v2.20)
After the gcc *warnings:*
chmod 755 blib/arch/auto/DBI/DBI.so
chmod: cannot access '*blib/arch/auto/DBI/DBI.so': No such file* or
directory
make: *** [Makefile:655: blib/arch/auto/DBI/DBI.so] Error 1
TIMB/DBI-1.643.tar.gz
/usr/bin/make -- *NOT OK*
1b) hosted at goDaddy Linux
p3plzcpnl505092.prod.phx3.secureserver.net
4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024
x86_64 x86_64 x86_64 GNU/Linux
After the gcc *warnings:*
rm -f blib/arch/auto/DBI/DBI.so
gcc -lpthread -shared -Wl,-z,relro -Wl,-z,now
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/local/lib
-fstack-protector-strong DBI.o -o blib/arch/auto/DBI/DBI.so \
-lperl \
blib (ODD?)
ex
lib
t
chmod 755 blib/arch/auto/DBI/DBI.so
chmod: cannot access '*blib/arch/auto/DBI/DBI.so': No such file* or
directory
make: *** [Makefile:655: blib/arch/auto/DBI/DBI.so] Error 1
TIMB/DBI-1.643.tar.gz
/usr/bin/make PREFIX=/home/xgmkbck7ggwp/perl/usr
PREFIX=/home/xgmkbck7ggwp/perl/usr -- *NOT OK*
1c) raspberry Pi
*answer*:/home/dgerman > uname -a
Linux answer 6.6.31+rpt-rpi-v7 #1 SMP Raspbian 1:6.6.31-1+rpt1
(*2024*-05-29) armv7l GNU/Linux
answer:/home/dgerman > cpan
Loading internal logger. Log::Log4perl recommended for better logging
Many addtional warning "notes'
ending with
rm -f blib/arch/auto/DBI/DBI.so
arm-linux-gnueabihf-gcc -shared -L/usr/local/lib
-fstack-protector-strong DBI.o -o blib/arch/auto/DBI/DBI.so \
\
n 29 22:00 blib
n 29 22:00 ex
n 29 22:00 lib
n 29 22:00 t
chmod 755 blib/arch/auto/DBI/DBI.so
/bin/chmod: cannot access 'blib/arch/auto/DBI/DBI.so': No such file
or directory
'blib/arch/auto/DBI/DBI.so' could not be accessed
make: *** [Makefile:657: blib/arch/auto/DBI/DBI.so] Error 1
TIMB/DBI-1.643.tar.gz
/usr/bin/make -- NOT OK
These systems fail in the same manner
2) I don't find cpan*m.*
3) No tests were run
On 6/29/24 18:48, James E Keenan wrote:
> On 6/29/24 18:22, C.J. Collier wrote:
>>
>> 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
>> <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>>
>>
>> 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'? I
> f 'make' completes successfully, 'cpan' then invokes 'make test' and
> 'make install'.
> Did you get any test failures?
>
> HTH
> Jim Keenan
--------------vV4rLL70OsvDub1gYT938S9x
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Thank you very much for your prompt replies.</p>
<p>1) platforms: (sorry details were in my original .original
email)<br>
1a) My linux (mint) <br>
</p>
<p> 1b) Raspberry Pi L<font
face="Courier New, Courier, monospace">inux dapi2 5.10.103+
#1529 Tue Mar 8 12:19:18 GMT <b>2022</b> armv6l GNU/Linux; cpan
(v2.20)</font></p>
<p>After the gcc <b>warnings:</b><br>
</p>
<blockquote>
<p><font face="Courier New, Courier, monospace">chmod 755
blib/arch/auto/DBI/DBI.so<br>
chmod: cannot access '<b>blib/arch/auto/DBI/DBI.so': No such
file</b> or directory<br>
make: *** [Makefile:655: blib/arch/auto/DBI/DBI.so] Error 1<br>
TIMB/DBI-1.643.tar.gz<br>
/usr/bin/make -- <b>NOT OK</b></font><br>
</p>
</blockquote>
<p> 1b) hosted at goDaddy Linux
p3plzcpnl505092.prod.phx3.secureserver.net
4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC
2024 x86_64 x86_64 x86_64 GNU/Linux</p>
<p> After the gcc <b>warnings:</b></p>
<blockquote>
<p><font face="Courier New, Courier, monospace">rm -f
blib/arch/auto/DBI/DBI.so<br>
gcc -lpthread -shared -Wl,-z,relro -Wl,-z,now
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/local/lib
-fstack-protector-strong DBI.o -o blib/arch/auto/DBI/DBI.so
\<br>
-lperl \<br>
<br>
<br>
blib </font>(ODD?)<font
face="Courier New, Courier, monospace"><br>
ex<br>
lib<br>
t<br>
chmod 755 blib/arch/auto/DBI/DBI.so<br>
chmod: cannot access '<b>blib/arch/auto/DBI/DBI.so': No such
file</b> or directory<br>
make: *** [Makefile:655: blib/arch/auto/DBI/DBI.so] Error 1<br>
TIMB/DBI-1.643.tar.gz<br>
/usr/bin/make PREFIX=/home/xgmkbck7ggwp/perl/usr
PREFIX=/home/xgmkbck7ggwp/perl/usr -- <b>NOT OK</b></font></p>
</blockquote>
<p>1c) raspberry Pi <br>
</p>
<blockquote>
<p><font face="Courier New, Courier, monospace"><b>answer</b>:/home/dgerman
> uname -a<br>
Linux answer 6.6.31+rpt-rpi-v7 #1 SMP Raspbian 1:6.6.31-1+rpt1
(<b>2024</b>-05-29) armv7l GNU/Linux<br>
answer:/home/dgerman > cpan<br>
Loading internal logger. Log::Log4perl recommended for better
logging</font></p>
</blockquote>
<p>Many addtional warning <font
face="Courier New, Courier, monospace">"notes' <br>
</font></p>
<p><font face="monospace">ending with</font></p>
<blockquote>
<p><font face="Courier New, Courier, monospace">rm -f
blib/arch/auto/DBI/DBI.so<br>
arm-linux-gnueabihf-gcc -shared -L/usr/local/lib
-fstack-protector-strong DBI.o -o blib/arch/auto/DBI/DBI.so
\<br>
\<br>
<br>
n 29 22:00 blib<br>
n 29 22:00 ex<br>
n 29 22:00 lib<br>
n 29 22:00 t<br>
chmod 755 blib/arch/auto/DBI/DBI.so<br>
/bin/chmod: cannot access 'blib/arch/auto/DBI/DBI.so': No such
file or directory<br>
'blib/arch/auto/DBI/DBI.so' could not be accessed<br>
make: *** [Makefile:657: blib/arch/auto/DBI/DBI.so] Error 1<br>
TIMB/DBI-1.643.tar.gz<br>
/usr/bin/make -- NOT OK</font><br>
<br>
</p>
</blockquote>
<p>These systems fail in the same manner<br>
</p>
<p>2) I don't find cpan<b>m.</b></p>
<p>3) No tests were run<br>
</p>
<div class="moz-cite-prefix">On 6/29/24 18:48, James E Keenan wrote:<br>
</div>
<blockquote type="cite"
cite="mid:[email protected]">On
6/29/24 18:22, C.J. Collier wrote:
<br>
<blockquote type="cite"><br>
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?
<br>
<br>
On Sat, Jun 29, 2024, 15:16 Dennis German
<<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
<a class="moz-txt-link-rfc2396E" href="mailto:[email protected]"><mailto:[email protected]></a>> wrote:
<br>
<br>
<br>
<br>
I am attempting to *
<br>
*
<br>
<br>
*cpan
<br>
install DBI*
<br>
<br>
results in:
<br>
<br>
...
<br>
*In file included from Perl.xs:7:
<br>
Perl.xs: In function ‘dbi_get_state’:
<br>
DBIXS.h:498:32: <font size="4"><b>warning</b></font>: cast
between incompatible function types
<br>
from ‘void (*)(PerlInterpreter *, CV *)’ {aka ‘void
(*)(struct
<br>
interpreter *, struct cv *)’} to ‘dbistate_t **
(*)(PerlInterpreter
<br>
*)’ {aka ‘struct dbistate_st ** (*)(struct interpreter *)’}
<br>
[-Wcast-function-type]
<br>
dbi_state_lval_p =
<br>
(_dbi_state_lval_t)CvXSUB(cv); \
<br>
^
<br>
DBIXS.h:506:27: note: in expansion of macro
‘_DBISTATE_DECLARE_COMMON’
<br>
# define DBISTATE_DECLARE _DBISTATE_DECLARE_COMMON
<br>
^~~~~~~~~~~~~~~~~~~~~~~~
<br>
Perl.xs:13:1: note: in expansion of macro ‘DBISTATE_DECLARE’
<br>
DBISTATE_DECLARE;
<br>
^~~~~~~~~~~~~~~~
<br>
"/usr/bin/perl"
"/usr/share/perl5/vendor_perl/ExtUtils/xsubpp" -typemap
'/usr/share/perl5/ExtUtils/typemap' -typemap
<br>
'/home/xgmkbck7ggwp/.cpan/build/DBI-1.643-1/typemap' DBI.xs
> DBI.xsc
<br>
mv DBI.xsc DBI.c*
<br>
<br>
Is this a problem on my end?
<br>
<br>
</blockquote>
<br>
What you have posted simply appears to be warnings emitted by your
C-compiler when 'cpan' is running its 'make' phase. <br>
Behind the scene, what 'cpan' is doing (to over-simplify) is
saying:
<br>
<br>
$ perl Makefile.PL
<br>
$ make
<br>
$ make test
<br>
$ make install
<br>
<br>
Those warnings are being emitted in the 2nd step above. <br>
They are places where the maintainers of DBI should be touching up
the C-level code, but they do not prevent DBI from building. <br>
Did you see any strings with 'error:' in them being emitted during
'make'? I<br>
f 'make' completes successfully, 'cpan' then invokes 'make test'
and 'make install'. <br>
Did you get any test failures?
<br>
<br>
HTH
<br>
Jim Keenan
<br>
</blockquote>
</body>
</html>
--------------vV4rLL70OsvDub1gYT938S9x--