?
Solved

Getting an error when compiling Firefox

Posted on 2004-09-27
5
Medium Priority
?
305 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 1000 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 1000 total points
ID: 12175021
Do you even have to declare a variable?  How about

(a>b)?0:blah;
0

Featured Post

Docker-Compose to Simplify Multi-Container Builds

Our veteran DevOps Author takes you through how to build a multi-container environment, managed with a single utility in order to simplify your deployments.

Question has a verified solution.

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

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…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Suggested Courses
Course of the Month9 days, 7 hours left to enroll

762 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