Solved

Getting an error when compiling Firefox

Posted on 2004-09-27
5
291 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
5 Comments
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
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
Comment Utility
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
Comment Utility
Do you even have to declare a variable?  How about

(a>b)?0:blah;
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now