Solved

Getting an error when compiling Firefox

Posted on 2004-09-27
5
299 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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

679 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