SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Worked like a charm!
...
I wonder if this patch has solved anything functionally for me or is it was just a cosmetic thing?
Thanks again.
LocoMojo
No problem.
It's really just cosmetic but you never know; something may depend on it to work properly.
Is this rkhunter: http://www.rootkit.nl/
If so, unfortunately I can't test it because my main linux box gave up the ghost and all I have is an old laptop that has no room for perl. But I can grep through the code and maybe figure out where it's trying to pull the info from.
It's really just cosmetic but you never know; something may depend on it to work properly.
Is this rkhunter: http://www.rootkit.nl/
If so, unfortunately I can't test it because my main linux box gave up the ghost and all I have is an old laptop that has no room for perl. But I can grep through the code and maybe figure out where it's trying to pull the info from.
Ahh well, at least it'll look good when I show my Windows friends my Linux box. Unknown doesn't look very good and they'll just say, "see, Linux doesn't even know what it's running on".
Yep, that's the rkhunter I'm talking about.
I just found out that Slackware 10.2 isn't supported, but Slackware 10.1 is.
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
Network Connection down!
Please, take a look to 'NIC' in /etc/swaret.conf!
My NIC is fine as I'm able to browse the network with Firefox, email with Thunderbird, use FTP with ncftp, ping servers, etc.
I've touched nothing with the NIC part of my swaret.conf so I'm assuming it has something to do with the head problem.
Obviously something has changed in the patched coreutils package to make head -1 obsolete. I went ahead and backed up my swaret then edited ip_address part like this:
Obviously the patched coreutils package is making some fundamental changes to coreutils rather than just adding a little piece of code to enable uname to report -p -i information. Head -1 was made obsolete, who knows what else has been made obsolete or broken.
The uname deal, as far as I know, is simply cosmetic and has no impact on how things work so it isn't worth it to patch coreutils as it may break a number of things throughout the system.
Originally I wanted to fix the uname problem of reporting -p -i as unknown to get rkhunter working correctly on my system. Fixing uname with the patched coreutils didn't help rkhunter at all.
I'm downgrading back to Pat's coreutils release...screw uname -p -i.
LocoMojo
Edit: Something just dawned on me. I wonder if I'm having this problem because I compiled the patched coreutils package with the new gcc package. Maybe it's gcc-3.4.5 that made head -1 obsolete...kinda makes sense, doesn't it?
Edit2: Just downgraded to the old gcc version (3.3.6) and then compiled and installed the patched coreutils package. Still no go, same problem as above so now I know for sure that it is the patch that is the culprit somehow.
Actually, the problem with these error messages is the fact that a newer glibc version is now present on current Slackware systems. The Slackware coreutils were built with glibc 2.3.2 (for Slackware 10.0) and never re-compiled for newer Slackware releases.
I have a patched Slackware 10.2 package for coreutils uploaded here.
It has a patched uname, my output looks like this:
Quote:
$ uname -a
Linux icculus 2.6.13 #1 Sat Sep 3 21:11:20 PDT 2005 i686 athlon-4 i386 GNU/Linux
and it has properly working versions of head tail etc...
Actually, the problem with these error messages is the fact that a newer glibc version is now present on current Slackware systems. The Slackware coreutils were built with glibc 2.3.2 (for Slackware 10.0) and never re-compiled for newer Slackware releases.
I have a patched Slackware 10.2 package for coreutils uploaded here.
It has a patched uname, my output looks like this:
and it has properly working versions of head tail etc...
Eric
That did the trick, thanks! Is it safe to assume that this patched coreutils package won't have any effect on anything else?
Can you tell me though, what's the difference between uname -m and uname -i (machine hardware name vs. hardware platform)?
My uname is reporting:
Quote:
Linux slack 2.6.14.4 #1 Sun Dec 18 17:58:58 EST 2005 i686 pentium4 i386 GNU/Linux
When I compile stuff without any compiler flags, is it, by default, optimized for i386 or i686?
I have a patched Slackware 10.2 package for coreutils uploaded here.
Eric, I downloaded the patch and the unknowns went bye-bye. Ya done good---thank you!
Will we have to download this patch with the next Slack release or will the coreutils programs be compiled in that release against the correct version of glibc?
If the next release will be compiled properly, will upgradepkg still work against your patched version or will we have to remember to uninstall your patched version before updating Slack to the next release?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.