Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 449084

Summary: www-client/firefox-17.0.1 fails to build due to missing dependencies
Product: Gentoo Linux Reporter: Steven Trogdon <strogdon>
Component: [OLD] UnspecifiedAssignee: Gentoo Prefix <prefix>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: bzip of build.log without libvorbis installed
bzip of build.log with libvorbis installed

Description Steven Trogdon 2012-12-28 19:55:32 UTC
Created attachment 333616 [details]
bzip of build.log without libvorbis installed

The subject ebuild failed in PREFIX:

---
Portage 2.2.01.21476-prefix (prefix/linux/x86, gcc-4.6.3, unavailable, 2.6.32-5-686 i686)
=================================================================
System uname: Linux-2.6.32-5-686-i686-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-debian-6.0.6
Timestamp of tree: Fri, 28 Dec 2012 16:38:12 +0000
ld GNU ld (GNU Binutils) 2.23
ccache version 3.1.8 [enabled]
app-shells/bash:          4.2_p37::gentoo_prefix
dev-java/java-config:     2.1.11-r3::gentoo_prefix
dev-lang/python:          2.7.3-r2::gentoo_prefix
dev-util/ccache:          3.1.8::gentoo_prefix
dev-util/cmake:           2.8.10.2::gentoo_prefix
dev-util/pkgconfig:       0.27.1::gentoo_prefix
sys-apps/sandbox:         2.6::gentoo_prefix
sys-devel/autoconf:       2.13::gentoo_prefix, 2.69::gentoo_prefix
sys-devel/automake:       1.11.5::gentoo_prefix, 1.12.4::gentoo_prefix
sys-devel/binutils:       2.23::gentoo_prefix
sys-devel/gcc:            4.4.6-r1::gentoo_prefix, 4.5.4::gentoo_prefix, 4.6.3::gentoo_prefix
sys-devel/gcc-config:     1.5-r2::gentoo_prefix
sys-devel/libtool:        2.4.2::gentoo_prefix
sys-devel/make:           3.82-r4::gentoo_prefix
sys-kernel/linux-headers: 3.6::gentoo_prefix (virtual/os-headers)
Repositories: gentoo_prefix local-overlay sage-on-gentoo sage-on-prefix my-gentoo-sage sage-flask
ACCEPT_KEYWORDS="~x86-linux"
ACCEPT_LICENSE="* -@EULA dlj-1.1 Oracle-BCLA-JavaSE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/storage/strogdon/gentoo/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests b
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/storage/strogdon/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/storage/strogdon/gentoo/"
PORTAGE_RSYNC_EXTRA_OPTS="--delete-after --timeout=500"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/storage/strogdon/gentoo/var/tmp"
PORTDIR="/storage/strogdon/gentoo/usr/portage"
PORTDIR_OVERLAY="/storage/strogd
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules mudflap ncurses nls nptl openmp pcre pppd prefix readline session ssl tcpd unicode x86 zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
---

but I would presume the same issue exists in native Gentoo. I get the following failure:

---
i686-pc-linux-gnu-g++ -o Link.o -c -I../../../dist/stl_wrap
NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL
gdon/gentoo/var/tmp/portage/www-client/firefox-17.0.1/work/
n/gentoo/usr/include/nss     -I/storage/strogdon/gentoo/var
/portage/www-client/firefox-17.0.1/work/mozilla-release/con
ease/content/base/src/../../xul/document/src -I/storage/str
/gentoo/var/tmp/portage/www-client/firefox-17.0.1/work/mozi
elease/content/base/src/../../../layout/style -I/storage/st
gdon/gentoo/var/tmp/portage/www-client/firefox-17.0.1/work/
var/tmp/portage/www-client/firefox-17.0.1/work/mozilla-rele
ngth-strings -Wno-invalid-offsetof -Wno-variadic-macros -Wc
config.h -MD -MF .deps/Link.o.pp /storage/strogdon/gentoo/var/tmp/portage/www-client/firefox-17.0.1/work/mozilla-release/content/base/src/Link.cpp
nsBlobProtocolHandler.cpp
In file included from /storage/strogdon/gentoo/var/tmp/portage/www-client/firefox-17.0.1/work/mozilla-release/content/media/ogg/nsOggDecoder.cpp:8:0:
/storage/strogdon/gentoo/var/tmp/portage/www-client/firefox-17.0.1/work/mozilla-release/content/media/ogg/nsOggReader.h:14:26: fatal error: vorbis/codec.h: No such file or directory
compilation terminated.
make[7]: *** [nsOggDecoder.o] Error 1
make[7]: Leaving directory `/storage/strogdon/gentoo/var/tmp/portage/www-client/firefox-17.0.1/work/mozilla-release/obj-i686-pc-linux-gnu/content/media/ogg'
make[6]: *** [ogg_libs] Error 2
make[6]: Leaving directory `/storage/strogdon/gentoo/var/tmp/portage/www-client/firefox-17.0.1/work/mozilla-release/obj-i686-pc-linux-gnu/content/media'
make[5]: *** [media_libs] Error 2
make[5]: *** Waiting for unfinished jobs....
---

