glibc compiling problems.

Everett Simonds/AUS/Lotus Everett_Simonds at lotus.com
Thu Nov 1 16:08:31 PST 2001


When I was attempting to setup glibc for the first time I get a fair
way through the compile when it spits the following error out at me:

make  -C synrpc others
make[2]: Entering directory `/usr/src/glibc-2.2.4/sunrpc'
/usr/src/glibc-build/elf/ld-linux.so.2 --libary-path
/usr/src/glibc-build:/usr/src/glibc-build/math:/usr/src/glibc-build/elf:/usr/src/glibc-build/dlfcn:/usr/sr
c/glibc-build/nss:/usr/src/glibc-build/nis:/usr/src/glibc-build/rt:usr/src/glibc-build/resolv:/usr/src/gli
bc-build/crypt:/usr/src/glibc-build/linuxthreads
/user/src/glibc-build/sunrpc/rpcgen -Y`gcc
-print-file-name=cpp | sed 's|/spp$||'` -c rpcsvc/bootparam_prot.x -o
/usr/src/glibc-build/sunrpc/xbootparam_prot.T
cannot find C preprocessor: cpp/cpp
/usr/src/glibc-build/sunrpc/rpcgen: C preprocessor failed with exit code 1
make[2]: *** [/usr/src/glibc-build/sunrpc/xbootparam_prt.stmp] Error 1
make[2]: Leaving directory `/usr/src/glibc-2.2.4/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/usr/src/glibc-2.2.4'
make: *** [all] Error 2

Now at first glance I thought that I might have messed up on the
gcc compile, and it's having a problem compiling C++ programs.

However, the following does work:

cd /tmp
cat > test.cpp << "EOF"
/* Use some C++ stuff to be sure we're
 * compiling C++ code and not C code.
 */
class foo { foo(void) { } virtual ~foo(void) { } };

int main(void)
{
    foo bar;
    return 0;
}
EOF
gcc test.cpp -c

Now attempting to link fails naturally enough, there's no glibc yet.

Any thoughts?

Thanks,
Everett "Bryce" Simonds

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list