LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 05-15-2015, 11:42 PM   #1
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,028

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
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.
 
Old 05-20-2015, 01:48 AM   #2
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,028

Original Poster
Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Anyone???
 
Old 05-20-2015, 04:13 PM   #3
elthomas
LQ Newbie
 
Registered: May 2015
Posts: 2

Rep: Reputation: Disabled
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
 
Old 05-20-2015, 05:08 PM   #4
elthomas
LQ Newbie
 
Registered: May 2015
Posts: 2

Rep: Reputation: Disabled
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
 
Old 05-21-2015, 01:12 AM   #5
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,028

Original Poster
Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
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).
 
Old 05-21-2015, 06:15 AM   #6
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,028

Original Poster
Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
I've just about fixed all of the problem points. When I get it to build I'll post a patch.
 
Old 05-21-2015, 07:20 AM   #7
3rensho
Senior Member
 
Registered: Mar 2008
Location: Deutschland
Distribution: Slackware64-current
Posts: 1,028

Original Poster
Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
OK, here is the patch. http://pastebin.ca/3006728

Hope it works for anyone interested.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
update from mozilla thunderbird 12.0.1 to mozilla thunderbird 13.0 herakles_14 Ubuntu 1 06-11-2012 02:49 AM
LXer: Mozilla Thunderbird to Find New Home as Mozilla Foundation Focuses on Mozilla Firefox LXer Syndicated Linux News 0 07-27-2007 09:16 AM
LXer: Mozilla Firefox 1.5.0.8 and Mozilla Thunderbird 1.5.0.8 Released LXer Syndicated Linux News 0 11-09-2006 05:21 PM
LXer: Mozilla Firefox and Mozilla Thunderbird 1.5.0.5 Community Test Day LXer Syndicated Linux News 0 07-14-2006 08:54 AM
Segfaults in Mozilla, Mozilla Firebird, and Mozilla Thunderbird Ninja Cow Linux - Software 2 02-02-2004 01:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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