This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu 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]

troubles after glibc installation


Hello, Gurus!

I migrate from libc5 to glibc2 (2.1.3) on my linux box
(Slackware 3 or so).

Glibc have to be primary library.

Made all as written in GLIBC2-HOWTO.

../configure  --enable-add-ons=linuxthreads,crypt,localedata \
   --prefix=/usr --with-headers=/usr/src/linux-2.2.14/include

make
make check

# move old include headers
mv /usr/include /usr/i586-linuxlibc5/include
mkdir /usr/include

#relink linux source (now I have 2.0.36 but want use 2.2)
rm /usr/src/linux
ln -s /usr/src/linux-2.2.14 /usr/src/linux

# make links to linux includes
ln -s /usr/src/linux/include/linux /usr/include/linux
ln -s /usr/src/linux/include/asm /usr/include/asm


Ready to install

make install

All done.

======= tst.c =========
#include <stdio.h>

main()
{
    printf("hello, world!\n");
}
======= tst.c =========

$ gcc tst.c -o tst
$ ldd tst
        libc.so.6 => /lib/libc.so.6 (0x40016000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
$ ./tst
hello, world!


All works, but....

When I try to compile file with
#include <stdlib.h>

I get messages

In file included from tst.c:1:
/usr/include/stdlib.h:346: parse error before `random'
/usr/include/stdlib.h:346: warning: data definition has no type or storage class
/usr/include/stdlib.h:370: parse error before `int32_t'
/usr/include/stdlib.h:370: warning: no semicolon at end of struct or union
/usr/include/stdlib.h:371: warning: data definition has no type or storage class
/usr/include/stdlib.h:372: parse error before `*'
/usr/include/stdlib.h:372: warning: data definition has no type or storage class
/usr/include/stdlib.h:376: parse error before `*'
/usr/include/stdlib.h:376: warning: data definition has no type or storage class
/usr/include/stdlib.h:377: parse error before `}'
/usr/include/stdlib.h:380: parse error before `int32_t'


int32_t is undefined :(

What's wrong? How I can fix this?

I try to install headers of glibc2.1.2 (from Slackware 7.0 glibc
package) but get the same error :(


GLibc compiled with egcs-1.0.3 (linked to libc.so.5)
After installation of glibc I install egcs-2.91.66 (linked to libc.so.6)

Thanks in advance.


-- 
Mike,
NP Maginfocenter,
Magnitogorsk, RF
e-mail: blacky@maginfo.net



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