Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278448 - www-client/mozilla-firefox-3.5-r3 fails to compile
Summary: www-client/mozilla-firefox-3.5-r3 fails to compile
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-20 12:06 UTC by daniel
Modified: 2010-09-06 13:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
output of emerge --info (emerge-info.txt,4.84 KB, text/plain)
2009-07-20 12:07 UTC, daniel
Details
complete build log (build.log,104.42 KB, text/plain)
2009-07-20 12:09 UTC, daniel
Details
libxul.pc (xulrunner-1.9.1) (libxul.pc,591 bytes, text/plain)
2009-07-21 06:33 UTC, daniel
Details
libxul-unstable.pc (xulrunner-1.9.1) (libxul-unstable.pc,376 bytes, text/plain)
2009-07-21 06:34 UTC, daniel
Details
config.log (config.log,43.24 KB, text/plain)
2009-07-21 07:47 UTC, daniel
Details
autoheader.out from emerging xulrunner (autoheader.out,14.33 KB, text/plain)
2009-07-22 13:34 UTC, daniel
Details
install.txt inside (about 5.5MB) (emerge_xulrunner.tar.bz2,182.84 KB, application/octet-stream)
2009-07-22 15:34 UTC, daniel
Details
output of emerge --info (emerge-info.txt,3.76 KB, text/plain)
2009-07-25 09:15 UTC, Evildad
Details
mozilla-firefox-3.5.2-r1 build log (build.log,105.50 KB, text/plain)
2009-08-22 08:35 UTC, Kamil Kuduk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description daniel 2009-07-20 12:06:56 UTC
when trying to compile, the build fails complaining about missing header files.

Reproducible: Always

Steps to Reproduce:
1.emerge mozilla-firefox

Actual Results:  
compiling fails

