Re: make error-> ld: Unrecognized argument: -Wl,+b...
- From: hjp@xxxxxxxxx (Peter J. Holzer)
- Date: Thu, 21 Feb 2008 10:37:34 +0100
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
- References:
- make error-> ld: Unrecognized argument: -Wl,+b...
- From: Paula J Capacio
- Re: make error-> ld: Unrecognized argument: -Wl,+b...
- From: Jonathan Leffler
- make error-> ld: Unrecognized argument: -Wl,+b...
- Prev by Date: Re: Redefinition of target errors
- Next by Date: Re: DBD::ODBC - default timeout is 30 seconds instead of none
- Previous by thread: Re: make error-> ld: Unrecognized argument: -Wl,+b...
- Next by thread: RE: make error-> ld: Unrecognized argument: -Wl,+b...
- Index(es):
Relevant Pages
|
|