Thanks to your proposals I think I'm near the solution.
Forcing Makefile to point cc compiler with +z option and doing as suggested
in one mail.
perl -pi -e 's/ -lcl\b//g' Makefile
make-> I get a lot of warnings but it works. Doing the make test I get
this:
# make test
PERL_DL_NONLAZY=1 /usr/contrib/bin/perl -Iblib/arch -Iblib/lib
-I/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi -I/opt/perl/lib/5.6.1 -e 'use
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base............../usr/lib/dld.sl: Bad magic number for shared library:
/ora00/oracle8.1.7/lib64/libwtc8.sl
/usr/lib/dld.sl: Exec format error
t/base..............FAILED tests 4-5
Failed 2/5 tests, 60.00% okay
t/general.........../usr/lib/dld.sl: Bad magic number for shared library:
/ora00/oracle8.1.7/lib64/libwtc8.sl
/usr/lib/dld.sl: Exec format error
install_driver(Oracle) failed: Can't load
'blib/arch/auto/DBD/Oracle/Oracle.sl' for module DBD::Oracle: Exec format
error at /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/DynaLoader.pm line
206.
at (eval 1) line 3
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where expected
at t/general.t line 20
t/general...........dubious
Test returned status 255 (wstat 65280, 0xff00)
t/long............../usr/lib/dld.sl: Bad magic number for shared library:
/ora00/oracle8.1.7/lib64/libwtc8.sl
/usr/lib/dld.sl: Exec format error
Can't load 'blib/arch/auto/DBD/Oracle/Oracle.sl' for module DBD::Oracle:
Exec format error at
/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/DynaLoader.pm line 206.
at t/long.t line 4
Compilation failed in require at t/long.t line 4.
BEGIN failed--compilation aborted at t/long.t line 4.
t/long..............dubious
Test returned status 255 (wstat 65280, 0xff00)
t/ph_type.........../usr/lib/dld.sl: Bad magic number for shared library:
/ora00/oracle8.1.7/lib64/libwtc8.sl
/usr/lib/dld.sl: Exec format error
Can't load 'blib/arch/auto/DBD/Oracle/Oracle.sl' for module DBD::Oracle:
Exec format error at
/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/DynaLoader.pm line 206.
at t/ph_type.t line 20
Compilation failed in require at t/ph_type.t line 20.
BEGIN failed--compilation aborted at t/ph_type.t line 20.
t/ph_type...........dubious
Test returned status 255 (wstat 65280, 0xff00)
t/plsql............./usr/lib/dld.sl: Bad magic number for shared library:
/ora00/oracle8.1.7/lib64/libwtc8.sl
/usr/lib/dld.sl: Exec format error
Can't load 'blib/arch/auto/DBD/Oracle/Oracle.sl' for module DBD::Oracle:
Exec format error at
/opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi/DynaLoader.pm line 206.
at t/plsql.t line 17
Compilation failed in require at t/plsql.t line 17.
BEGIN failed--compilation aborted at t/plsql.t line 17.
t/plsql.............dubious
Test returned status 255 (wstat 65280, 0xff00)
t/reauth............skipped test on this platform
Failed Test Status Wstat Total Fail Failed List of Failed
------------------------------------------------------------------------------------------------------------------------------------
t/base.t 5 2 40.00% 4-5
t/general.t 255 65280 ?? ?? % ??
t/long.t 255 65280 ?? ?? % ??
t/ph_type.t 255 65280 ?? ?? % ??
t/plsql.t 255 65280 ?? ?? % ??
1 test skipped.
Failed 5/6 test scripts, 16.67% okay. 2/5 subtests failed, 60.00% okay.
*** Error exit code 2
I remove this libwtc8.sl from the Makefile first, and I get the same
results, removing it from Makefile.PL idem. Looking in several files I
found a mk.pm that still point to this library.
If I use gcc compiler and I force Makefile to point to 64 bits oracle
librarys, I can do the make too, but when I do 'make test', I get a similar
error but with Oracle.sl library and looking to mk.pm file I have noticed
that it points to 32 bits librarys.
Can anyone help me? Do you have any idea?
Thanks in advance.