LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-07-2009, 04:58 AM   #1
devika.pict
LQ Newbie
 
Registered: Feb 2009
Posts: 6

Rep: Reputation: 0
Error while upgrading glibc-2.4 for kernel-2.4.2-2 (Red Hat 7.1)


Hello Everybody,
I m trying to upgrade to glibc-2.4 . I thought I had followed the install docs completely, but I am getting the following error when I compile it on my PC running Red Hat 7.1 (2.4.2-2 kernel)

-I.. -I../libio -I.
> -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o
> /root/Desktop/glibc-build/signal/raise.o -MD -MP
> -MF /root/Desktop/glibc-build/signal/raise.o.dt -MT
> /root/Desktop/glibc-build/signal/raise.o
> ../nptl/sysdeps/unix/sysv/linux/raise.c: In function `raise':
> ../nptl/sysdeps/unix/sysv/linux/raise.c:42: error: `__NR_gettid' undeclared
> (first use in this function)
> ../nptl/sysdeps/unix/sysv/linux/raise.c:42: error: (Each undeclared
> identifier is reported only once
> ../nptl/sysdeps/unix/sysv/linux/raise.c:42: error: for each function it
> appears in.)
> ../nptl/sysdeps/unix/sysv/linux/raise.c:71: error: `__NR_tkill' undeclared
> (first use in this function)
> make[2]: *** [/root/Desktop/glibc-build/signal/raise.o] Error 1
> make[2]: Leaving directory `/root/Desktop/glibc-2.4/signal'
> make[1]: *** [signal/subdir_lib] Error 2
> make[1]: Leaving directory `/root/Desktop/glibc-2.4'
> make: *** [all] Error 2

I have all requirement softwares up-to-date and I use Red Hat 7.1 i386
2.4.2-2.

In order to update glibc is it must to update your kernel to a 2.6 version, or i will not be able to compile because glibc now uses the "New Posix Threading Library (NPTL)" instead of "LinuxThreads."

PS: Please do not answer me, that I should upgrade to newer distro,
because I need this version of ancient linux to be able to work with
software I need.
Is there any way around it.

Thanks
 
Old 02-07-2009, 11:33 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,502

Rep: Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617
off hand i would read " raise.c " and see what #includes are there and if you are missing one from your system
that is causing line 42 to through the error
that error looks like a missing " *.h "

and i was going to ask....
but i am curious WHAT software would need such an ancient OS ?
and you did do a google/linux search "__NR_gettid"
http://www.google.com/linux
http://www.google.com/linux?hl=en&q=...id&btnG=Search
 
Old 02-09-2009, 02:10 PM   #3
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by devika.pict View Post
Hello Everybody,

PS: Please do not answer me, that I should upgrade to newer distro,
because I need this version of ancient linux to be able to work with
software I need.
Is there any way around it.

Thanks
If you need this ancient Linux to run ancient software, why
update glibc at all ?

Some other program requires newer glibc ?

If this a case you can try following approach:

Use Ermine (http://magicErmine.com) or statifier (http://statifier.sf.net)
To pack your ancient software both of them create from dynamically linked executable and all it's shared libraries one self-contained executable.

This executable can be run on virtually any Linux distribution and it will not interfere with host's libraries.

Statifier is licensed under GPL. Ermine is commercial, but it works better on systems with memory randomization. (nearly all modern distros)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can i upgrade the red hat EL4 ES kernel to AS Kernel without upgrading the whole OS? oreaba Linux - Newbie 6 08-19-2008 02:08 PM
Upgrading kernel for red hat 9 oasisbhrnw99 Linux - Newbie 3 10-20-2004 06:47 AM
Problem in upgrading Kernel to 2.6 in Red Hat Linux saqib Red Hat 4 04-19-2004 04:51 AM
Error after upgrading to Red Hat 8.0 pldobs Linux - Software 2 11-13-2002 10:48 PM
Upgrading Kernel to 2.4.4 with RED HAT 6.1 froycard Linux - Software 3 05-10-2001 11:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration