LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Glibc 2.4 installation in Slackware 11 (http://www.linuxquestions.org/questions/slackware-14/glibc-2-4-installation-in-slackware-11-a-499822/)

irfanhab 11-08-2006 01:59 PM

Glibc 2.4 installation in Slackware 11
 
Hi,

Why doesnt slackware 11 ship with glibc 2.4??? Well anyway I require it for SystemTap, now I'm trying to compile glibc 2.4 from the sources, but the make install fails (make and configure succeed), at this stage:

Quote:

cannot set up thread-local storage: set_thread_area failed when setting up thread-local storage

make[2]: *** [/opt/glib2.4//share/zoneinfo/Africa/Algiers] Error 127
make[2]: Leaving directory `/root/glibc-2.4/timezone'
make[1]: *** [timezone/subdir_install] Error 2
make[1]: Leaving directory `/root/glibc-2.4'
make: *** [install] Error 2
What could be wrong??

Regards

bsdunix 11-09-2006 08:57 PM

Quote:

Why doesnt slackware 11 ship with glibc 2.4???
Search the changelog and you find:

"... Yes, I have seen that shiny-looking glibc-2.4 release on ftp.gnu.org, but glibc-2.4 completely drops support for
linuxthreads, and therefore will not support vanilla Linux 2.4.x kernels. I don't think we're quite ready for that yet around here."

http://www.slackware.com/changelog/current.php?cpu=i386

irfanhab 11-10-2006 01:28 AM

So what do I need to do to install it in slackware? compile a kernel without POSIX support?

bsdunix 11-10-2006 09:19 AM

Quote:

So what do I need to do to install it in slackware? compile a kernel without POSIX support?
I don't have an answer for you off the top of my head, but I found this thread which someone tried compiling glibc-2.4 on Slackware:

"compiling glibc-2.4 error"
http://www.linuxquestions.org/questi...d.php?t=427565

I also found this in the glibc-2.4 README:

"When working with Linux kernels, the GNU C Library version 2.4 is intended primarily for use with Linux kernel version 2.6.0 and later. We only support using the NPTL implementation of pthreads, which is now the default configuration. Most of the C library will continue to work on older Linux kernels and many programs will not require a 2.6 kernel to run correctly. However, pthreads and related functionality will not work at all on old kernels and we do not recommend using glibc 2.4 with any Linux kernel prior to 2.6"

If your using a 2.6 kernel and are able to successfully compile glibc-2.4, I suspect you'll probably have to re-build all the binaries that came with the default Slackware install so you won't run into problems, as they are built with glibc-2.3.6. Someone else on this list can probably confirm that.

jong357 11-11-2006 10:50 PM

I compiled 2.4 on Slack 11 just for giggles. While it made just fine with no errors, the test suite was something else. No way I'd use that glibc. ;)
Code:

make[2]: *** [/tmp/glibc-build/localedata/tst_iswalnum.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_iswalpha.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_iswcntrl.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_iswctype.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_iswdigit.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_iswgraph.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_iswlower.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_iswprint.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_iswpunct.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_iswspace.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_iswupper.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_iswxdigit.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_mblen.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_mbrlen.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_mbrtowc.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_mbsrtowcs.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_mbstowcs.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_mbtowc.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_strcoll.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_strfmon.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_strxfrm.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_swscanf.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_towctrans.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_towlower.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_towupper.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wcrtomb.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wcscat.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wcschr.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wcscmp.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wcscoll.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wcscpy.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wcscspn.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wcslen.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wcsncat.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wcsncmp.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wcsncpy.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wcspbrk.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wcsrtombs.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wcsspn.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wcsstr.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wcstod.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wcstok.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wcstombs.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wcswidth.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wcsxfrm.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wctob.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wctomb.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wctrans.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wctype.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst_wcwidth.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst-mbswcs6.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst-xlocale1.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/tst-xlocale2.out] Error 1
make[2]: *** [/tmp/glibc-build/localedata/sort-test.out] Error 1
make[1]: *** [localedata/tests] Error 2
make[2]: *** [/tmp/glibc-build/intl/tst-codeset.out] Error 1
make[2]: *** [/tmp/glibc-build/intl/tst-gettext3.out] Error 1
make[2]: *** [/tmp/glibc-build/intl/tst-gettext4.out] Error 1
make[2]: *** [/tmp/glibc-build/intl/tst-gettext5.out] Error 1
make[1]: *** [intl/tests] Error 2
make[2]: *** [/tmp/glibc-build/catgets/de/libc.cat] Error 1
make[2]: *** [/tmp/glibc-build/catgets/test1.cat] Error 1
make[1]: *** [catgets/tests] Error 2
make[2]: *** [/tmp/glibc-build/stdio-common/tst-swprintf.out] Error 1
make[1]: *** [stdio-common/tests] Error 2
make[2]: *** [/tmp/glibc-build/libio/tst-swscanf.out] Error 1
make[1]: *** [libio/tests] Error 2
make[2]: *** [/tmp/glibc-build/string/tst-strxfrm.out] Error 1
make[1]: *** [string/tests] Error 2
make[2]: *** [/tmp/glibc-build/wcsmbs/tst-btowc.out] Error 1
make[2]: *** [/tmp/glibc-build/wcsmbs/tst-mbrtowc2.out] Error 1
make[1]: *** [wcsmbs/tests] Error 2
make[2]: *** [/tmp/glibc-build/time/tst-strptime.out] Error 1
make[2]: *** [/tmp/glibc-build/time/tst-ftime_l.out] Error 1
make[1]: *** [time/tests] Error 2
make[2]: *** [/tmp/glibc-build/posix/tst-fnmatch.out] Error 1
make[2]: *** [/tmp/glibc-build/posix/tst-regexloc.out] Error 1
make[2]: *** [/tmp/glibc-build/posix/tst-regex.out] Error 1
make[2]: *** [/tmp/glibc-build/posix/bug-regex5.out] Error 1
make[2]: *** [/tmp/glibc-build/posix/bug-regex19.out] Error 1
make[2]: *** [/tmp/glibc-build/posix/bug-regex22.out] Error 1
make[2]: [/tmp/glibc-build/posix/annexc.out] Error 1 (ignored)
make[1]: *** [posix/tests] Error 2
make[2]: *** [/tmp/glibc-build/nptl/tst-cond8.out] Error 1
make[2]: *** [/tmp/glibc-build/nptl/tst-cancel24.out] Error 1
make[2]: *** [/tmp/glibc-build/nptl/tst-cancelx4.out] Error 1
make[2]: *** [/tmp/glibc-build/nptl/tst-cancelx5.out] Error 1
make[2]: *** [/tmp/glibc-build/nptl/tst-cancelx16.out] Error 1
make[2]: *** [/tmp/glibc-build/nptl/tst-cancelx20.out] Error 1
make[2]: *** [/tmp/glibc-build/nptl/tst-cancelx21.out] Error 1
make[2]: *** [/tmp/glibc-build/nptl/tst-cleanupx4.out] Error 1
make[1]: *** [nptl/tests] Error 2
make: *** [check] Error 2

EDIT: I should say this isn't really a stock slackware tho... I have installed 2.6.18 kernel headers with make headers_install along with my own custom built 2.6.18.2 kernel. I just installed a couple packages that needed 2.6 headers and forgot to remove the new headers. Xorg-7.1.1 is on here as well tho that shouldn't make a diff.

It also looks like your building inside the source tree, which you probably shouldn't be doing. ALSO.... Is there any info before that?. Just for refrence, you need to post what's before that as well in order to see what's going on. Even if it's just a block of code that had no errors. That's the customary starting point for posting errors.

Make sure your running a newer 2.6 kernel and then try again.


All times are GMT -5. The time now is 04:26 PM.