|  | @@ -64,6 +64,16 @@
 | 
	
		
			
				|  |  |        <para><emphasis role="strong">GCC-4.1.2</emphasis> including the C++
 | 
	
		
			
				|  |  |        compiler, <command>g++</command> (Versions greater than &gcc-version; are
 | 
	
		
			
				|  |  |        not recommended as they have not been tested)</para>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      <note><para>On some distributions, there have been reports that some
 | 
	
		
			
				|  |  | +      libraries used by gcc can be in an inconsistent state and that this
 | 
	
		
			
				|  |  | +      interferes with building some LFS packages.  To check this, look in
 | 
	
		
			
				|  |  | +      /usr/lib and possibly /usr/lib64 for libgmp.la, libmpfr.la, and
 | 
	
		
			
				|  |  | +      libmpc.la.  Either all three should be present or absent, but not only
 | 
	
		
			
				|  |  | +      one or two.  If the problem exists on your system, either rename or
 | 
	
		
			
				|  |  | +      delete the .la files or install the appropriate missing
 | 
	
		
			
				|  |  | +      package.</para></note>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      </listitem>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <listitem>
 | 
	
	
		
			
				|  | @@ -184,7 +194,13 @@ echo 'main(){}' > dummy.c && g++ -o dummy dummy.c
 | 
	
		
			
				|  |  |  if [ -x dummy ]
 | 
	
		
			
				|  |  |    then echo "g++ compilation OK";
 | 
	
		
			
				|  |  |    else echo "g++ compilation failed"; fi
 | 
	
		
			
				|  |  | -rm -f dummy.c dummy</literal>
 | 
	
		
			
				|  |  | +rm -f dummy.c dummy
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +for lib in lib{gmp,mpfr,mpc}.la; do
 | 
	
		
			
				|  |  | +  echo $lib: $(if find /usr/lib* -name $lib|
 | 
	
		
			
				|  |  | +               grep -q $lib;then :;else echo not;fi) found
 | 
	
		
			
				|  |  | +done
 | 
	
		
			
				|  |  | +unset lib</literal>
 | 
	
		
			
				|  |  |  EOF
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  bash version-check.sh</userinput></screen>
 |