On Thu, 28 Apr 2011 23:11:41 +0200
Tobias Gasser <[email protected]> wrote:

> 
> firefox 3.6.16 fails on "make" with "nsEnumeratorUtils.cpp"
> with gcc 4.5.2 i had no problem. (i just testet my scripts sucessfully
> with gcc 4.5.2 and now restarted again with just replacing gcc 4.5.2
> with 4.6.)
> 
> i tried firefox 4.0 with no success
> it fails alreday during configure with
> "cant't find header GL/glx.h" but mesa is installed and
> /usr/X11/include/GL/glx.h exists and a symlink for /usr/include/GL to
> usr/X11/include/GL doesn't solve the problem.
> 
Are you sure you made the symlink correctly?

ls /usr/include/GL/glx.h

> 
> i did not try firefox 4.0 with gcc 4.5.2. i'd like to stick to the 3.6
> for a while as not all plugins i use are available for 4.0.
> 
> thus my favourite would be a fix for firefox 3.6.16 / gcc 4.6, but i
> could live with firefox 4.0 if somebody can give me a hint what i have
> to do to convice firefox to see the installed mesa...
> 

What does config.log say about why configure failed? I have not
encountered this problem as I install xorg into /usr. I'm toying with
the idea of doing away with /usr and just installing everything into /
but that's another story. Firefox-4.0 does need to be patched for
gcc-4.6 (attached).
Looking at the configure script, the test for GL/glx.h is to compile
this code fragment:

#include "confdefs.h"
#include <GL/glx.h>
int main() {

; return 0; }

I suspect that you've not made the symlink correctly
and /usr/include/GL/glx.h does not exist. You may be able to work
around it with CPPFLAGS and LDFLAGS:

CXXFLAGS="-I/usr/X11/include"
CPPFLAGS="-I/usr/X11/include"
LDFLAGS="-L/usr/X11/lib"
export CXXFLAGS CPPFLAGS LDFLAGS

Andy

Attachment: firefox-4.0-gcc-4.6.patch
Description: Binary data

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to