[go: up one dir, main page]

Bug 984637 - MozillaFirefox, MozillaThunderbird rebuild failure with binutils
Summary: MozillaFirefox, MozillaThunderbird rebuild failure with binutils
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Firefox (show other bugs)
Version: Leap 42.2
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Petr Cerny
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 983048
  Show dependency treegraph
 
Reported: 2016-06-14 11:40 UTC by Ludwig Nussel
Modified: 2021-11-16 11:41 UTC (History)
5 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ludwig Nussel 2016-06-14 11:40:50 UTC
Looks like the updated binutils in SP2 causes firefox and thunderbird fail to build:

[ 2513s] /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: ../../xpcom/components/nsComponentManager.o: relocation R_X86_64_PC32 against protected symbol `end_kPStaticModules_NSModule' can not be used when making a shared object
[ 2513s] /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: final link failed: Bad value

https://build.opensuse.org/package/live_build_log/openSUSE:Leap:42.2:Staging:A:DVD/MozillaFirefox/standard/x86_64
https://build.opensuse.org/package/live_build_log/openSUSE:Leap:42.2:Staging:A:DVD/MozillaThunderbird/standard/x86_64

Is this a bug in binutils or firefox/tb?
Comment 1 Michael Matz 2016-06-14 12:58:57 UTC
Isn't this an old problem?  Certainly
  https://bugzilla.mozilla.org/show_bug.cgi?id=1141729
says so.

Protected symbols are fiddly, if that symbols in question (end_kPStaticModules_NSModule) address is taken, and depending on if it's
a function or data symbol (I'd think the latter), and depending on how the
compiler implemented accesses to that address, indeed the linker message is
correct.  binutils got more and more strict over time (but always in situations
that could have lead to runtime errors before).  Sometimes GCC was changed to
emit non-offending code, you'd know if that same firefox builds with binutils
2.26 but newer gcc (at least 5).

NetBSD had a similar problem in February and updating firefox
there also seemed to have helped:
  http://gnats.netbsd.org/50767
For other firefoxes they also had a patch/hack:
  http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/www/firefox45/patches/patch-xpcom_components_Module.h?rev=1.1&content-type=text/x-cvsweb-markup

FWIW, as we won't update the system compiler (you could use the toolchain module
one, of course) there's not much choice than adding the patch (or alternatively
update firefox's sources if upstream changed this already).

For reference, here's the binutils PR
  https://sourceware.org/bugzilla/show_bug.cgi?id=17709
that introduced the stricter checking.  After
  https://sourceware.org/bugzilla/show_bug.cgi?id=19612
(a dup of the above) there's was much much discussion about behaviour
of protected symbols and as of yet there's no definite conclusion.
Comment 2 Wolfgang Rosenauer 2016-06-15 07:42:48 UTC
Can we first verify with the latest Firefox (47.0)?
(Not that I have much indication it might be gone but nevertheless.)
Comment 3 Wolfgang Rosenauer 2016-06-15 07:57:26 UTC
mozilla:Factory now has a MozillaFirefox package with the mentioned patch. How can I verify with and without the patch against 42.2? Or is someone else able to check?
If the patch helps/is required I will push it to the other packages.
Comment 4 Ludwig Nussel 2016-06-15 09:16:06 UTC
ah, I thought we have the ESR version also in Leap

you can build against openSUSE:Leap:42.2:Staging:A to verify
Comment 5 Wolfgang Rosenauer 2016-06-15 11:50:45 UTC
hmm, I'm too stupid:
osc build --alternative-project openSUSE:Leap:42.2:Staging:A x86_64
[...]
Building MozillaFirefox.spec for standard/x86_64
Getting buildinfo from server and store to /home/local/build/mozillafactory/MozillaFirefox/.osc/_buildinfo-standard-x86_64.xml
Getting buildconfig from server and store to /home/local/build/mozillafactory/MozillaFirefox/.osc/_buildconfig-standard-x86_64
buildinfo is broken... it says:
unresolvable: nothing provides libnotify-devel
      nothing provides mozilla-nss-devel >= 3.23
      nothing provides nss-shared-helper-devel
      nothing provides startup-notification-devel

I understand the NSS issue because it's likely not in 42.2 yet but why are the others missing?
Comment 6 Ludwig Nussel 2016-06-15 12:00:22 UTC
Ah, my fault, sorry! Firefox is in ring2 so you need to build against openSUSE:Leap:42.2:Staging:A:DVD
Comment 7 Michael Matz 2016-06-15 13:16:15 UTC
(In reply to Wolfgang Rosenauer from comment #2)
> Can we first verify with the latest Firefox (47.0)?

Yeah, first we should see if a newer firefox solves the problem without patches.

> (Not that I have much indication it might be gone but nevertheless.)
Comment 8 Ludwig Nussel 2016-06-15 13:25:27 UTC
I've linked the 42.1 online upte (47.0) in there, same issue
https://build.opensuse.org/package/show/openSUSE:Leap:42.2:Staging:A:DVD/MozillaFirefox
Comment 9 Wolfgang Rosenauer 2016-06-15 13:28:56 UTC
confirmed locally as well.
Also confirmed that the patch seems to fix it. I'm not exactly sure if I should apply the patch unconditionally or solely for 42.2. Any feedback?
Comment 10 Wolfgang Rosenauer 2016-06-15 20:43:33 UTC
New package submitted to openSUSE:Factory and openSUSE:Leap:42.2.
Thunderbird will be covered with the next update which should happen within the next few days.
Comment 11 Bernhard Wiedemann 2016-06-16 16:01:29 UTC
This is an autogenerated message for OBS integration:
This bug (984637) was mentioned in
https://build.opensuse.org/request/show/402737 42.2 / MozillaFirefox
Comment 12 Ludwig Nussel 2016-06-21 13:03:36 UTC
which version of MozillaThunderbird to take for 42.2?
Comment 13 Wolfgang Rosenauer 2016-06-21 15:06:14 UTC
There is a new version being released within the next few days which will be an update for Factory and all other distributions (45.2) including 42.1 where I will merge the fix and it's supposed to end up in 42.2.
Comment 14 Ludwig Nussel 2016-06-24 09:05:33 UTC
Any ETA? This blocks a staging project atm...
Comment 15 Bernhard Wiedemann 2016-06-24 18:00:31 UTC
This is an autogenerated message for OBS integration:
This bug (984637) was mentioned in
https://build.opensuse.org/request/show/404534 42.2 / MozillaThunderbird
Comment 16 Wolfgang Rosenauer 2016-06-25 11:10:00 UTC
fixed as per above checkin
Comment 17 Bernhard Wiedemann 2016-06-25 20:00:19 UTC
This is an autogenerated message for OBS integration:
This bug (984637) was mentioned in
https://build.opensuse.org/request/show/404805 Factory / MozillaThunderbird
Comment 18 Swamp Workflow Management 2016-07-10 14:09:11 UTC
openSUSE-SU-2016:1767-1: An update that fixes 28 vulnerabilities is now available.

Category: security (important)
Bug References: 969894,977333,977375,977376,983549,984126,984637,986162
CVE References: CVE-2016-1952,CVE-2016-1953,CVE-2016-1954,CVE-2016-1955,CVE-2016-1956,CVE-2016-1957,CVE-2016-1960,CVE-2016-1961,CVE-2016-1964,CVE-2016-1974,CVE-2016-1977,CVE-2016-2790,CVE-2016-2791,CVE-2016-2792,CVE-2016-2793,CVE-2016-2794,CVE-2016-2795,CVE-2016-2796,CVE-2016-2797,CVE-2016-2798,CVE-2016-2799,CVE-2016-2800,CVE-2016-2801,CVE-2016-2802,CVE-2016-2806,CVE-2016-2807,CVE-2016-2815,CVE-2016-2818
Sources used:
openSUSE 13.1 (src):    MozillaThunderbird-45.2-70.83.1
Comment 19 Swamp Workflow Management 2016-07-10 22:09:04 UTC
openSUSE-SU-2016:1769-1: An update that fixes 28 vulnerabilities is now available.

Category: security (important)
Bug References: 969894,977333,977375,977376,983549,984126,984637,986162
CVE References: CVE-2016-1952,CVE-2016-1953,CVE-2016-1954,CVE-2016-1955,CVE-2016-1956,CVE-2016-1957,CVE-2016-1960,CVE-2016-1961,CVE-2016-1964,CVE-2016-1974,CVE-2016-1977,CVE-2016-2790,CVE-2016-2791,CVE-2016-2792,CVE-2016-2793,CVE-2016-2794,CVE-2016-2795,CVE-2016-2796,CVE-2016-2797,CVE-2016-2798,CVE-2016-2799,CVE-2016-2800,CVE-2016-2801,CVE-2016-2802,CVE-2016-2806,CVE-2016-2807,CVE-2016-2815,CVE-2016-2818
Sources used:
SUSE Package Hub for SUSE Linux Enterprise 12 (src):    MozillaThunderbird-45.2-6.1
Comment 20 Swamp Workflow Management 2016-07-10 22:14:19 UTC
openSUSE-SU-2016:1778-1: An update that fixes 28 vulnerabilities is now available.

Category: security (important)
Bug References: 969894,977333,977375,977376,983549,984126,984637,986162
CVE References: CVE-2016-1952,CVE-2016-1953,CVE-2016-1954,CVE-2016-1955,CVE-2016-1956,CVE-2016-1957,CVE-2016-1960,CVE-2016-1961,CVE-2016-1964,CVE-2016-1974,CVE-2016-1977,CVE-2016-2790,CVE-2016-2791,CVE-2016-2792,CVE-2016-2793,CVE-2016-2794,CVE-2016-2795,CVE-2016-2796,CVE-2016-2797,CVE-2016-2798,CVE-2016-2799,CVE-2016-2800,CVE-2016-2801,CVE-2016-2802,CVE-2016-2806,CVE-2016-2807,CVE-2016-2815,CVE-2016-2818
Sources used:
openSUSE Leap 42.1 (src):    MozillaThunderbird-45.2-16.1
openSUSE 13.2 (src):    MozillaThunderbird-45.2-43.1
Comment 21 Swamp Workflow Management 2016-08-04 23:09:51 UTC
openSUSE-SU-2016:1964-1: An update that fixes 22 vulnerabilities is now available.

Category: security (important)
Bug References: 984126,984403,984637,986541,991809
CVE References: CVE-2016-0718,CVE-2016-2830,CVE-2016-2835,CVE-2016-2836,CVE-2016-2837,CVE-2016-2838,CVE-2016-2839,CVE-2016-5250,CVE-2016-5251,CVE-2016-5252,CVE-2016-5254,CVE-2016-5255,CVE-2016-5258,CVE-2016-5259,CVE-2016-5260,CVE-2016-5261,CVE-2016-5262,CVE-2016-5263,CVE-2016-5264,CVE-2016-5265,CVE-2016-5266,CVE-2016-5268
Sources used:
openSUSE Leap 42.1 (src):    MozillaFirefox-48.0-27.1, mozilla-nss-3.24-21.1
openSUSE 13.2 (src):    MozillaFirefox-48.0-74.1, mozilla-nss-3.24-37.1
Comment 22 Swamp Workflow Management 2016-08-10 23:09:33 UTC
openSUSE-SU-2016:2026-1: An update that fixes 22 vulnerabilities is now available.

Category: security (important)
Bug References: 984126,984403,984637,986541,991809
CVE References: CVE-2016-0718,CVE-2016-2830,CVE-2016-2835,CVE-2016-2836,CVE-2016-2837,CVE-2016-2838,CVE-2016-2839,CVE-2016-5250,CVE-2016-5251,CVE-2016-5252,CVE-2016-5254,CVE-2016-5255,CVE-2016-5258,CVE-2016-5259,CVE-2016-5260,CVE-2016-5261,CVE-2016-5262,CVE-2016-5263,CVE-2016-5264,CVE-2016-5265,CVE-2016-5266,CVE-2016-5268
Sources used:
openSUSE 13.1 (src):    MozillaFirefox-48.0-119.1, mozilla-nss-3.24-83.1
Comment 23 Bernhard Wiedemann 2016-10-17 12:00:22 UTC
This is an autogenerated message for OBS integration:
This bug (984637) was mentioned in
https://build.opensuse.org/request/show/435717 Factory / seamonkey
Comment 24 Bernhard Wiedemann 2017-01-27 09:03:41 UTC
This is an autogenerated message for OBS integration:
This bug (984637) was mentioned in
https://build.opensuse.org/request/show/452887 42.1 / seamonkey
Comment 25 Swamp Workflow Management 2017-02-01 23:11:06 UTC
openSUSE-SU-2017:0356-1: An update that solves one vulnerability and has three fixes is now available.

Category: security (important)
Bug References: 1017174,1021636,984637,990856
CVE References: CVE-2016-6354
Sources used:
openSUSE Leap 42.2 (src):    seamonkey-2.46-9.2
openSUSE Leap 42.1 (src):    seamonkey-2.46-9.2
Comment 32 OBSbugzilla Bot 2021-07-08 07:30:39 UTC
This is an autogenerated message for OBS integration:
This bug (984637) was mentioned in
https://build.opensuse.org/request/show/904702 15.3 / seamonkey
Comment 33 OBSbugzilla Bot 2021-07-22 12:30:40 UTC
This is an autogenerated message for OBS integration:
This bug (984637) was mentioned in
https://build.opensuse.org/request/show/907731 15.3 / seamonkey
Comment 34 OBSbugzilla Bot 2021-08-26 17:40:39 UTC
This is an autogenerated message for OBS integration:
This bug (984637) was mentioned in
https://build.opensuse.org/request/show/914429 15.3 / seamonkey
Comment 35 OBSbugzilla Bot 2021-09-28 18:40:45 UTC
This is an autogenerated message for OBS integration:
This bug (984637) was mentioned in
https://build.opensuse.org/request/show/922046 15.3 / seamonkey
Comment 36 OBSbugzilla Bot 2021-11-16 11:41:01 UTC
This is an autogenerated message for OBS integration:
This bug (984637) was mentioned in
https://build.opensuse.org/request/show/931737 15.3 / seamonkey