develooper Front page | perl.dbi.users | Postings from February 2001

Please help - DBD::Oracle Installation Problems

From:
Ken Crow
Date:
February 20, 2001 14:03
Subject:
Please help - DBD::Oracle Installation Problems
Message ID:
000701c09b88$8f6ff2f0$784404a7@crn.st.com
I am trying to install DBD::Oracle 1.06 on HP-UX 11.0 using Perl version
5.6.0 for Oracle 7.3.4.

I was able to successfully install the DBI 1.14 interface, but when I try
and install the DBD package, it fails.  The perl Makefile.PL command seems
to work without any errors - just a warning that I might need to use static
linking.  Then when I use the make command, it aborts because it doesn't
like the -Wl argument for the ld (link editor) command in the Makefile
script.  I tried using static linking, and it gets through the "perl
Makefile" and "make" commands, but when I "make perl" or "make test", it
aborts and does a core dump.  I don't think that static linking is the
solution to my problem.  I have tested my ld, and it doesn't recognize -Wl.
When I edit the Makefile script and take out the -Wl argument, it runs fine,
but then when I do a "make test" command it fails (probably because it
needed that option to be properly configured).  Any ideas?

Thanks in advance!

Ken

Here are the warning lines from perl Makefile.PL:

Found header files in rdbms/demo.
Warning: You may need to build using static linking. See the README file.

Warning: By default new modules are installed into your 'site_lib'
directories. Since site_lib directories come after the normal library
directories you must delete any old DBD::Oracle files and directories from
your 'privlib' and 'archlib' directories and their auto subdirectories.


Here is some of the output from the "make" command (I edited it for length):

mkdir blib
mkdir blib/lib
..........
mkdir blib/man1
mkdir blib/man3
cp oraperl.ph blib/lib/oraperl.ph
cp Oracle.pm blib/lib/DBD/Oracle.pm
cp Oraperl.pm blib/lib/Oraperl.pm
    /usr/local/bin/perl -p -e "s/~DRIVER~/Oracle/g" <
/opt/perl5/lib/site_perl/5.6.0/PA-RISC1.1/auto/DBI/Driver.xst > Oracle.xsi




/usr/local/bin/perl -I/opt/perl5/lib/5.6.0/PA-RISC1.1 -I/opt/perl5/lib/5.6.0
/opt/perl5/lib/5.6.0/ExtUtils/xsubpp  -typemap /opt/perl5/l
ib/5.6.0/ExtUtils/typemap Oracle.xs > Oracle.xsc && mv Oracle.xsc Oracle.c




cc -c -I/apps/oracle/7.3.4/rdbms/demo -I/apps/oracle/7.3.4/rdbms/public -I. 
-I/apps/oracle/7.3.4/rdbms/demo -I/apps/oracle/7.3.4/rdbms/d
emo -I/opt/perl5/lib/site_perl/5.6.0/PA-RISC1.1/auto/DBI -Ae -D_LARGEFILE_SO
URCE -D_FILE_OFFSET_BITS=64 -O +Onolimit      -DVERSION=\"1.06\"
  -DXS_VERSION=\"1.06\" +z -I/opt/perl5/lib/5.6.0/PA-RISC1.1/CORE  Oracle.c

cc -c -I/apps/oracle/7.3.4/rdbms/demo -I/apps/oracle/7.3.4/rdbms/public -I. 
-I/apps/oracle/7.3.4/rdbms/demo -I/app
s/oracle/7.3.4/rdbms/demo -I/opt/perl5/lib/site_perl/5.6.0/PA-RISC1.1/auto/D
BI -Ae -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O +
Onolimit      -DVERSION=\"1.06\"  -DXS_VERSION=\"1.06\"
+z -I/opt/perl5/lib/5.6.0/PA-RISC1.1/CORE  oci7.c
...........
Running Mkbootstrap for DBD::Oracle ()
    chmod 644 Oracle.bs
    LD_RUN_PATH="" ld -o blib/arch/auto/DBD/Oracle/Oracle.sl  -b -s -a
shared Oracle.o  dbdimp.o  oci7.o  oci8.o -Wl,-Bimmediate   /apps/ora
cle/7.3.4/lib/libclntsh.sl -l:libcma.sl -lcl -lm -l:libcl.a -L/usr/lib -l:li
bdce.sl -L/usr/lib -l:libdld.sl
ld: Unrecognized argument: -Wl,-Bimmediate
ld: Usage:  ld flags... files...
*** Error exit code 1

Stop.





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About