This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Tell gcc/glibc not to use symbols higher than X.Y


On 11/22/2011 11:45 AM, Yura Pakhuchiy wrote:
> On Tue, 2011-11-22 at 11:21 -0500, Carlos O'Donell wrote:
>> On 11/22/2011 4:37 AM, Yura Pakhuchiy wrote:
>>> 1) To use LSB. Seems to be right decision on the first glance, but it
>>> looks like distributions do not install LSB loader by default. At least
>>> Ubuntu 10.04 and CentOS 5.7 do not have any /lib/ld-lsb.so* installed by
>>> default. So binary will not work in these distributions out of the box.
>>> More over I get some misleading error message like "file not found",
>>> rather than something more meaningful like "LSB not installed, do
>>> apt-get install lsb" when I try to run it on Ubuntu without LSB
>>> installed.
>>
>> Use LSB. Require your users to install base LSB packages. Better yet when
>> you build your RPM or DEB, depend upon the required LSB packages.
> 
> Will it be badly wrong to use LSB, but revert loader
> to /lib/ld-linux.so.2 (having in mind that only glibc will be
> shared-linked and everything else linked statically)? It seems to me
> this will work on any LSB-compliant distro, but will not require LSB
> loader to be installed. Or I misunderstood something?
> 

Your question about reverting the loader doesn't make sense.

Follow the LSB documentation and come back if you have a problem.

Note that the compiler helper routines are also shared e.g. libgcc.so,
so it's not just glibc. If you use C++ you also have libstdc++.so and
exception handling to deal with.

If you call any network functions that use NSS then you are *not*
statically linked and will call upon all the other libraries required
to load and run NSS modules.

Cheers,
Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]