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

Bug 126037

Summary: firefox/thunderbird/gecko-sdk fail to build due to glibc-2.4 not exporting JB_BP
Product: Gentoo Linux Reporter: Priit Laes (IRC: plaes) <plaes>
Component: Current packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: RESOLVED DUPLICATE    
Severity: normal CC: birder, daniel, f00bar, gentoo, hg, jcwren, rockoo, tlex, wilburpan
Priority: High    
Version: 2005.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for xpcom/base/nsStackFrameUnix.cpp and xpcom/base/nsTraceRefcntImpl.cpp

Description Priit Laes (IRC: plaes) 2006-03-13 03:03:00 UTC
i686-pc-linux-gnu-g++ -o nsStackFrameUnix.o -c -I../../dist/include/system_wrappers -include ../../config/gcc_hidden.h -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DBUILD_ID=2006031312 -D_IMPL_NS_COM  -I../../dist/include/string -I../../dist/include/xpcom -I../../dist/include -I/usr/include/nspr    -fPIC  -DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\"  -fno-rtti -fno-handle-exceptions  -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=pentium4 -pipe -Wno-deprecated -Wno-return-type -w -freorder-blocks -fno-reorder-functions -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-sections -O2  -DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\"  -DMOZILLA_CLIENT -include ../../mozilla-config.h -Wp,-MD,.deps/nsStackFrameUnix.pp nsStackFrameUnix.cpp
nsStackFrameUnix.cpp: In function `void DumpStackToFile(FILE*)':
nsStackFrameUnix.cpp:101: error: `JB_BP' was not declared in this scope
gmake[3]: *** [nsStackFrameUnix.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[3]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.1-r2/work/mozilla/xpcom/base'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.1-r2/work/mozilla/xpcom'
gmake[1]: *** [tier_2] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.1-r2/work/mozilla'
make: *** [default] Error 2

!!! ERROR: www-client/mozilla-firefox-1.5.0.1-r2 failed.
Call stack:
  ebuild.sh, line 1557:   Called dyn_compile
  ebuild.sh, line 966:   Called src_compile
Comment 1 Priit Laes (IRC: plaes) 2006-03-13 03:03:46 UTC
I also tried with gcc-4.1.0, also failed with the same problem.

box770 ~ # emerge --info
Portage 2.1_pre6-r2 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.4-r0, 2.6.15-gentoo-r5 i686)
=================================================================
System uname: 2.6.15-gentoo-r5 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-Os -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms splitdebug strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/overlay/amd /usr/overlay/gnome-experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa apache2 avahi avi beagle berkdb bitmap-fonts bogofilter bonjour browserplugin bzip2 cairo cdr cli crypt cups daap dbus dri dvd dvi eds emboss encode evo exif firefox flac foomaticdb galago gd gdbm gif glut gnome gnutls gstreamer gtk gtk2 hal howl idn imlib ipv6 jpeg lcms ldap libg++ libwww logrotate mad mikmod mmap mmx mmxext mono mozilla mp3 mpeg music mysql mysqli nautilus ncurses network nls nptl nptlonly nsplugin ogg oggvorbis ole opengl pam pcmcia pcre pdf pdflib pear png quicktime radiotap readline real samba sdl session source spell sse sse2 ssl startup-notification svg tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb utf8 v4l2 vorbis win32codecs xml xml2 xmlrpc xv xvid zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_ati video_cards_fglrx"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 2 John Baxter 2006-03-13 10:23:14 UTC
The same/similar issue (JB_BP not exported bu glibc-2.4) for firefox-1.5, thunderbird-1.5 and gecko-sdk-1.7.12
Comment 3 Priit Laes (IRC: plaes) 2006-03-13 11:09:11 UTC
Changing the bug summary, also increasing severity because it's a possible blocker .
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-03-13 11:55:44 UTC
*** Bug 126053 has been marked as a duplicate of this bug. ***
Comment 5 Patrick Borjesson 2006-03-13 14:05:02 UTC
Is there a patch or something available for this? I thought I saw something a couple of hours ago when I first searched this error out in bugzilla, but I can't seem to find the bug with the patch again... 
Comment 6 Alexandru Thomae 2006-03-13 14:32:20 UTC
I suggest you take a look here:
https://bugzilla.mozilla.org/show_bug.cgi?id=323853
Comment 7 J.C. Wren 2006-03-13 14:48:17 UTC
Alexandru, I'm not sure what audience that link is directed at, but it wasn't helpful to me.  All I can ascertain is that they were aware of this problem a month ago, there might be a patch, and it appears it should have already been in the ebuild patch list.  Perhaps you could clarify?
Comment 8 Alexandru Thomae 2006-03-13 16:12:45 UTC
Created attachment 82057 [details, diff]
Patch for xpcom/base/nsStackFrameUnix.cpp and xpcom/base/nsTraceRefcntImpl.cpp
Comment 9 Alexandru Thomae 2006-03-13 16:14:19 UTC
I have just applied the patch on gecko-sdk. It emerged afterwards without problems.

emerge info:

Portage 2.1_pre6-r2 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.4-r0, 2.6.15-gentoo-r7-syko i686)
=================================================================
System uname: 2.6.15-gentoo-r7-syko i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks keepwork metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.roedu.net/pub/mirrors/gentoo.org ftp://ftp.lug.ro/gentoo ftp://ftp.romnet.org/gentoo http://ftp.romnet.org/gentoo http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync1.ro.gentoo.org/gentoo-portage"
USE="x86 7zip X aac aalib acl acpi aim alsa apache2 apm audiofile avi bash-completion berkdb bindinst bitmap-fonts browserplugin bzip2 cdparanoia cdr crypt cups curl curlwrappers dga dio directfb dv dvb dvd dvdr dvdread eds emboss encode fbcon fdftk ffmpeg firefox flash foomaticdb fortran ftp gd gdbm ghoto2 gif glut gpm hal iconv icq imagemagick imap imlib jabber javascript jikes jpeg jpeg2k kde kdexdeltas libg++ libwww lm_sensors mad memlimit mikmod mime ming mmx mng motif mp3 mpeg msn mysqli ncurses nls nptl nptlonly nsplugin nvidia offensive ogg opengl oscar oss pam pdf pdflib perl php png python qt quicktime readline rtc sasl scanner sdl slp smp sockets sox speex spell sse sse2 ssl svg tcltk threads tiff truetype truetype-fonts type1-fonts udev usb userlocales v4l vcd videos vorbis win32codecs wmf xml xml2 xmms xosd xpm xprint xv xvid yahoo zlib elibc_glibc kernel_linux linguas_en userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS

Comment 10 John Baxter 2006-03-13 17:38:07 UTC
Overlays that patch Firefox, Thunderbird and Enigmail can be found in the thread:
http://forums.gentoo.org/viewtopic-p-3178300.html#3178300
Comment 11 Wilbur Pan 2006-03-14 09:10:05 UTC
Alexandru's patch works for me on gecko-sdk-1.7.12-r1 as well.
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2006-03-14 17:28:43 UTC
*** Bug 126238 has been marked as a duplicate of this bug. ***
Comment 13 Heiko Gerstung 2006-03-14 22:19:43 UTC
Same problem here, Firefox and Thunderbird builds fail with the same error after glibc update. 

regards,
Heiko
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2006-03-15 06:04:30 UTC

*** This bug has been marked as a duplicate of 125832 ***