LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-11-2013, 09:49 PM   #1
fluffybunnyuk
LQ Newbie
 
Registered: May 2013
Distribution: Hardened Cross LFS
Posts: 15

Rep: Reputation: 0
PPL-1.0 Patch


This is a modification that allows PPl-1.0 to build with gmp-5.1.1,mpfr-3.1.2,mpc-1.0.1.

Source : http://trac.assembla.com/VDR-M7x0/br...patch?rev=1272

Code:
Modify: ppl-1.0/src/mp_std_bits.cc

old 	new 	 
25	25	#include "ppl-config.h" 
26	26	#include "mp_std_bits.defs.hh" 
27	27	 
 	28	#if __GNU_MP_VERSION < 5 \ 
 	29	  || (__GNU_MP_VERSION == 5 && __GNU_MP_VERSION_MINOR < 1) 
 	30	 
28	31	const bool std::numeric_limits<mpz_class>::is_specialized; 
29	32	const int std::numeric_limits<mpz_class>::digits; 
30	33	const int std::numeric_limits<mpz_class>::digits10; 
… 	… 	 
70	73	const bool std::numeric_limits<mpq_class>::traps; 
71	74	const bool std::numeric_limits<mpq_class>::tininess_before; 
72	75	const std::float_round_style std::numeric_limits<mpq_class>::round_style; 
 	76	 
 	77	#endif // __GNU_MP_VERSION < 5 
 	78	       // || (__GNU_MP_VERSION == 5 && __GNU_MP_VERSION_MINOR < 1) 

Modify: ppl-1.0/src/mp_std_bits.defs.hh

old 	new 	 
38	38	#endif // defined(PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS) 
39	39	void swap(mpq_class& x, mpq_class& y); 
40	40	 
 	41	#if __GNU_MP_VERSION < 5 \ 
 	42	  || (__GNU_MP_VERSION == 5 && __GNU_MP_VERSION_MINOR < 1) 
 	43	 
41	44	namespace std { 
42	45	 
43	46	#ifdef PPL_DOXYGEN_INCLUDE_IMPLEMENTATION_DETAILS 
… 	… 	 
164	167	 
165	168	} // namespace std 
166	169	 
 	170	#endif // __GNU_MP_VERSION < 5 
 	171	       // || (__GNU_MP_VERSION == 5 && __GNU_MP_VERSION_MINOR < 1) 
 	172	 
167	173	#include "mp_std_bits.inlines.hh" 
168	174	 
169	175	#endif // !defined(PPL_mp_std_bits_defs_hh)
Enjoy!!!

Emma

p.s. forgot to say make check works out fine unsurprisingly but thought id mention it just in case.

Last edited by fluffybunnyuk; 05-11-2013 at 09:56 PM.
 
  


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
Hello ppl!! gowdham LinuxQuestions.org Member Intro 1 01-28-2012 08:00 AM
Hello ppl linXhelp LinuxQuestions.org Member Intro 0 04-06-2011 09:07 PM
Some ppl are weird... :) Alexvader General 38 08-01-2010 02:58 AM
hi ppl new member here microsoftblows LinuxQuestions.org Member Intro 1 01-24-2006 11:33 AM
need some ppl who like boards archlyric Linux - General 1 02-24-2004 08:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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