Solved

Getting an error when compiling Firefox

Posted on 2004-09-27
5
303 Views
Last Modified: 2010-04-21
Hello all,

I am trying to successfully compile Firefox 10 pre-release using Mandrake 10.01 and the 2.6.3-7mdk kernel.  When I executed ./configure, everything finished fine.  However when I did a 'make' it had an error.  Here is what it said:

In file included from /usr/include/math.h:362,
                 from nsStackFrameUnix.cpp:38:
/usr/include/bits/mathinline.h: In function `long double __expm1l(long double)':
/usr/include/bits/mathinline.h:385: error: ISO C++ forbids omitting the middle t
erm of a ?: expression
/usr/include/bits/mathinline.h: In function `double expm1(double)':
/usr/include/bits/mathinline.h:541: error: ISO C++ forbids omitting the middle t
erm of a ?: expression
/usr/include/bits/mathinline.h: In function `float expm1f(float)':
/usr/include/bits/mathinline.h:541: error: ISO C++ forbids omitting the middle t
erm of a ?: expression
/usr/include/bits/mathinline.h: In function `long double expm1l(long double)':
/usr/include/bits/mathinline.h:541: error: ISO C++ forbids omitting the middle t
erm of a ?: expression
gmake[3]: *** [nsStackFrameUnix.o] Error 1
gmake[2]: *** [libs] Error 2
gmake[1]: *** [tier_2] Error 2
make: *** [default] Error 2


I am not a programmer and am new to conpiling.  Any ideas what I need to do to fix this?

Many thanks in advance.

Johnathon
0
Comment
Question by:jballread
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 12166039
I don't have a copy of MD 10.01 to look at, so what does line 385 of /usr/include/bits/mathinline.h contain?
0
 
LVL 45

Accepted Solution

by:
sunnycoder earned 250 total points
ID: 12167164
In /usr/include/bits/mathinline.h, declare a variable, char phony;
all error lines will have expressions like
(a>b)?:blah;
in between ? and : just write phony=0

sorry, dont have a more elegant precise solution at the moment, but same should be achievable by setting some compiler flags to drop strict ISO C++ checking ... flip through gcc maunal you have time ... or look for string ISO in compiler flags and try disabling it
0
 
LVL 3

Assisted Solution

by:guynumber5764
guynumber5764 earned 250 total points
ID: 12175021
Do you even have to declare a variable?  How about

(a>b)?0:blah;
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Bash Script to find & Kill Multiple Process 3 104
A "Helper" for python 2 112
Install Apache on a Mac with Homebrew | Apache Config Issues 1 231
Linux: disable vim auto-comment 7 168
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question