Bug 198090 - www/firefox: 36 - build fail
Summary: www/firefox: 36 - build fail
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-gecko (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-28 12:03 UTC by Ivan Rozhuk
Modified: 2015-04-12 21:09 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (gecko)


Attachments
www/firefox build log (774.03 KB, text/plain)
2015-04-01 09:42 UTC, pvoigt
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Rozhuk 2015-02-28 12:03:11 UTC
Looks like: https://bugzilla.mozilla.org/show_bug.cgi?id=1128161



/tmp/ports/usr/ports/www/firefox/work/mozilla-release/ipc/chromium/src/base/process_util_bsd.cc:(.text._ZN4base9LaunchAppERKNSt3__16vectorINS0_12basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEENS5_IS7_EEEERKNS1_INS0_4pairIiiEENS5_ISD_EEEERKNS0_3mapIS7_S7_NS0_4lessIS7_EENS5_INSC_IKS7_S7_EEEEEENS_15ChildPrivilegesEbPiNS_19ProcessArchitectureE+0x12a): warning: undefined reference to `environ'
/tmp/ports/usr/ports/www/firefox/work/mozilla-release/ipc/chromium/src/base/process_util_bsd.cc:(.text._ZN4base9LaunchAppERKNSt3__16vectorINS0_12basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEENS5_IS7_EEEERKNS1_INS0_4pairIiiEENS5_ISD_EEEERKNS0_3mapIS7_S7_NS0_4lessIS7_EENS5_INSC_IKS7_S7_EEEEEENS_15ChildPrivilegesEbPiNS_19ProcessArchitectureE+0x402): warning: undefined reference to `environ'
../../dom/media/mediasource/Unified_cpp_media_mediasource0.o: In function `mozilla::MediaSourceReader::GetMozDebugReaderData(nsAString_internal&)':
/tmp/ports/usr/ports/www/firefox/work/mozilla-release/obj-x86_64-portbld-freebsd10.1/dom/media/mediasource/Unified_cpp_media_mediasource0.cpp:(.text._ZN7mozilla17MediaSourceReader21GetMozDebugReaderDataER18nsAString_internal+0x1dd): undefined reference to `mozilla::DumpTimeRanges(mozilla::dom::TimeRanges*)'
/usr/bin/ld: ../../dom/media/mediasource/Unified_cpp_media_mediasource0.o: relocation R_X86_64_PC32 against `_ZN7mozilla14DumpTimeRangesEPNS_3dom10TimeRangesE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
/tmp/ports/usr/ports/www/firefox/work/mozilla-release/config/rules.mk:816: recipe for target 'libxul.so' failed
gmake[7]: *** [libxul.so] Error 1
gmake[7]: Leaving directory '/tmp/ports/usr/ports/www/firefox/work/mozilla-release/obj-x86_64-portbld-freebsd10.1/toolkit/library'
/tmp/ports/usr/ports/www/firefox/work/mozilla-release/config/recurse.mk:74: recipe for target 'toolkit/library/target' failed
gmake[6]: *** [toolkit/library/target] Error 2
gmake[6]: Leaving directory '/tmp/ports/usr/ports/www/firefox/work/mozilla-release/obj-x86_64-portbld-freebsd10.1'
/tmp/ports/usr/ports/www/firefox/work/mozilla-release/config/recurse.mk:36: recipe for target 'compile' failed
gmake[5]: *** [compile] Error 2
gmake[5]: Leaving directory '/tmp/ports/usr/ports/www/firefox/work/mozilla-release/obj-x86_64-portbld-freebsd10.1'
/tmp/ports/usr/ports/www/firefox/work/mozilla-release/config/rules.mk:545: recipe for target 'default' failed
gmake[4]: *** [default] Error 2
gmake[4]: Leaving directory '/tmp/ports/usr/ports/www/firefox/work/mozilla-release/obj-x86_64-portbld-freebsd10.1'
/tmp/ports/usr/ports/www/firefox/work/mozilla-release/client.mk:398: recipe for target 'realbuild' failed
gmake[3]: *** [realbuild] Error 2
gmake[3]: Leaving directory '/tmp/ports/usr/ports/www/firefox/work/mozilla-release'
/tmp/ports/usr/ports/www/firefox/work/mozilla-release/client.mk:171: recipe for target 'build' failed
gmake[2]: *** [build] Error 2
gmake[2]: Leaving directory '/tmp/ports/usr/ports/www/firefox/work/mozilla-release'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/firefox
*** Error code 1
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2015-02-28 12:03:11 UTC
Auto-assigned to maintainer gecko@FreeBSD.org
Comment 2 commit-hook freebsd_committer freebsd_triage 2015-02-28 13:54:57 UTC
A commit references this bug:

Author: jbeich
Date: Sat Feb 28 13:54:14 UTC 2015
New revision: 380142
URL: https://svnweb.freebsd.org/changeset/ports/380142

Log:
  Unbreak build when LOGGING option is disabled

  PR:		198090
  Reported by:	Piotr Kubaj <pkubaj@riseup.net>
  Reported by:	Matthew D. Fuller <fullermd@over-yonder.net>
  Reported by:	rozhuk.im@gmail.com
  Obtained from:	https://github.com/mozilla/gecko-dev/commit/6af7f0e6
  MFH:		2015Q1
  X-MFH-With:	r380090

Changes:
  head/www/firefox/files/patch-bug1128161
Comment 3 Jan Beich freebsd_committer freebsd_triage 2015-02-28 13:58:56 UTC
Thanks. Committed. Knowing that more than one person is affected and pointing at upstream bug was very valuable.
Comment 4 commit-hook freebsd_committer freebsd_triage 2015-03-25 06:47:26 UTC
A commit references this bug:

Author: jbeich
Date: Wed Mar 25 06:47:11 UTC 2015
New revision: 382198
URL: https://svnweb.freebsd.org/changeset/ports/382198

Log:
  MFH: r380090, r380096, r380101, r380109, r380142, r380547, r380888
  MFH: r381889, r381911

  - Update OpenH264 to 1.4.0
  - Update NSS and ca_root_nss to 3.18
  - Update Firefox to 36.0.4
  - Update Firefox ESR and libxul to 31.5.3
  - Update Thunderbird to 31.5.0
  - Update SeaMonkey to 2.33.1
  - Update Enigmail to 1.8
  - Check if NS_NewNativeLocalFile() succeeds before using [1]
  - Unbreak build when LOGGING option is disabled [2]
  - Remove GIO description after r314893
  - bsd.gecko.mk: Prune conditionals for files removed 4 months ago

  Changes:	https://github.com/cisco/openh264/releases/tag/v1.4.0
  Changes:	http://mozilla.6506.n7.nabble.com/ANNOUNCE-NSPR-4-10-8-Release-td332365.html
  Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.18_release_notes
  Changes:	https://www.mozilla.org/firefox/36.0.4/releasenotes/
  Changes:	https://www.mozilla.org/firefox/31.5.3/releasenotes/
  Changes:	http://www.seamonkey-project.org/releases/seamonkey2.33/
  Changes:	https://www.enigmail.net/download/changelog.php#enig1.8
  PR:		198090 [2]
  Reported by:	Piotr Kubaj <pkubaj@riseup.net> [2]
  Reported by:	Matthew D. Fuller <fullermd@over-yonder.net> [2]
  Reported by:	rozhuk.im@gmail.com [2]
  Obtained from:	PkgSrc [1]
  Obtained from:	https://github.com/mozilla/gecko-dev/commit/6af7f0e6 [2]
  Security:	https://vuxml.freebsd.org/freebsd/99029172-8253-407d-9d8b-2cfeab9abf81.html
  Security:	https://vuxml.freebsd.org/freebsd/76ff65f4-17ca-4d3f-864a-a3d6026194fb.html
  Approved by:	ports-secteam (zi, delphij), portmgr (erwin)

Changes:
_U  branches/2015Q1/
  branches/2015Q1/Mk/Uses/gecko.mk
  branches/2015Q1/Mk/bsd.gecko.mk
  branches/2015Q1/mail/linux-thunderbird/Makefile
  branches/2015Q1/mail/linux-thunderbird/distinfo
  branches/2015Q1/mail/thunderbird/Makefile
  branches/2015Q1/mail/thunderbird/distinfo
  branches/2015Q1/mail/thunderbird/files/patch-bug1021761
  branches/2015Q1/mail/thunderbird/files/patch-bug1083461
  branches/2015Q1/mail/thunderbird/files/patch-bug991253
  branches/2015Q1/mail/thunderbird-i18n/Makefile
  branches/2015Q1/mail/thunderbird-i18n/distinfo
  branches/2015Q1/multimedia/openh264/Makefile
  branches/2015Q1/multimedia/openh264/distinfo
  branches/2015Q1/multimedia/openh264/pkg-plist
  branches/2015Q1/security/ca_root_nss/Makefile
  branches/2015Q1/security/ca_root_nss/distinfo
  branches/2015Q1/security/nss/Makefile
  branches/2015Q1/security/nss/distinfo
  branches/2015Q1/www/firefox/Makefile
  branches/2015Q1/www/firefox/Makefile.options
  branches/2015Q1/www/firefox/distinfo
  branches/2015Q1/www/firefox/files/patch-bug1013882
  branches/2015Q1/www/firefox/files/patch-bug1021761
  branches/2015Q1/www/firefox/files/patch-bug1041795
  branches/2015Q1/www/firefox/files/patch-bug1082199
  branches/2015Q1/www/firefox/files/patch-bug1083461
  branches/2015Q1/www/firefox/files/patch-bug1097592
  branches/2015Q1/www/firefox/files/patch-bug1122547
  branches/2015Q1/www/firefox/files/patch-bug1122586
  branches/2015Q1/www/firefox/files/patch-bug1128161
  branches/2015Q1/www/firefox/files/patch-bug847568
  branches/2015Q1/www/firefox/files/patch-bug858919
  branches/2015Q1/www/firefox/files/patch-bug991253
  branches/2015Q1/www/firefox/files/patch-ijg-libjpeg
  branches/2015Q1/www/firefox/files/patch-system-openh264
  branches/2015Q1/www/firefox/files/patch-z-bug517422
  branches/2015Q1/www/firefox-esr/Makefile
  branches/2015Q1/www/firefox-esr/distinfo
  branches/2015Q1/www/firefox-esr/files/patch-bug1021761
  branches/2015Q1/www/firefox-esr/files/patch-bug1083461
  branches/2015Q1/www/firefox-esr/files/patch-bug991253
  branches/2015Q1/www/firefox-esr-i18n/Makefile
  branches/2015Q1/www/firefox-esr-i18n/distinfo
  branches/2015Q1/www/firefox-i18n/Makefile
  branches/2015Q1/www/firefox-i18n/distinfo
  branches/2015Q1/www/libxul/Makefile
  branches/2015Q1/www/libxul/distinfo
  branches/2015Q1/www/libxul/files/patch-bug1021761
  branches/2015Q1/www/libxul/files/patch-bug1083461
  branches/2015Q1/www/libxul/files/patch-bug991253
  branches/2015Q1/www/linux-firefox/Makefile
  branches/2015Q1/www/linux-firefox/distinfo
  branches/2015Q1/www/linux-firefox/pkg-plist
  branches/2015Q1/www/linux-seamonkey/Makefile
  branches/2015Q1/www/linux-seamonkey/distinfo
  branches/2015Q1/www/linux-seamonkey/pkg-plist
  branches/2015Q1/www/seamonkey/Makefile
  branches/2015Q1/www/seamonkey/distinfo
  branches/2015Q1/www/seamonkey/files/patch-bug1021761
  branches/2015Q1/www/seamonkey/files/patch-bug1041795
  branches/2015Q1/www/seamonkey/files/patch-bug1061736
  branches/2015Q1/www/seamonkey/files/patch-bug1082199
  branches/2015Q1/www/seamonkey/files/patch-bug1083461
  branches/2015Q1/www/seamonkey/files/patch-bug1122547
  branches/2015Q1/www/seamonkey/files/patch-bug1122586
  branches/2015Q1/www/seamonkey/files/patch-bug1128161
  branches/2015Q1/www/seamonkey/files/patch-bug847568
  branches/2015Q1/www/seamonkey/files/patch-bug858919
  branches/2015Q1/www/seamonkey/files/patch-bug991253
  branches/2015Q1/www/seamonkey/files/patch-ijg-libjpeg
  branches/2015Q1/www/seamonkey/files/patch-system-openh264
  branches/2015Q1/www/seamonkey/files/patch-z-bug517422
  branches/2015Q1/www/seamonkey-i18n/Makefile
  branches/2015Q1/www/seamonkey-i18n/distinfo
Comment 5 pvoigt 2015-03-31 23:55:23 UTC
The status of this PR is "Closed FIXED" and I am wondering, if the fix is already in www/firefox 37.0,1 (31 Mar 2015 22:15:16).

I am on 10.1-RELEASE (amd64) and I still have the same error as initially posted by rozhuk.im@gmail.com.

Could anybody please clarify, if this PR is indeed fixed and if I should be able to currently build latest www/firefox 37.0,1 (31 Mar 2015 22:15:16).

Regards,
Peter
Comment 6 Jan Beich freebsd_committer freebsd_triage 2015-04-01 00:31:16 UTC
files/patch-bug1128161 was removed on update because upstream backported the fix to Firefox 37 (Aurora at the time). See status-* flags and hg.mozilla.org links in

https://bugzilla.mozilla.org/show_bug.cgi?id=1128161

There could be another regression, I haven't checked LOGGING build yet.
Comment 7 fullermd 2015-04-01 00:42:58 UTC
I still have LOGGING=off, and I just built it fine.  Either it's working, or I'm not posting this   :)
Comment 8 pvoigt 2015-04-01 09:42:22 UTC
Created attachment 155082 [details]
www/firefox build log
Comment 9 pvoigt 2015-04-01 09:45:02 UTC
Thanks for feedback so far.

I have just started another try with LOGGING=off with just the same build error of the initial post.

# make showconfig
===> The following configuration options are available for firefox-37.0,1:
     CANBERRA=off: Sound theme alerts
     DBUS=on: D-Bus IPC system support
     DEBUG=off: Build with debugging support
     DTRACE=off: Build with DTrace probes
     GCONF=off: GConf configuration backend support
     GIO=on: Use GIO for file I/O
     GNOMEUI=off: libgnomeui support module
     GSTREAMER=on: Multimedia support via GStreamer
     LIBPROXY=off: Proxy support via libproxy
     LOGGING=off: Additional log messages
     OPTIMIZED_CFLAGS=on: Use extra compiler optimizations
     PGO=off: Use Profile-Guided Optimization
     PROFILE=off: Build with profiling support
     TEST=off: Build and/or run tests
====> Options available for the multi AUDIO: you have to choose at least one of them
     ALSA=on: ALSA audio architecture support
     PULSEAUDIO=off: PulseAudio sound server support
====> Options available for the single TOOLKIT: you have to select exactly one of them
     GTK2=on: GTK+ 2 GUI toolkit support
     GTK3=off: GTK+ 3 GUI toolkit support
===> Use 'make config' to modify these settings

Please find the full build log attached.

Should I create a new PR?
Comment 10 pvoigt 2015-04-12 21:09:08 UTC
Well, latest www/firefox has the same issue. I have created PR 199404:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199404