Operating System - HP-UX
1753830 Members
8726 Online
108806 Solutions
New Discussion юеВ

Re: Error Installing perl DBI/DBD for Oracle (-Wl,+2 argument)

 
Joe Schutz
Occasional Contributor

Error Installing perl DBI/DBD for Oracle (-Wl,+2 argument)

I am on a HPUX B11.0.0 (9000/800/L2000-44)
and running Oracle 8.1.6.0.0.

I downloaded the 64 bit versions from
Merijn's HP-UX software for ITRC members:
(http://mirrors.develooper.com/hpux)
- "perl 5.8.5 + defined-or prepared for
Oracle + DBI 1.43 + tk 804.027
built with gcc-3.4.1"
- "gcc 3.4.1 + binutils 2.15 + gdb 6.1.1"

I was able to successfully install perl 5.8.5 and gcc 3.4.1 and modified my PATH.
PATH=$PATH:/opt/perl64/bin/perl
PATH=$PATH:/maint/pa20_64/bin

Next I succesfully installed DBI version 1.20
perl Makefile.PL
make
make install

When attempting to install DBD version 1.12
I received the following error during make.
Unrecognized argument: -Wl,+s Fatal Error
(referring to the "ld" command).

Any suggestions would be appreciated.

Thanks
Joe





2 REPLIES 2
Florian Heigl (new acc)
Honored Contributor

Re: Error Installing perl DBI/DBD for Oracle (-Wl,+2 argument)

last time I built it I was told that DBD+DBI on hp-ux was a guarantee for trouble, I got it working after building perl 5.6.1 myself, but that was mostly to resolve threading issues, Your problem seems to be unrelated.

If You've not yet been able to solve this, please be so kind to post some more of the make output.
yesterday I stood at the edge. Today I'm one step ahead.
H.Merijn Brand (procura
Honored Contributor

Re: Error Installing perl DBI/DBD for Oracle (-Wl,+2 argument)

*WHY* did you try to install DBI-1.20 over the already shipped DBI-1.43 ?????

--8<---
+s Indicates that at run-time, the shared library loader can
use the environment variable SHLIB_PATH and LD_LIBRARY_PATH
(64-bit only) to locate shared libraries needed by the
executable output file that were specified with either the
-l or -l: option. The environment variables should be set to
a colon-separated list of directories. If both +s and +b are
used, their relative order on the command line indicates
which path list will be searched first (see the +b option).
-->8---

Well, this '+s' is an option to HP's 'ld' command, and since you are now using GNU ld (as gcc64 does), it is an unrecognized option.

I think, but I'm not sure, that more recent versions of DBI (1.42 and up) do this correctly by default.

# /usr/local/pa20_64/bin/ld --help -v

will show you the options that your GNU ld supports

# ln -s /main/pa20_64 /usr/local/pa20_64

is another wise option to start with, since gcc wishes to stay in the location where it was build

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn