LINUX.ORG.RU

Трабла при сборке glibc-20031210.


0

0

Вообщем дело было так.
1. Распаковал.
2. Набрал ./configure, он мне ответил что надо это делать в отдельной дериктории.
3. Скопировал configure в ./conf
4. Ещё раз запустил конфигуратор.
5. После некоторого времени он мне говорит:

checking for egrep... (cached) grep -E
checking installed Linux kernel header files... 2.0.10 or later
*** On GNU/Linux systems it is normal to compile GNU libc with the
*** `linuxthreads' add-on. Without that, the library will be
*** incompatible with normal GNU/Linux systems.
*** If you really mean to not use this add-on, run configure again
*** using the extra parameter `--disable-sanity-checks'.

6. Смутившись, даю ключ --disable-sanity-checks.
7. Ещё раз конфигурю.
8. И после некоторого времени получаю:

gcc assert.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -mpreferred-stack-boundary=2 -DFATAL_PREPARE_INCLUDE='<fatal-prepare.h>' -I../include -I. -I/home/alexandr/Downloads/glibc-20031210/conf/assert -I.. -I../libio -I/home/alexandr/Downloads/glibc-20031210/conf -I../sysdeps/i386/elf -I../sysdeps/unix/sysv/linux/i386/i686 -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386/i686 -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386/i686 -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I /lib/modules/2.6.6/build/include -include ../include/libc-symbols.h -o /home/alexandr/Downloads/glibc-20031210/conf/assert/assert.o -MD -MP -MF /home/alexandr/Downloads/glibc-20031210/conf/assert/assert.o.dt
In file included from ../include/pthread.h:1,
from ../sysdeps/unix/sysv/linux/fatal-prepare.h:19,
from assert.c:42:
/usr/include/pthread.h:1:26: no include path in which to find pthread.h
assert.c: In function `__assert_fail':
assert.c:53: error: `pthread_setcancelstate' undeclared (first use in this function)
assert.c:53: error: (Each undeclared identifier is reported only once
assert.c:53: error: for each function it appears in.)
assert.c:53: error: `pthread_setcancelstate' used prior to declaration
assert.c:53: warning: implicit declaration of function `pthread_setcancelstate'
assert.c:53: error: `PTHREAD_CANCEL_DISABLE' undeclared (first use in this function)
make[2]: *** [/home/alexandr/Downloads/glibc-20031210/conf/assert/assert.o] Ошибка 1
make[2]: Leaving directory `/home/alexandr/Downloads/glibc-20031210/assert'
make[1]: *** [assert/subdir_lib] Ошибка 2
make[1]: Leaving directory `/home/alexandr/Downloads/glibc-20031210'
make: *** [all] Ошибка 2

Попрошу новую версию не прелагать, ну разве что это точно поможет, а то просто качать 13 метров неохота.

Заранее спасибо!!!

★★★★★

Ответ на: комментарий от gassique

А чё там в доке я не видел?! Вроде делаю как там наисано.
А вот linuxthreads поставить тоже не получилось :(
bash-2.05b$ make
../Makeconfig:84: ../config.make: No such file or directory
../Makerules:738: не задано имя файла для `include'
../Makerules:757: не задано имя файла для `include'
The GNU C library has not been configured.
Run `configure' to configure it before building.
Try `configure --help' for more details.
make: *** [../config.status] Ошибка 1
bash-2.05b$ ./configure
bash-2.05b$

А конфигуратор, как видно, ничего не далает.

cyclon ★★★★★
() автор топика

тебе ж написали простым английским языком что компиляясь с --disable-sanity-checks ты получишь кривущую с точки зрения линукса либу. оно тебе надо? надо наоборот, не --disable-sanity-checks, а опцию которая включает компиляцию с тредами (она не дефолтная). как пишется точно счас не помню, смотри ./configure --help

anonymous
()
Ответ на: комментарий от cyclon

продолжать читать документацию. обратить внимание на --enable-add-ons в configure от glibc, в частности на тему --enable-add-ons=linuxthreads. читать надо ВНИМАТЕЛЬНО.

gassique ★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.