ora2pg icon indicating copy to clipboard operation
ora2pg copied to clipboard

DBD::Oracle

Open pandason125 opened this issue 6 months ago • 1 comments

DBD::Oracle is hard to be installed , | ^~~~ oci8.c:2337:23: note: directive argument in the range [-128, 127] 2337 | sprintf(s_tz_hour," %02d",tz_hour); | ^~~~~~~ In file included from /usr/include/stdio.h:888, from /usr/lib64/perl5/CORE/perlio.h:41, from /usr/lib64/perl5/CORE/iperlsys.h:50, from /usr/lib64/perl5/CORE/perl.h:4043, from /root/perl5/lib/perl5/x86_64-linux-thread-multi/auto/DBI/DBIXS.h:24, from Oracle.h:50, from oci8.c:12: /usr/include/bits/stdio2.h:38:10: note: ‘__builtin___sprintf_chk’ output between 4 and 6 bytes into a destination of size 3 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ oci8.c:2335:25: warning: ‘%03d’ directive writing 3 bytes into a region of size 2 [-Wformat-overflow=] 2335 | sprintf(s_tz_hour," %03d",tz_hour); | ^~~~ oci8.c:2335:23: note: directive argument in the range [-9, -1] 2335 | sprintf(s_tz_hour," %03d",tz_hour); | ^~~~~~~ In file included from /usr/include/stdio.h:888, from /usr/lib64/perl5/CORE/perlio.h:41, from /usr/lib64/perl5/CORE/iperlsys.h:50, from /usr/lib64/perl5/CORE/perl.h:4043, from /root/perl5/lib/perl5/x86_64-linux-thread-multi/auto/DBI/DBIXS.h:24, from Oracle.h:50, from oci8.c:12: /usr/include/bits/stdio2.h:38:10: note: ‘__builtin___sprintf_chk’ output 5 bytes into a destination of size 3 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ oci8.c:2340:23: warning: ‘%02d’ directive writing between 2 and 4 bytes into a region of size 2 [-Wformat-overflow=] 2340 | sprintf(s_tz_min,":%02d", tz_minute); | ^~~~ oci8.c:2340:21: note: directive argument in the range [-128, 127] 2340 | sprintf(s_tz_min,":%02d", tz_minute); | ^~~~~~~ In file included from /usr/include/stdio.h:888, from /usr/lib64/perl5/CORE/perlio.h:41, from /usr/lib64/perl5/CORE/iperlsys.h:50, from /usr/lib64/perl5/CORE/perl.h:4043, from /root/perl5/lib/perl5/x86_64-linux-thread-multi/auto/DBI/DBIXS.h:24, from Oracle.h:50, from oci8.c:12: /usr/include/bits/stdio2.h:38:10: note: ‘__builtin___sprintf_chk’ output between 4 and 6 bytes into a destination of size 3 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:519, from /usr/lib64/perl5/CORE/perl.h:1342, from /root/perl5/lib/perl5/x86_64-linux-thread-multi/auto/DBI/DBIXS.h:24, from Oracle.h:50, from oci8.c:12: In function ‘strncpy’, inlined from ‘init_lob_refetch’ at oci8.c:4463:3: /usr/include/bits/string_fortified.h:95:10: warning: ‘__builtin___strncpy_chk’ specified bound depends on the length of the source argument [-Wstringop-overflow=] 95 | return __builtin___strncpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 96 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ oci8.c: In function ‘init_lob_refetch’: oci8.c:4463:3: note: length computed here 4463 | strncpy(syn_name,tablename,strlen(tablename)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rm -f blib/arch/auto/DBD/Oracle/Oracle.so gcc -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld -L/usr/local/lib -fstack-protector-strong Oracle.o dbdimp.o oci8.o -o blib/arch/auto/DBD/Oracle/Oracle.so
-L/usr/lib/oracle/12.2/client64/lib -lclntsh -lperl \

chmod 755 blib/arch/auto/DBD/Oracle/Oracle.so Manifying 13 pod documents [root@oracle DBD-Oracle-1.80]# ^C [root@oracle DBD-Oracle-1.80]# make test "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Oracle.bs blib/arch/auto/DBD/Oracle/Oracle.bs 644 PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/.t

pandason125 avatar Jun 19 '25 07:06 pandason125

Yes sometime installing DBD::Oracle is a pain but I don't see any error in your report.

darold avatar Jun 20 '25 19:06 darold