Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-15-2015, 11:42 PM
|
#1
|
Senior Member
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,098
|
GCC-5-1-0 and Mozilla-Thunderbird-31.7.0
I'm running Slack64-current but recently upgraded to GCC-5.1.0. I wanted to build the new versions of Firefox (38.0.1) and Thunderbird (31.7.0). Firefox went without a hitch but the Thunderbird build throws dozens of errors like the following:
error: converting to 'bool' from 'std::nullptr_t' requires direct-initialization [-fpermissive]
return nullptr;
Probably due to a tighter adherence to the C++ standard but, not being a programmer, I am at a loss as to how to fix this.
Does anyone know of a patch to address this? Thanks in advance.
Last edited by 3rensho; 05-16-2015 at 03:43 AM.
|
|
|
05-20-2015, 01:48 AM
|
#2
|
Senior Member
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,098
Original Poster
|
Anyone???
|
|
|
05-20-2015, 04:13 PM
|
#3
|
LQ Newbie
Registered: May 2015
Posts: 2
Rep: 
|
Hi,
you need to replace every **reported** occurrence of "return nullptr;" with "return false;".
I just stumbled on the same problem when compiling Firefox 31 with gcc 5, and I am pretty convinced that this solution should be enough. However, I currently don't have time to do the manual work and try it out. In case you decide to do it (or you find an already finished patch), please let me know if it works
Regards,
Tom
|
|
|
05-20-2015, 05:08 PM
|
#4
|
LQ Newbie
Registered: May 2015
Posts: 2
Rep: 
|
Hello again,
can't sleep with unsolved problem in my head  First, a little research:
* this problem was addressed almost a year ago, see https://bugzilla.mozilla.org/show_bug.cgi?id=1021171
* however, patch included in the bugreport won't work for version 31. There were some other changes before it, and the line numbers don't match
* so, I have created a "correct" one for Firefox/Thunderbird 31
Long story short, try this:
http://www.pastebin.ca/3006360
Let me know if it helps
Have a nice day,
Tom
|
|
|
05-21-2015, 01:12 AM
|
#5
|
Senior Member
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,098
Original Poster
|
Hello Tom and thank you for taking the time to not only reply but to create a patch. That is truly above and beyond. I had come across the "return false" solution in connection with other software while googling but wasn't sure if that applied here too. I have tried your patch but always get an error that it can't find the file in line 4 of the patch. Not to worry though. Now that you have pointed me to the fix I will carry on from here. Again, thank you very much.
Tom (yes, I am Tom too).
|
|
|
05-21-2015, 06:15 AM
|
#6
|
Senior Member
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,098
Original Poster
|
I've just about fixed all of the problem points. When I get it to build I'll post a patch.
|
|
|
05-21-2015, 07:20 AM
|
#7
|
Senior Member
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,098
Original Poster
|
OK, here is the patch. http://pastebin.ca/3006728
Hope it works for anyone interested.
|
|
|
All times are GMT -5. The time now is 06:15 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|