MLUG: Re: [MLUG] gcc/oracle/ld question
Re: [MLUG] gcc/oracle/ld question
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On Sun, Oct 17, 2004 at 11:18:16PM -0500, Jason McIntosh wrote:
> *grin* Have you ever tried to do this?  I hesitate to mess with ANY 
> heavily used libraries such as this, due to the fact that things like 
> cp/ls/etc. depend on a lot of those libraries.
> Further, the issue seems to be more the linker - ld.  It's like the 
> 64bit version of ld is trying to do the linking and thus causing the 
> problem.  Anyways, I did try your suggestion - no luck.  Any other 
> suggestions out there?
> Thanks!
> Jason

It's the shared libraries that will mess up cp/ls etc. Mess with those 
and hose your whole system! But the ones ending in .a are static and 
only needed at compile-time.

No other suggestions.  well, try replacing /usr/bin/ld with a shell 
script with the proper -A value to the linker:

(untested code)
#!/bin/sh
exec ld.real -A elf32-i386 $@

Regards,
Mark
EMAIL:PROTECTED

> 
> /--------------------------------------|---------------------------\
> | Jason McIntosh                       | CELL: 573-424-7612        |
> | Webmaster, thinker, Programmer, etc. | WORK: 573-884-3865        |
> | http://poetshome.com/                |                           |
> |------------------------------------------------------------------|
> |"How should I know if it works?  That's what beta testers are     |
> |for.  I only coded it."                                           |
> |(Attributed to Linus Torvalds, somewhere in a posting)            |
> \--------------------------------------|---------------------------/
> GnuPG Key:  
> http://poetshome.com/about/jmcintosh_mlug.missouri.edu.gpgkey
> On Oct 17, 2004, at 5:42 PM, Mark Rages wrote:
> 
> >On Sat, Oct 16, 2004 at 09:00:57PM -0500, Jason McIntosh wrote:
> >>I'm fighting here to get Oracle installed on a gentoo AMD64 based
> >>system using Oracle's 9iR2 AMD64 release.  However, hitting a few
> >>snags.  I've got the emulation libraries installed, which includes:
> >>/usr/lib32/libc_nonshared.a
> >>for applications that need it.  Of course, /usr/lib/libc_nonshared.a 
> >>is
> >>the 64bit version that normal apps use.  The trick is that Oracle 
> >>keeps
> >>looking at the 64bit library, and I can't get it to look at the other
> >>for some reason.  It's doing this when it's trying to create several
> >>libraries using gcc.  Suggestions anyone?  ld keeps reporting 
> >>"skipping
> >>incompatible /usr/lib/libc_nonshared.a when searching for
> >>/usr/lib/libc_nonshared.a".  Suggestions?
> >>Thanks!
> >>Jason
> >
> >Have you tried the ol' switcheroo?  That is, temporarily move the 
> >32-bit
> >library to /usr/lib and finish installing Oracle.  Because it's a 
> >static
> >library, you should be able to fix things back after the install and
> >Oracle will still work.
> >
> >Regards,
> >Mark
> >EMAIL:PROTECTED
> >
> >
> >
> >>
> >>/--------------------------------------|---------------------------\
> >>| Jason McIntosh                       | CELL: 573-424-7612        |
> >>| Webmaster, thinker, Programmer, etc. | WORK: 573-884-3865        |
> >>| http://poetshome.com/                |                           |
> >>|------------------------------------------------------------------|
> >>|"How should I know if it works?  That's what beta testers are     |
> >>|for.  I only coded it."                                           |
> >>|(Attributed to Linus Torvalds, somewhere in a posting)            |
> >>\--------------------------------------|---------------------------/
> >>GnuPG Key:
> >>http://poetshome.com/about/jmcintosh_mlug.missouri.edu.gpgkey
> >>
> >
> >>_______________________________________________
> >>members mailing list
> >>EMAIL:PROTECTED
> >>http://mlug.missouri.edu/mailman/listinfo/members
> >
> >
> >-- 
> >You think that it is a secret, but it never has been one.
> >_______________________________________________
> >members mailing list
> >EMAIL:PROTECTED
> >http://mlug.missouri.edu/mailman/listinfo/members
> 
> _______________________________________________
> members mailing list
> EMAIL:PROTECTED
> http://mlug.missouri.edu/mailman/listinfo/members

-- 
You think that it is a secret, but it never has been one.
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members