bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)


From: Nick Gazaloff
Subject: Re: (no subject)
Date: Thu, 24 Jan 2002 13:05:05 +0300 (MSK)

On Thu, 24 Jan 2002, Axel Kittenberger wrote:

> > I've tryed to compile glibc 2.2.5 on my Linux box (RedHat 7.0) and got the
> > following:
> >
> > ../elf/ld-linux.so.2 --library-path
> > ..:../math:../elf:../dlfcn:../nss:../nis:../rt:../resolv:../crypt:../linuxt
> >hreads ./rpcgen -Y ../scripts -c rpcsvc/bootparam_prot.x -o
> > xbootparam_prot.T execv: Permission denied
> > ./rpcgen: C preprocessor failed with exit code 1
> > make[1]: *** [xbootparam_prot.stmp] Error 1
> > make[1]: Leaving directory `/home/Nick/src/glibc-2.2.5/sunrpc'
> > make: *** [sunrpc/others] Error 2
> >
> > I have gcc version 2.96 20000731, glibc 2.2.4, kernel 2.4.17.
> >
> > What could it be?
>
> Take a look where /lib/cpp is pointing at, it's normally a link to the
> "system" preprocesser rpcgen uses. Most people (including me) forget to
> update the symlink when updating/replacing the system compiler.

It points to /usr/bin/cpp, a native cpp from the compiler used.


>
> > And the next question: if I use gcc 3.0.3 fo compling system-wide glibc,
> > will it break existing applications (and possibly all the system)?
>
> Everything you do mess around with vour default libc can quikly break your
> system globally :o)   (In example I had very funny effects that new compiled
> apps do no link, but I installed the new glib in /usr/local only, thought it
> would be safe, however gcc seems to prefer /usr/local/include over
> /usr/include, out of what reasons ever. )

I installed glibc in /usr up to and including version 2.2.4. Everything
was all right.

By the way, could it be a kernel issue? execv is (I suppose) a very
much kernel thing...


I configured glibc with the following:

export CFLAGS="-O2 -march=i686 -mcpu=i686"
export LDFLAGS='-Wl,-O2,--enable-new-dtags'

./configure --prefix=/usr --with-headers=/usr/src/linux/include \
        --enable-add-ons=yes --disable-cvs --disable-debug \
        --disable-profile --with-gd-include=/usr/include \
        --with-gd-lib=/usr/lib --enable-kernel=2.4.0 --with-elf


> - Axel
>


Best regards,
Nick Gazaloff
(GPG Key ID: 4396B2D0, fingerprint: 648E C3FE ACF6 A730 FF52  D717 776D 1CB0 
4396 B2D0)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]