Re: [ROOT] root with RedHat 7.3 and gcc-3.1

From: Alexandr Malusek (Alexandr.Malusek@imv.liu.se)
Date: Sat Jul 27 2002 - 21:11:57 MEST


Mihaela Bondila <Mihaela.Bondila@cern.ch> writes:

>         Hello,
> 
>         Has anyone compiled root on RedHat 7.3 with gcc-3.1 ? 
> 
>         I get the following error:
> 
>      build/unix/depend.sh main/src/h2root.d "-pipe -Wall -Woverloaded-virtual
>    -fPIC -Iinclude  -D_REENTRANT" main/src/h2root.cxx > main/src/h2root.d
>    gmake: *** [main/src/h2root.d] Error 127

I've seen the same error on SuSE 8.0 with gcc-3.1. In my case, it was
caused by the command "su" which unset LD_LIBRARY_PATH and thus
bin/rmkdepend failed to load the gcc-3.1 specific libstdc++.so.4
library and didn't execute. build/unix/depend.sh then returned the
exit status 127 and make stopped.

The solution was to manually set PATH and LD_LIBRARY_PATH after "su"
or to use "su -" which loaded /etc/profile.local where these variables
were set on SuSE Linux.

Re-running the make command without fixing the LD_LIBRARY_PATH could
also be used as a workaround. The dependency files created by make
were then empty.

--
Alexandr.Malusek@imv.liu.se



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:01 MET