which seems to indicate a missing header (vorbis/codec.h - see attached build.log.bz2). This header is provided by media-libs/libvorbis which is not installed in my Prefix. After installing media-libs/libvorbis I then get the following failure:

---
/storage/strogdon/gentoo/var/tmp/portage/www-client/firefox-17.0.1/work/mozilla-release/content/media/ogg/nsOggReader.cpp:1111: undefined reference to `ogg_page_serialno'
/storage/strogdon/gentoo/var/tmp/portage/www-client/firefox-17.0.1/work/mozilla-release/content/media/ogg/nsOggReader.cpp:1121: undefined reference to `ogg_stream_pagein'
/storage/strogdon/gentoo/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../i686-pc-linux-gnu/bin/ld: libxul.so: hidden symbol `ogg_page_bos' isn't defined
/storage/strogdon/gentoo/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/../../../../i686-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[5]: *** [libxul.so] Error 1
make[5]: Leaving directory `/storage/strogdon/gentoo/var/tmp/portage/www-client/firefox-17.0.1/work/mozilla-release/obj-i686-pc-linux-gnu/toolkit/library'
make[4]: *** [libs_tier_platform] Error 2
make[4]: Leaving directory `/storage/strogdon/gentoo/var/tmp/portage/www-client/firefox-17.0.1/work/mozilla-release/obj-i686-pc-linux-gnu'
make[3]: *** [tier_platform] Error 2
make[3]: Leaving directory `/storage/strogdon/gentoo/var/tmp/portage/www-client/firefox-17.0.1/work/mozilla-release/obj-i686-pc-linux-gnu'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/storage/strogdon/gentoo/var/tmp/portage/www-client/firefox-17.0.1/work/mozilla-release/obj-i686-pc-linux-gnu'
make[1]: *** [realbuild] Error 2
make[1]: Leaving directory `/storage/strogdon/gentoo/var/tmp/portage/www-client/firefox-17.0.1/work/mozilla-release'
make: *** [build] Error 2
---

The hidden symbol 'ogg_page_bos' along with other undefined references (see build_with_libvorbis.log.bz2) are provided by media-libs/libogg which was pulled in when media-libs/libvorbis (see above) was installed.
Comment 1 Steven Trogdon 2012-12-28 19:57:38 UTC
Created attachment 333618 [details]
bzip of build.log with libvorbis installed
Comment 2 Steven Trogdon 2012-12-28 20:01:33 UTC
Comment on attachment 333618 [details]
bzip of build.log with libvorbis installed

bzip of build.log with libvorbis installed
Comment 3 Steven Trogdon 2012-12-28 20:03:54 UTC
sorry for the duplicate comments
Comment 4 Steven Trogdon 2013-01-04 00:46:04 UTC
I believe this is a PREFIX-only issue. libvorbis is not needed to build firefox-17.0.1 in native Gentoo. It would seem that the "missing" header vorbis/codec.h is really present in 

${WORKDIR}/mozilla-release/media/libvorbis/include/vorbis/codec.h

and it is not being found in prefix. I suspect something similar to be the source of the "undefined references" since libogg is not needed either.
Comment 5 Jory A. Pratt gentoo-dev 2013-01-04 03:52:34 UTC
(In reply to comment #4)
> I believe this is a PREFIX-only issue. libvorbis is not needed to build
> firefox-17.0.1 in native Gentoo. It would seem that the "missing" header
> vorbis/codec.h is really present in 
> 
> ${WORKDIR}/mozilla-release/media/libvorbis/include/vorbis/codec.h
> 
> and it is not being found in prefix. I suspect something similar to be the
> source of the "undefined references" since libogg is not needed either.

What are you building on top of? That will be the keep input we need if we are gonna help address this issue.
Comment 6 Steven Trogdon 2013-01-04 05:50:51 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > I believe this is a PREFIX-only issue. libvorbis is not needed to build
> > firefox-17.0.1 in native Gentoo. It would seem that the "missing" header
> > vorbis/codec.h is really present in 
> > 
> > ${WORKDIR}/mozilla-release/media/libvorbis/include/vorbis/codec.h
> > 
> > and it is not being found in prefix. I suspect something similar to be the
> > source of the "undefined references" since libogg is not needed either.
> 
> What are you building on top of? That will be the keep input we need if we
> are gonna help address this issue.

I'm not quite sure what it is you're asking. I've tried building firefox-17.0.1 on ~x86-linux and ~amd64-linux where the host OS is Debian. The emerge --info above is for the ~x86-linux prefix. On both prefixes vorbis/code.h cannot be found and the build fails. I've had no problem building the subject firefox on amd64 where libvorbis and libogg were not installed.
Comment 7 Steven Trogdon 2013-01-09 07:05:34 UTC
I should have looked at the logs a little more closely. In the build.log "without libvorbis installed" there is the following:

>>> Configuring source in /storage/strogdon/gentoo/var/tmp/portage/www-client/firefox-17.0.1/work/mozilla-release ...
/storage/strogdon/gentoo/var/tmp/portage/www-client/firefox-17.0.1/temp/environment: line 4190: mozversion_is_new_enough: command not found
/storage/strogdon/gentoo/var/tmp/portage/www-client/firefox-17.0.1/temp/environment: line 4216: mozversion_is_new_enough: command not found
/storage/strogdon/gentoo/var/tmp/portage/www-client/firefox-17.0.1/temp/environment: line 4237: mozversion_is_new_enough: command not found

The mozversion_is_new_enough() function is in the newer mozcoreconf-2.eclass but not in the mozcoreconf-2.eclass from the prefix-overlay. Without the newer eclass firefox-17.0.1 isn't building its internal libvorbis and libogg libraries. If I use the newer eclass then firefox-17.0.1 builds here in ~x86-linux and ~amd64-linux prefixes.
Comment 8 Jory A. Pratt gentoo-dev 2013-01-09 14:57:00 UTC
(In reply to comment #7)
> I should have looked at the logs a little more closely. In the build.log
> "without libvorbis installed" there is the following:
> 
> >>> Configuring source in /storage/strogdon/gentoo/var/tmp/portage/www-client/firefox-17.0.1/work/mozilla-release ...
> /storage/strogdon/gentoo/var/tmp/portage/www-client/firefox-17.0.1/temp/
> environment: line 4190: mozversion_is_new_enough: command not found
> /storage/strogdon/gentoo/var/tmp/portage/www-client/firefox-17.0.1/temp/
> environment: line 4216: mozversion_is_new_enough: command not found
> /storage/strogdon/gentoo/var/tmp/portage/www-client/firefox-17.0.1/temp/
> environment: line 4237: mozversion_is_new_enough: command not found
> 
> The mozversion_is_new_enough() function is in the newer mozcoreconf-2.eclass
> but not in the mozcoreconf-2.eclass from the prefix-overlay. Without the
> newer eclass firefox-17.0.1 isn't building its internal libvorbis and libogg
> libraries. If I use the newer eclass then firefox-17.0.1 builds here in
> ~x86-linux and ~amd64-linux prefixes.

reassigning based on new info.
Comment 9 Fabian Groffen gentoo-dev 2013-01-09 16:29:05 UTC
I updated the eclass
Comment 10 Steven Trogdon 2013-01-14 17:20:12 UTC
firefox-17.0.1 is gone, but firefox-17.0.2 fails to build in prefix for the same reason as the previous version. I believe the mozcoreconf-2.eclass in the prefix-overlay still needs to be sync'd against the current version in the main tree. Using this newer eclass does allow firefox to build. firefox-18.0 also doesn't build in prefix for other reasons, but that's another bug once the eclass issue is resolved.
Comment 11 Fabian Groffen gentoo-dev 2013-01-14 17:53:42 UTC
ah, I did never commit my sync of the eclass :(  Done now.
Comment 12 Fabian Groffen gentoo-dev 2017-12-02 19:43:04 UTC
Sorry, this bug needs revisiting.