public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] I want to RTFM more about lib-compat etc
@ 2006-10-26 17:52 Alan McKinnon
  2006-10-26 18:08 ` kashani
  2006-10-26 20:43 ` Richard Fish
  0 siblings, 2 replies; 3+ messages in thread
From: Alan McKinnon @ 2006-10-26 17:52 UTC (permalink / raw
  To: gentoo-user

Hi,

I thought I had a fairly good understanding of how shared libs and lib 
seelction works in Linux - good enough to know what compile options to 
use, etc. But it seems that was a wrong assumption.

I'm trying to get a third party binary app (Sybase database ASE-15) to 
run on Gentoo and it's proving to be ... difficult. Previously, it 
would run if lib-compat was installed, but no more - I get mysterious 
seg fault errors.

My system is currently ~x86 and up to date, especially glibc-2.5. Sybase 
expects 2.3.something and while I understand that it needs compatible 
libraries installed, I find I don't know enough to determine exactly 
which libs will be used on my system.

So I need some docs. I badly want to RTFM, I'm just having some trouble 
finding the correct M to R. Google and gentoo.org lead me to either 
very basic stuff that I already know, or way too complex docs suitable 
for developers. I want something in between, on a level for an ebuild 
maintainer that tells me how ld, libtool and the tool chain works and 
how to determine the differences between glibc versions to I can get 
this critter to work, and know why it then works.

Anyone got any good/suitable links to share?

alan

p.s. please please please no replies to tell me to tell the vendor to 
recompile the app or release the source. That ain't gonna happen 
anytime soon. I know this because one of my other addresses is 
@sybase.co.za :-)
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] I want to RTFM more about lib-compat etc
  2006-10-26 17:52 [gentoo-user] I want to RTFM more about lib-compat etc Alan McKinnon
@ 2006-10-26 18:08 ` kashani
  2006-10-26 20:43 ` Richard Fish
  1 sibling, 0 replies; 3+ messages in thread
From: kashani @ 2006-10-26 18:08 UTC (permalink / raw
  To: gentoo-user

Alan McKinnon wrote:
> Hi,
> 
> I thought I had a fairly good understanding of how shared libs and lib 
> seelction works in Linux - good enough to know what compile options to 
> use, etc. But it seems that was a wrong assumption.
> 
> I'm trying to get a third party binary app (Sybase database ASE-15) to 
> run on Gentoo and it's proving to be ... difficult. Previously, it 
> would run if lib-compat was installed, but no more - I get mysterious 
> seg fault errors.
> 
> My system is currently ~x86 and up to date, especially glibc-2.5. Sybase 
> expects 2.3.something and while I understand that it needs compatible 
> libraries installed, I find I don't know enough to determine exactly 
> which libs will be used on my system.

libcompat provides libc5 and libc6 libraries NOT glibc libs. I'm betting 
your issue is that glibc 2.5 is not 2.3. If you've got another Gentoo 
box still on 2.3 I'd use it or I think you can install glibc 2.3 in a 
limited way, but you're on your own for that one.

I'd also use ldd on the binary and see what libs it's expecting. Here's 
a snip of one for Apache.

nms01 ~ # ldd /usr/sbin/apache2
         linux-gate.so.1 =>  (0xffffe000)
         libz.so.1 => /lib/libz.so.1 (0xb7f8d000)
         libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0xb7f59000)
         libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0xb7e58000)
         libaprutil-0.so.0 => /usr/lib/libaprutil-0.so.0 (0xb7e45000)

kashani
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] I want to RTFM more about lib-compat etc
  2006-10-26 17:52 [gentoo-user] I want to RTFM more about lib-compat etc Alan McKinnon
  2006-10-26 18:08 ` kashani
@ 2006-10-26 20:43 ` Richard Fish
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Fish @ 2006-10-26 20:43 UTC (permalink / raw
  To: gentoo-user

On 10/26/06, Alan McKinnon <alan@linuxholdings.co.za> wrote:
> Anyone got any good/suitable links to share?

Hi Alan,

Sorry I don't have any mid-level guides on this stuff.  One trick to
share though.  If you absolutely want to know all the libraries that a
program loads (including those that it dlopen's), use strace: strace
-s 128 -f -e open <program to trace> <program args>...

If that loads any libstdc++, I would guess you problem is conflicting C++ ABIs.

My next best guess would be that sybase has some problem with nptl.

-Richard
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-10-26 20:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-26 17:52 [gentoo-user] I want to RTFM more about lib-compat etc Alan McKinnon
2006-10-26 18:08 ` kashani
2006-10-26 20:43 ` Richard Fish

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox