[gentoo-user] I want to RTFM more about lib-compat etc
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
Re: [gentoo-user] I want to RTFM more about lib-compat etc
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 = (0xe000) 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
Re: [gentoo-user] I want to RTFM more about lib-compat etc
On 10/26/06, Alan McKinnon [EMAIL PROTECTED] 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