On Thu, May 26, 2005 at 07:07:30PM +0300, Boris Gorelik wrote: > > On Thu May 26 2005 16:42, you wrote: > > On Thu, May 26, 2005 at 03:43:17PM +0300, Boris Gorelik wrote: > > Not enough. > > You have a standard install of mandriva. > > In addition, you compiled gcc322 with --prefix=pref1. > Correct. > > Up until now, nothing should have changed. Standard binaries continue > > to use the standard shared libs, and if you compile an app it will use > Theoreticaly, yes. But something went wrong, and it is broken now. Again, I > didn't touch any environmental variable (LD_LIBRARY_PATH, PATH, etc). > > > the standard compiler and shared libs. > > Now you want to compile app1 with gcc322. How do you do this? First, you > > need to get to the compiler. You can either run it with the full path, > This is exactly what I do: CC=/opt/gcc322/bin/g++322 > > > or add pref1/bin to your path. Any of these will allow compiling, but > > not running, and standard binaries should not be affected. To run app1, > Again, I need gcc322 only for one app, which is linked statically, so passing > to the linker appropriate -L and -l parameters do the job. > > I know that this sounds strange and funny, so I'll stress it again: > installing > gcc322 in completely isolated directory (/opt/gcc322) breaks lots of already > existing standrd applications. Removing /opt/gcc322 (rm -fr /opt/gcc322) > completely restores all the broken functionality.
OK. First try: install gcc and do ldd on some broken app. Does it use this gcc's lib? Please post the output. Also 'env | grep LD', 'cat /etc/ld.so.conf'. -- Didi ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]