Expected Results:  
compiling is successful
Comment 1 daniel 2009-07-20 12:07:37 UTC
Created attachment 198594 [details]
output of emerge --info
Comment 2 daniel 2009-07-20 12:09:20 UTC
Created attachment 198596 [details]
complete build log
Comment 3 Rafał Mużyło 2009-07-20 12:24:05 UTC
Do you have any idea what may have caused:
bash: warning: setlocale: LC_ALL: cannot change locale (en)
- 'en' is an invalid value for a locale.
Those "missing" headers are provided by xulrunner,
so they should be there. Could you attach config.log ?
Comment 4 daniel 2009-07-20 12:33:35 UTC
(In reply to comment #3)
> Do you have any idea what may have caused:
> bash: warning: setlocale: LC_ALL: cannot change locale (en)
> - 'en' is an invalid value for a locale.
> Those "missing" headers are provided by xulrunner,
> so they should be there. Could you attach config.log ?
> 

i tried setting LC_ALL to "en" because the errors were in german, which is my default locale. my fault, but hey, it did work, all messages are in english as they should be :)
i tried both xulrunner-1.9 and xulrunner-1.9.1 with no change. at which location exactly should i find these headers?
additionally i tried mozilla-firefox-3.0.11 which fails with the same error :(
Comment 5 daniel 2009-07-20 12:37:22 UTC
> so they should be there. Could you attach config.log ?
> 

where do i find this file? it's not under /var/tmp/portage/www-client/mozilla-firefox-3.5-r3/temp/
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-07-20 17:11:08 UTC
(In reply to comment #4)
> i tried setting LC_ALL to "en" because the errors were in german, which is my
> default locale. my fault, but hey, it did work, all messages are in english as
> they should be :)
> i tried both xulrunner-1.9 and xulrunner-1.9.1 with no change. at which
> location exactly should i find these headers?
> additionally i tried mozilla-firefox-3.0.11 which fails with the same error :(

Use LC_ALL="C"
Comment 7 Jory A. Pratt gentoo-dev 2009-07-21 00:28:38 UTC
Please attach libxul-unstable.pc and libxul.pc to bug report. It appears that your pkgconfig is failing to pass proper lib options. also ensure you have run revdep-rebuild after making the jump to nspr-4.8 please.
Comment 8 daniel 2009-07-21 06:33:40 UTC
Created attachment 198667 [details]
libxul.pc (xulrunner-1.9.1)
Comment 9 daniel 2009-07-21 06:34:25 UTC
Created attachment 198668 [details]
libxul-unstable.pc (xulrunner-1.9.1)
Comment 10 daniel 2009-07-21 06:37:46 UTC
(In reply to comment #7)
> Please attach libxul-unstable.pc and libxul.pc to bug report. It appears that
> your pkgconfig is failing to pass proper lib options. also ensure you have run
> revdep-rebuild after making the jump to nspr-4.8 please.
> 

files attached.
i ran revdep-rebuild several times and as mentioned above, i even did an emerge -e world.
Comment 11 Jory A. Pratt gentoo-dev 2009-07-21 07:05:18 UTC
can you attach config.log also it can be found in ${WORKDIR}/mozilla* your pkgconfig files are fine.
Comment 12 daniel 2009-07-21 07:47:26 UTC
Created attachment 198671 [details]
config.log
Comment 13 daniel 2009-07-21 07:47:50 UTC
(In reply to comment #11)
> can you attach config.log also it can be found in ${WORKDIR}/mozilla* your
> pkgconfig files are fine.
> 

here it is
Comment 14 Jory A. Pratt gentoo-dev 2009-07-22 04:51:10 UTC
If you would please sync and test xulrunner-1.9.1 and firefox-3.5.1. If the bug persist I will have to setup a chroot to mimic your make.conf.
Comment 15 daniel 2009-07-22 13:33:48 UTC
(In reply to comment #14)
> If you would please sync and test xulrunner-1.9.1 and firefox-3.5.1. If the bug
> persist I will have to setup a chroot to mimic your make.conf.
> 

tried today with xulrunner-1.9.1-r1 and mozilla-firefox-3.5.1. same error.
but i found, that the problem is xulrunner. 
under /usr/include/xulrunner-1.9.1/ there are two directories: "stable" and "unstable". on my notebook at home, where firefox is compiling fine, there are header-files in both directories, including the missing ones under "unstable". 
on the affected machine at work, where firefox doesn't build, there are header-files under the "stable" directory, but there is _nothing_ in the "unstable" directory. just picking up one of the missing headerfiles and doing an "equery belongs nsThreadUtils.h" i get on my notebook at home:

 * Searching for nsThreadUtils.h ... 
net-libs/xulrunner-1.9.1-r1 (/usr/include/xulrunner-1.9.1/unstable/nsThreadUtils.h)

and on the affected machine at work:

 * Searching for nsThreadUtils.h ...

and nothing!
so i watched the output when emerging xulrunner and found this:

 * Running autoheader ...                                            [ !! ]

could this be the problem? there is a file called autoheader.out, see attachment. however, /usr/share/autoconf/acconfig.h mentioned in the autoheader.out are the same on both machines.
Comment 16 daniel 2009-07-22 13:34:53 UTC
Created attachment 198787 [details]
autoheader.out from emerging xulrunner
Comment 17 Jory A. Pratt gentoo-dev 2009-07-22 13:37:10 UTC
>  * Running autoheader ...                                            [ !! ]
> 
> could this be the problem? there is a file called autoheader.out, see
> attachment. however, /usr/share/autoconf/acconfig.h mentioned in the
> autoheader.out are the same on both machines.
> 

This is common for all gentoo users. if you would xulrunner 2&> install.txt and email to me, or attach it to bug report.
Comment 18 Jory A. Pratt gentoo-dev 2009-07-22 13:37:47 UTC
(In reply to comment #17)
> >  * Running autoheader ...                                            [ !! ]
> > 
> > could this be the problem? there is a file called autoheader.out, see
> > attachment. however, /usr/share/autoconf/acconfig.h mentioned in the
> > autoheader.out are the same on both machines.
> > 
> 
> This is common for all gentoo users. if you would xulrunner 2&> install.txt and
> email to me, or attach it to bug report.
> 

That should be 'emerge xulrunner 2&> install.txt'
Comment 19 daniel 2009-07-22 15:34:32 UTC
Created attachment 198799 [details]
install.txt inside (about 5.5MB)
Comment 20 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-07-23 04:56:28 UTC
(In reply to comment #19)
> Created an attachment (id=198799) [edit]
> install.txt inside (about 5.5MB)
> 

Alright, so it seems that this line: 

find ../../dist/include -xtype f -exec /var/tmp/portage/net-libs/xulrunner-1.9.1-r1/work/mozilla-1.9.1/config/nsinstall -t -m 644 {} /var/tmp/portage/net-libs/xulrunner-1.9.1-r1/image//usr/include/xulrunner-1.9.1/unstable \;

isn't doing what it's supposed to do. Could you recompile findutils with FEATURES=test? That'll run tests for for findutils and try to narrow down the problem.

Also, could you recompile xulrunner with FEATURES=keepwork? That'll prevent portage from deleting the /var/tmp/portage/net-libs/xulrunner* dir, and you can send it to us then.
Comment 21 daniel 2009-07-23 08:31:35 UTC
(In reply to comment #20)
> isn't doing what it's supposed to do. Could you recompile findutils with
> FEATURES=test? That'll run tests for for findutils and try to narrow down the
> problem.

this is the result of the tests (the tests that did not run are because of not installed locales):

=======================
All 61 tests passed
(12 tests were not run)
=======================


> 
> Also, could you recompile xulrunner with FEATURES=keepwork? That'll prevent
> portage from deleting the /var/tmp/portage/net-libs/xulrunner* dir, and you can
> send it to us then.

do you need the complete dir? it's about 100MB as a tar.bz2 and you can download it here:

http://files.getdropbox.com/u/968592/xulrunner-work.tar.bz2

otherwise i could provide what you need if you tell me what exactly you need.
Comment 22 Evildad 2009-07-24 14:13:00 UTC
Hi, 

I'm having the same problem.
This problem ist not a problem of the new Version because I had it with older xulrunner Versions, too.

I never solved it but used a Xulrunner Version built on another box.
Comment 23 Jory A. Pratt gentoo-dev 2009-07-25 08:30:17 UTC
(In reply to comment #22)
> Hi, 
> 
> I'm having the same problem.
> This problem ist not a problem of the new Version because I had it with older
> xulrunner Versions, too.
> 
> I never solved it but used a Xulrunner Version built on another box.
> 

Attach emerge --info please.
Comment 24 Evildad 2009-07-25 09:15:01 UTC
Created attachment 199087 [details]
output of emerge --info
Comment 25 Kamil Kuduk 2009-08-22 08:34:04 UTC
Got similar error: [!!] about autoheader while compiling xulrunner-1.9.1.2-r1 (but it doesn't make emerge fail) and the same [!!] with autoheader while compiling mozilla-firefox-3.5.2-r1.

My emerge --info:
Portage 2.3_pre14093 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.10.1-r0, 2.6.30-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r2-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 21 Aug 2009 20:30:01 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1, 3.1
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -msse4.1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -msse4.1"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl "
LANG="pl_PL.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="pl en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/kde-testing /usr/local/portage/layman/roslin /usr/local/portage/layman/arcon /usr/local/portage/layman/x11 /usr/local/portage/layman/mpd /usr/local/portage/layman/berkano /usr/local/portage/layman/Eaedificata /usr/local/portage/layman/zen-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 bash-completion berkdb branding bzip2 cdr cli cracklib crypt cups dri enca fortran gdbm gpm hal iconv ipv6 isdnlog jpeg jpeg2k kde laptop mmx mudflap multilib ncurses nls nptl nptlonly nvidia opengl openmp pam pcre perl pppd python qt4 readline reflection session spl sse sse2 ssl startup-notification sysfs tcpd unicode vim-syntax xcomposite xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 26 Kamil Kuduk 2009-08-22 08:35:42 UTC
Created attachment 201915 [details]
mozilla-firefox-3.5.2-r1 build log

my firefox build.log
Comment 27 Evildad 2009-10-28 14:33:26 UTC
Hi, 

just wanted to say, that this BUG is fixed for me with the newest xulrunner and mozilla-firefox version.


[ebuild   R   ] net-libs/xulrunner-1.9.1.3-r1  USE="alsa dbus gnome java python startup-notification -custom-optimization -debug -sqlite"
[ebuild   R   ] www-client/mozilla-firefox-3.5.3-r1  USE="alsa dbus gnome java startup-notification -bindist -custom-optimization -iceweasel -mozdevelop -restrict-javascript -sqlite" LINGUAS="de en -af -ar -as -be -bg -bn -bn_BD -bn_IN -ca -cs -cy -da -el -en_GB -en_US -eo -es -es_AR -es_CL -es_ES -es_MX -et -eu -fa -fi -fr -fy -fy_NL -ga -ga_IE -gl -gu -gu_IN -he -hi -hi_IN -hr -hu -id -is -it -ja -ka -kk -kn -ko -ku -lt -lv -mk -ml -mn -mr -nb -nb_NO -nl -nn -nn_NO -oc -or -pa -pa_IN -pl -pt -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -sq -sr -sv -sv_SE -ta -ta_LK -te -th -tr -uk -vi -zh_CN -zh_TW"
Comment 28 Jory A. Pratt gentoo-dev 2010-09-06 13:18:23 UTC
Please test with atleast latest stable version in tree, reopen if problem is still there.