Re: make error-> ld: Unrecognized argument: -Wl,+b...



On 2008-02-19 10:22:21 -0800, Jonathan Leffler wrote:
On Feb 19, 2008 10:04 AM, Capacio, Paula J <PCAPACIO@xxxxxxxxx> wrote:
Hello,
I am getting the following error from make (excerpt only full list
follows)
[...]
ld: Unrecognized argument:
-Wl,+b/usr/oracle/client/10.2/lib:/usr/oracle/client/10.2/rdbms/lib
Fatal error.
*** Error exit code 1



Nasty - especially since you're not a C programmer.

Systems that build Perl using 'ld' directly as the way to build shared
objects give me the heebie-jeebies each time - and your Perl appears to have
been built that way. The '-Wl,+b...' notation is an instruction to the C
compiler to pass the '+b...' to the loader; the loader itself doesn't know
how to deal with -Wl options.

We can debate whether this is a bug in DBD::Oracle or not - or a bug in the
way Perl was built on your machine. Since Perl mainly works OK and
DBD::Oracle doesn't, I'd be more inclined to say DBD::Oracle is at fault,
but DBD::Informix (which I know a lot better than DBD::Oracle) faces roughly
similar issues and my recommendation is to build Perl so it uses the C
compiler to build shared objects rather than using 'ld' (or /usr/bin/ld)
directly.

I second that recommendation. Paula seems to use an Activestate perl:

nfig_heavy=Config_dynamic.pl -Dcf_by=ActiveState
-Dcf_email=support@ActiveState.
com'

At least on PA-RISC, perl needs to be built in a special way (described
on README.hpux) to be able to use DBD::Oracle. The perl interpreter
shipped with HP-UX isn't built that way and while I don't know about the
ActiveState perl interpreter, I suspect that it isn't either. So I would
recommend to always build your own perl on HP-UX (preferrably with the
HP C/ANSI-C compiler).

hp


--
_ | Peter J. Holzer | If I wanted to be "academically correct",
|_|_) | Sysadmin WSR | I'd be programming in Java.
| | | hjp@xxxxxxxxx | I don't, and I'm not.
__/ | http://www.hjp.at/ | -- Jesse Erlbaum on dbi-users

Attachment: pgpuPwU2ao4Dp.pgp
Description: PGP signature



Relevant Pages

  • Re: Problem installing DBD-Oracle
    ... where perl has been built using sun's compiler, ... Perl that comes with Solaris seems to be built with the solaris compiler ...
    (comp.lang.perl.modules)
  • [Fwd: Options for Compiling Perl 5.8.5 Running on an UltraSparc with Solaris 2.9?]
    ... I am looking at upgrading my present Perl compiler from version ... The new version will be built with GCC ... installing my add-on modules, then I probably need to avoid ...
    (perl.dbi.users)
  • RE: Installing DBD::File via CPAN
    ... I built this directly from source. ... > Did you build Perl from source, or install via a RPM or binary distro? ... > CPAN module so I wasn't expecting to get myself confused with multiple ...
    (perl.dbi.users)
  • Microsoft ODBC for Oracle problem
    ... This is perl, v5.8.2 built for MSWin32-x86-multi-thread ... ActiveState is a division of Sophos. ... advise the sender and delete the message and attachments immediately. ...
    (perl.dbi.users)
  • Re: Use gcc instead cc_r spamassassin
    ... > erri wrote: ... > OS's I dealt with and always built my own with gcc. ... > with the same compiler you built perl with. ...
    (comp.unix.aix)