LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-07-2007, 07:30 PM   #1
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Red face oops, I stripped /usr/lib and /usr/X11R6/lib !


I accidentally ran strip on all the files in /usr/lib and (via symlink) many in /usr/X11R6/lib ... hehe

I don't think it got around to stripping all the files in /usr/X11R6/lib cuz xserver crashed before then followed by a system lockup Damn !

Anyway, it's ok, I just reinstalled everything in the x directory of the slackware disk and it seems to work ok ... except that other stuff seems to be acting strangely ... weird error messages and stuff. Guess it's time for a reinstall ? I was planning one anyway cuz I messed up some other stuff earlier (with the nvidia driver).

I'd just like to ask ... why did strip cause the crash ? Was it that xserver was running at the time the command was executed ?

Morals:

1) Don't run strip on things that are running and in general on things in /usr/lib and especially /usr/X11R6/lib (even if by accident ... I was actually only trying to strip one file in there, before I realized I was stripping all of them xserver went down )

2) Don't symlink from /usr/lib to /usr/X11R6/lib. I did it to install virtualbox, but forgot to undo it (besides, there was a better way ... it came a bit late tho)
 
Old 02-08-2007, 10:13 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Many programs need some of the symbols in the objects which are stripped out by the full strip command. you should study up on the use of strip anyway for the differences between -strip, -strip-unneeded -strip-debug
Usually libs should never be fully stripped -usually strip-unneeded is okay.
 
Old 02-08-2007, 09:27 PM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928

Original Poster
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Oh, ok then ... really I have no need for stripping things anyway ... especially when it can have such side-effects.
 
  


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
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy defa0009 Linux - General 5 03-02-2014 07:57 AM
Couldn't open RGB_DB ' /usr/X11R6/lib/X11/rgb lilohatea Debian 2 01-30-2006 07:57 PM
ld not finding libraries in /usr/X11R6/lib gustavderdrache Linux - Software 2 01-16-2006 04:34 PM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM
Installation failed: file /usr/X11R6/lib/libGL.so.1.2 from install of fglrx-glc22-4. witchy2k1 Linux - Newbie 13 01-25-2004 05:26 AM

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

All times are GMT -5. The time now is 02:59 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