LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-18-2002, 01:13 AM   #1
UB_KMA
Member
 
Registered: Jul 2002
Location: Austin,TX
Distribution: A mash of SourceMage, Lunar, Slack, Manny, and RedHat all smushed together
Posts: 94

Rep: Reputation: 15
Question glibc-2.2.5


Just upgraded from source to glibc-2.2.5, to clear up an instalation problem where a program was complaining about 2.1.x (software still won't install, but that is not my trouble now -- that may be bad media). The upgrade included a linuxthreads add on package. I am getting an error when initiating a few programs -- "/usr/local/lib/libpthread.so.0:undefined symbol:_dl_cpuclock_offset" All I really know is it is related to linuxthreads, as the libpthread.so's are installed with that. Tried recompiling and installing various things (upgraded a few other outdated libraries and such in the process), but have had no luck with this error. I can still run many things that use glibc extensively, but unfortunately the ones that won't perform are some of my most used .

Any suggestions would be greatly appriciated
Thanks!
 
Old 10-18-2002, 01:53 AM   #2
LNXman
Member
 
Registered: Jul 2002
Location: California (USA)
Distribution: Slackware
Posts: 97

Rep: Reputation: 15
Did you by any chance also added the crypt, and linuxthreads sub directories to your source before compiling?

If you did not, then you can download them from here.

Make sure you read the README in the glibc archive so you understand what you need to do.

GL

P.S. I don't believe you may need the crypt package, but I am not sure about that. I have not compiled glibc in a while. . . I am sure the README will help you with that.

/edit: Added P.S.

Last edited by LNXman; 10-18-2002 at 01:56 AM.
 
Old 10-18-2002, 02:25 AM   #3
UB_KMA
Member
 
Registered: Jul 2002
Location: Austin,TX
Distribution: A mash of SourceMage, Lunar, Slack, Manny, and RedHat all smushed together
Posts: 94

Original Poster
Rep: Reputation: 15
Well, added the linuxthreads directory, and the linuxthreads.db directory, but not the crypt (?which I will look into, thanks) -- everything seemed to chug along fine in the make install, and it referenced writing linuxthreads files in it's feedback.

I found some references to an out of date ld.so being the possible culpret to this problem (did a search with "alltheweb" and apparently it is a common problem, with no obvious solution I could find).

So, now I have a new problem...hey, at least I'm busy. Installed the most recent version of ld.so, and....then I got the _dl_cpu_clock_offfset when I tried to simply "startx"!

I deleted the file libpthread.so.0 file, and got X running again, but a simple "ls" command in bash gets the offset error (citing librt.so.1). Now my DCgui runs, tho (which was one of the programs I lost to the old so.0 error). Sooo, I am going to RE compile, yet again the glibc, and at the same time look for some alternate method to install libthreads, which still seems to be the offending thing, somehow. Also, I am going to remove all traces of libthread related files and see if I get my shell functionality back. Not that I'll leave it that way, it is just a process to narrow down what is going on.

In the meantime, any other suggestions are truly appriciated.

Last edited by UB_KMA; 10-18-2002 at 03:24 AM.
 
Old 10-18-2002, 03:45 AM   #4
LNXman
Member
 
Registered: Jul 2002
Location: California (USA)
Distribution: Slackware
Posts: 97

Rep: Reputation: 15
You just reminded me why I rarely compile glibc unless there exists a major bug fix. Whenever you upgrade glibc (with whatever other packages you decide to include), it can pretty much affect (ALMOST) every single application you may have in your system. Even if you compile it correctly.

As you are finding out. . .

BTW, are you running ldconfig -v after you done with the installation? By running the above command, you can make sure your new libs are set up right and updated.

Also, make sure you remove the old instance of glibc-2.1 with the package manager. . .

HOWEVER, I would just suggest to you to get the slackware packages for glibc-2.2.5 instead, that way it can be much easier for you to upgrade the libraries. If you decide to get the package for Slackware, you can get the slackware package for glibc here and simply use the upgradepkg <old_package>%<new_package> command. Make sure you get the i18n package as well, and install it (or upgrade it if you can).

That way, it will be easier for you to manage it in the future for any other future upgrades.

GL
 
Old 10-18-2002, 04:17 AM   #5
UB_KMA
Member
 
Registered: Jul 2002
Location: Austin,TX
Distribution: A mash of SourceMage, Lunar, Slack, Manny, and RedHat all smushed together
Posts: 94

Original Poster
Rep: Reputation: 15
Argh! Woulda used the slack packs in the first place, but the download at the Project was empty (I'm bookmarking your source, although I'm sure it won't last forever). Lets see if I can restore things to an acceptable state, thanks for the help!
 
Old 10-18-2002, 04:49 AM   #6
UB_KMA
Member
 
Registered: Jul 2002
Location: Austin,TX
Distribution: A mash of SourceMage, Lunar, Slack, Manny, and RedHat all smushed together
Posts: 94

Original Poster
Rep: Reputation: 15
Welp, everything is back the way it used to be...right after I installed the upgrade . Dcgui giving me the cpuclock_offset error. At least now I know that if I totally screw everything around, I can put it back the way it was...to this point, at least.
I must say, though LNXman, u have been quite a help...and I always come out of these things wiser thanks to contributors like yourself.

Back to the problem, tho...I believe that the slack pack of glibc had the threads additions built in...so I'm not sure how that still bears on my previous assumption that the problem was there, as I have installed all the slack packages for glibc now. Back to researching, I guess. Lemme know if anything else comes to mind.
 
Old 10-18-2002, 06:05 AM   #7
UB_KMA
Member
 
Registered: Jul 2002
Location: Austin,TX
Distribution: A mash of SourceMage, Lunar, Slack, Manny, and RedHat all smushed together
Posts: 94

Original Poster
Rep: Reputation: 15
Well, as the day (night) ends..it stands that if I delete libpthreads.so.0 I can run whatever I wish. Rebooting restores the file, and the problem returns, until it is deleted again.
 
Old 10-18-2002, 06:37 AM   #8
UB_KMA
Member
 
Registered: Jul 2002
Location: Austin,TX
Distribution: A mash of SourceMage, Lunar, Slack, Manny, and RedHat all smushed together
Posts: 94

Original Poster
Rep: Reputation: 15
Aight fixed it, and will post this solution also in reply to the other poor soul having the same problem elsewhere on this forum.

The linuxthreads package that was included as an add-on with the glibc I compiled and installed (the newest version available from the GNU peeps) corrupted my poor slack.

I uninstalled the packages glibc-2.2.5 and glibc-solibs, then going in by way of the distro cd (as after those deletions nothing worked, nor was expected to), I removed everything that started with libpthread (rm libpthread*) from /user/local/lib in my installation (these all shoulda gone bye bye when I removed those packages, but they didn't..aha!). Then using pkgtool, I reinstalled the glibc slack packages from where I had saved them in my home directory (didn't wanna put the old ones from the original distro on again).
No more worries.
Thanks again.
 
Old 10-18-2002, 12:18 PM   #9
LNXman
Member
 
Registered: Jul 2002
Location: California (USA)
Distribution: Slackware
Posts: 97

Rep: Reputation: 15
Good job.

I seems you may have had a lot of garbage lying around from your previous attemps to install glibc. Way to keep chucking at it!!!

L8
 
Old 11-07-2003, 01:30 AM   #10
dfong63
LQ Newbie
 
Registered: Nov 2003
Posts: 13

Rep: Reputation: 0
upgrading glibc

i'm having a problem similar to yours. but i don't understand everything that was said in this exchange. could you please post a brief recap of what you did in order to upgrade glibc?

i tried compiling glibc from scratch, but when i installed it my system became unbootable. i had to use the rescue partition to recover.

i tried installing glibc from various rpm's, but there were so many circular dependencies that i gave up.

i never did succeed in getting the new glibc installed.

the reason i want to install a new glibc is so that i can run the new mozilla. i also tried building mozilla, just to see what would happen. the build gives an error, complaining about not being able to find _dl_cpuclock_offset .

i could sure use some expert advice...

thanks in advance.
 
Old 11-07-2003, 06:17 PM   #11
UB_KMA
Member
 
Registered: Jul 2002
Location: Austin,TX
Distribution: A mash of SourceMage, Lunar, Slack, Manny, and RedHat all smushed together
Posts: 94

Original Poster
Rep: Reputation: 15
Well, that was a year ago...but reading my posts and rmembering to the best of my ability, the problems arise when the old glibc isn't completely removed when a new one is installed.

Remove glibc and glibc-solibs for your system, either through package management or "make-uninstall". Use your rescue disk to acces your instalation and go to your old /usr/local/lib (or wherever libpthread* is kept in your distro) and #rm libpthread*. At this point it would help to know what distro you were running to say for sure how to proceed, but if it uses package management of some kind (if you are having circular dependancy problems sounds like you might be using apt ) install your new glibc using the commands appropriate to your distro to ignore dependancies.
 
Old 11-08-2003, 06:24 PM   #12
dfong63
LQ Newbie
 
Registered: Nov 2003
Posts: 13

Rep: Reputation: 0
hey, thanks for your quick answer.

i'm running a redhat distribution. it's started out as an old version of redhat, but it's got pieces of redhat 7. i'm kind of squeamish about removing glibc, but i'll consider it. it just seems to me like there would have to be a better way.
 
  


Reply



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
problem installing glibc-2.3.2-4.80.i686, glibc-common-2.3.2-4.80.8.i386.rpm martianpackets Red Hat 8 05-01-2009 03:22 PM
Compiling glibc-2.3.5 or glibc 2.3.5-r1 on Gentoo fails ghrellin Linux - Software 2 07-19-2005 01:01 AM
Replacing glibc using linuxthreads for glibc using nptl (native positx thread library CestusGW Linux From Scratch 4 01-20-2005 07:26 AM
ncsd, glibc, and glibc-common conflicts during LAMP install beaker911 Linux - Software 0 12-30-2004 02:31 PM
glibc 2.3.2 => glibc 2.3.3 causes bash & syslog issues natetheros Red Hat 1 09-27-2004 01:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:42 AM.

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