Ananth s. wrote:

> im having a small problem with libc. i recently upgraded some of
> the packages (gcc, kde). Mine is a slackware distribution and these
> packages were installed from a redhat 5.0 cd. Kde and a few other
> applications require libc v6 but many of the slackware programs
> are using libc v5... While compiling a program with gcc/g++ , it
> is linking with libc v5 instead of libc v6. Due to this, im not
> able to compile any of the kde applications. Can anyone tell me
> how i can make gcc to link with libc v6 instead of libc v5 ?

You need a version of gcc that supports libc-6 as a target. Then, you
can use the -b switch, e.g. `gcc -b i586-pc-linux-gnu ...' to specify
which target you wish to compile for.

There's a guide to installing libc-6 on a libc-5 system, which
explains compiling gcc for use with both. Alternatively, you may be
able to find a pre-built gcc which supports both targets (you should
have both i586-pc-linux-gnu and i586-pc-linux-gnulibc1 subdirectories
in /usr/lib/gcc-lib).

http://huizen.dds.nl/~frodol/glibc/intro.html

> i tried using LD_PRELOAD=/lib/libc.so.5 but that gave other conflicting
> libm files....is there any other sol that the LD_PRELOAD option??

There's no point trying to preload the wrong library versions.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to