Bug 192843 - www/chromium build failure openssl clash with cups
Summary: www/chromium build failure openssl clash with cups
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-chromium mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-20 03:38 UTC by Peter C B Henderson
Modified: 2016-03-05 16:46 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter C B Henderson 2014-08-20 03:38:53 UTC
Using "portinstall chromium" for Makefile version
"$FreeBSD: head/www/chromium/Makefile 365341 2014-08-18 19:07:11Z rene $",
the build fails with the following output:

-------------------------------------------------------------------------------

[13765/13765] LINK chrome
FAILED: g++47 -Wl,-rpath,/usr/local/lib -Wl,-rpath=/usr/local/lib/gcc47 -L/usr/local/lib/gcc47 -Wl,-z,now -Wl,-z,relro -Wl,--fatal-warnings -pthread -Wl,-z,noexecstack -fPIC -Wl,--disable-new-dtags -Wl,--no-keep-memory -L. -L/usr/local/lib -L/usr/local/lib/nss  -m64 -Wl,-O1 -Wl,--as-needed -o chrome -Wl,--start-group obj/chrome/app/chrome_initial.chrome_exe_main_aura.o obj/content/public/common/chrome_initial.content_switches.o obj/chrome/app/chrome_initial.chrome_main.o obj/chrome/app/chrome_initial.chrome_main_delegate.o obj/chrome/libcommon.a obj/chrome/libbrowser.a obj/ppapi/libppapi_host.a obj/printing/libprinting.a obj/chrome/libservice.a obj/chrome/libdebugger.a obj/chrome/libplugin.a obj/chrome/librenderer.a obj/chrome/libutility.a obj/content/libcontent_gpu.a obj/content/libcontent_ppapi_plugin.a obj/content/libcontent_worker.a obj/content/libcontent_app_both.a obj/chrome/libinstaller_util.a obj/components/libstartup_metric_utils.a obj/chrome/libcommon_net.a obj/base/libbase.a obj/base/libbase_static.a obj/base/allocator/liballocator_extension_thunks.a obj/third_party/modp_b64/libmodp_b64.a obj/base/third_party/dynamic_annotations/libdynamic_annotations.a obj/base/libsymbolize.a obj/base/libxdg_mime.a obj/crypto/libcrcrypto.a obj/net/third_party/nss/libcrssl.a obj/net/libnet.a obj/base/libbase_i18n.a obj/sdch/libsdch.a obj/url/liburl_lib.a obj/build/linux/libgio.a obj/gpu/libgpu_ipc.a obj/gpu/libcommand_buffer_common.a obj/gpu/command_buffer/libgles2_utils.a obj/ipc/libipc.a obj/chrome/libmetrics_proto.a obj/base/libbase_prefs.a obj/chrome/libcommon_constants.a obj/components/libbookmarks_core_common.a obj/components/libnacl_switches.a obj/components/libcloud_devices_common.a obj/components/libjson_schema.a obj/components/libmetrics.a obj/components/libcomponent_metrics_proto.a obj/components/libpolicy_component_common.a obj/google_apis/libgoogle_apis.a obj/third_party/libxml/libxml.a obj/components/libcloud_policy_proto.a obj/components/libpolicy.a obj/components/libcloud_policy_proto_generated_compile.a obj/components/libtranslate_core_common.a obj/components/libvariations.a obj/third_party/mt19937ar/libmt19937ar.a obj/content/libcontent_common.a obj/components/libtracing.a obj/skia/libskia_library.a obj/skia/libskia_opts.a obj/skia/libskia_opts_ssse3.a obj/third_party/sfntly/libsfntly.a obj/skia/libskia_chrome.a obj/skia/libskia_chrome_opts.a obj/third_party/libjingle/libjingle.a obj/third_party/libjingle/libjingle_p2p_constants.a obj/ui/accessibility/libaccessibility.a obj/ui/gfx/libgfx.a obj/ui/gfx/libgfx_geometry.a obj/ui/gfx/libgfx_x11.a obj/ui/accessibility/libax_gen.a obj/tools/json_schema_compiler/libapi_gen_util.a obj/ui/base/libui_base.a obj/ui/events/libevents_base.a obj/ui/events/libdom4_keycode_converter.a obj/ui/events/libevents.a obj/ui/events/libgesture_detection.a obj/ui/shell_dialogs/libshell_dialogs.a obj/ui/aura/libaura.a obj/gpu/libcommand_buffer_client.a obj/gpu/libcommand_buffer_service.a obj/gpu/libdisk_cache_proto.a obj/third_party/smhasher/libcityhash.a obj/ui/gl/libgl_wrapper.a obj/third_party/angle/src/libtranslator.a obj/third_party/angle/src/libpreprocessor.a obj/gpu/libgles2_cmd_helper.a obj/gpu/libgpu_config.a obj/build/linux/libpci.a obj/third_party/libXNVCtrl/libXNVCtrl.a obj/ui/compositor/libcompositor.a obj/cc/libcc.a obj/media/libmedia.a obj/third_party/opus/libopus.a obj/media/libshared_memory_support.a obj/media/libshared_memory_support_sse.a obj/third_party/ffmpeg/libffmpeg.a obj/third_party/libvpx/libvpx.a obj/third_party/libvpx/libvpx_asm_offsets_vp8.a obj/third_party/libvpx/libvpx_intrinsics_mmx.a obj/third_party/libvpx/libvpx_intrinsics_sse2.a obj/third_party/libvpx/libvpx_intrinsics_ssse3.a obj/media/libmedia_asm.a obj/media/libmedia_mmx.a obj/media/libmedia_sse.a obj/media/libmedia_sse2.a obj/gpu/libgles2_c_lib.a obj/gpu/libgles2_implementation.a obj/gpu/libgl_in_process_context.a obj/gpu/skia_bindings/libgpu_skia_bindings.a obj/mojo/libmojo_environment_chromium.a obj/mojo/libmojo_common_lib.a obj/mojo/libmojo_system_impl.a obj/mojo/libmojo_environment_chromium_impl.a obj/third_party/WebKit/Source/platform/libblink_platform.a obj/third_party/WebKit/Source/wtf/libwtf.a obj/third_party/WebKit/Source/platform/libblink_common.a obj/third_party/WebKit/Source/platform/libblink_heap_asm_stubs.a obj/third_party/ots/libots.a obj/third_party/brotli/libbrotli.a obj/third_party/qcms/libqcms.a obj/v8/tools/gyp/libv8_base.x64.a obj/v8/tools/gyp/libv8_snapshot.a obj/third_party/iccjpeg/libiccjpeg.a obj/third_party/WebKit/Source/web/libblink_web.a obj/third_party/WebKit/Source/core/libwebcore_dom.a obj/third_party/sqlite/libsqlite3.a obj/third_party/WebKit/Source/core/libwebcore_html.a obj/third_party/WebKit/Source/core/libwebcore_remaining.a obj/third_party/WebKit/Source/core/libwebcore_rendering.a obj/third_party/WebKit/Source/core/libwebcore_svg.a obj/third_party/WebKit/Source/core/libwebcore_generated.a obj/gin/libgin.a obj/third_party/WebKit/Source/modules/libmodules.a obj/webkit/common/gpu/libwebkit_gpu.a obj/webkit/common/libwebkit_common.a obj/webkit/libwebkit_storage_browser.a obj/sql/libsql.a obj/third_party/leveldatabase/libleveldatabase.a obj/webkit/libwebkit_storage_common.a obj/ppapi/libppapi_shared.a obj/ui/surface/libsurface.a obj/media/cast/libcast_transport.a obj/media/cast/libcast_base.a obj/media/cast/libcast_logging_proto.a obj/third_party/zlib/google/libzip.a obj/device/bluetooth/libdevice_bluetooth.a obj/device/usb/libdevice_usb.a obj/apps/common/api/libapps_api.a obj/chrome/common/extensions/api/libchrome_api.a obj/content/libcontent_browser.a obj/ui/snapshot/libsnapshot.a obj/content/browser/service_worker/libdatabase_proto.a obj/content/browser/speech/proto/libspeech_proto.a obj/content/libcontent_common_mojo_bindings.a obj/mojo/libmojo_cpp_bindings.a obj/mojo/libmojo_js_bindings.a obj/mojo/libmojo_shell_bindings.a obj/net/libhttp_server.a libyuv.a obj/jingle/libjingle_glue.a obj/ppapi/libppapi_ipc.a obj/dbus/libdbus.a obj/sync/libsync_api.a obj/sync/libsync_internal_api.a obj/sync/libsync_core.a obj/sync/libsync_notifier.a obj/jingle/libnotifier.a obj/third_party/cacheinvalidation/libcacheinvalidation.a obj/third_party/cacheinvalidation/libcacheinvalidation_proto_cpp.a obj/sync/libsync_proto.a obj/components/libautofill_core_common.a obj/components/libautofill_content_common.a obj/components/libpassword_manager_core_common.a obj/components/libsignin_core_common.a obj/components/libtranslate_content_common.a obj/components/libtranslate_language_detection.a obj/third_party/cld_2/libcld_2.a obj/components/libnacl_common.a obj/components/libvisitedlink_common.a obj/extensions/common/api/libextensions_api.a obj/extensions/libextensions_common.a obj/components/liburl_matcher.a obj/remoting/libremoting_client_plugin.a obj/ppapi/libppapi_cpp_objects.a obj/third_party/webrtc/modules/libdesktop_capture.a obj/third_party/webrtc/system_wrappers/source/libsystem_wrappers.a obj/third_party/webrtc/modules/libdesktop_capture_differ_sse2.a obj/remoting/libremoting_base.a obj/remoting/proto/libchromotocol_proto_lib.a obj/remoting/libremoting_client.a obj/remoting/libremoting_protocol.a obj/third_party/libwebm/libwebm.a obj/chrome/browser/search_engines/libprepopulated_engines.a obj/chrome/libbrowser_ui.a obj/chrome/libcert_logger_proto.a obj/chrome/libbrowser_ui_views.a obj/chrome/libin_memory_url_index_cache_proto.a obj/chrome/libsafe_browsing_proto.a obj/chrome/libsafe_browsing_report_proto.a obj/components/libauto_login_parser.a obj/components/libdom_distiller_core.a obj/components/libdistilled_page_proto.a obj/components/libdom_distiller_webui.a obj/components/libfeedback_proto.a obj/components/libonc_component.a obj/components/libpassword_manager_core_browser.a obj/components/libos_crypt.a obj/ui/message_center/libmessage_center.a obj/ui/views/libviews.a obj/ui/wm/libwm.a obj/ui/native_theme/libnative_theme.a obj/ui/display/libdisplay_util.a obj/chrome/libbrowser_extensions.a obj/chrome/libcast_channel_proto.a obj/chrome/libsync_file_system_proto.a obj/device/hid/libdevice_hid.a obj/device/serial/libdevice_serial.a obj/extensions/libextensions_browser.a obj/components/libkeyed_service_content.a obj/components/libkeyed_service_core.a obj/components/libuser_prefs.a obj/components/libusb_service.a obj/ui/keyboard/libkeyboard.a obj/chrome/browser/performance_monitor/libperformance_monitor.a obj/components/libautofill_content_risk_proto.a obj/device/nfc/libdevice_nfc.a obj/net/libnet_with_v8.a obj/third_party/hunspell/libhunspell.a obj/ui/web_dialogs/libweb_dialogs.a obj/chrome/browser/ui/libgtk2ui/libgtk2ui.a obj/ui/views/controls/webview/libwebview.a obj/ui/app_list/libapp_list.a obj/third_party/libaddressinput/libaddressinput.a obj/chrome/libprobe_message_proto.a obj/chrome/libsuggestions_proto.a obj/components/libautofill_core_browser.a obj/third_party/libphonenumber/libphonenumber.a obj/third_party/libphonenumber/libphonenumber_without_metadata.a obj/components/libwebdata_common.a obj/components/libbookmarks_core_browser.a obj/components/libfavicon_base.a obj/components/libquery_parser.a obj/components/libcaptive_portal.a obj/components/libdata_reduction_proxy_browser.a obj/components/libdata_reduction_proxy_common.a obj/components/libdomain_reliability.a obj/components/libfeedback_component.a obj/components/libinfobars_core.a obj/components/libinvalidation.a obj/components/libnavigation_metrics.a obj/components/libpolicy_component_browser.a obj/components/libprecache_core.a obj/components/libprecache_core_proto.a obj/components/librappor.a obj/components/libsearch_provider_logos.a obj/components/libsignin_core_browser.a obj/components/libsync_driver.a obj/components/libtranslate_core_browser.a obj/components/liblanguage_usage_metrics.a obj/courgette/libcourgette_lib.a obj/third_party/lzma_sdk/liblzma_sdk.a obj/google_apis/gcm/libgcm.a obj/chrome/libapps.a obj/chrome/libsync_file_system_drive_proto.a obj/components/libautofill_content_browser.a obj/components/libdom_distiller_content.a obj/components/libnavigation_interception.a obj/components/libpassword_manager_content_browser.a obj/components/libprecache_content.a obj/components/libsessions.a obj/components/libstorage_monitor.a obj/components/libtranslate_content_browser.a obj/components/libvisitedlink_browser.a obj/components/libweb_modal.a obj/testing/perf/libperf_test.a obj/chrome/libpolicy_path_parser.a obj/build/linux/libspeechd.a obj/ppapi/libppapi_proxy.a obj/content/libcontent_plugin.a obj/content/libcontent_child.a obj/webkit/child/libwebkit_child.a obj/components/libautofill_content_renderer.a obj/content/libcontent_renderer.a obj/mojo/libmojo_js_bindings_lib.a obj/webkit/renderer/compositor_bindings/libwebkit_compositor_bindings.a obj/webkit/renderer/compositor_bindings/libwebkit_compositor_support.a obj/third_party/libjingle/libjingle_webrtc.a obj/third_party/libjingle/libjingle_webrtc_common.a obj/third_party/libsrtp/libsrtp.a obj/third_party/webrtc/modules/libmedia_file.a obj/third_party/webrtc/modules/libvideo_capture_module.a obj/third_party/webrtc/modules/libwebrtc_utility.a obj/third_party/webrtc/modules/libaudio_coding_module.a obj/third_party/webrtc/modules/libCNG.a obj/third_party/webrtc/common_audio/libcommon_audio.a obj/third_party/webrtc/common_audio/libcommon_audio_sse2.a obj/third_party/webrtc/modules/libG711.a obj/third_party/webrtc/modules/libG722.a obj/third_party/webrtc/modules/libiLBC.a obj/third_party/webrtc/modules/libiSAC.a obj/third_party/webrtc/modules/libiSACFix.a obj/third_party/webrtc/modules/libPCM16B.a obj/third_party/webrtc/modules/libwebrtc_opus.a obj/third_party/webrtc/modules/libNetEq4.a obj/third_party/webrtc/modules/libwebrtc_video_coding.a obj/third_party/webrtc/modules/libwebrtc_i420.a obj/third_party/webrtc/common_video/libcommon_video.a obj/third_party/webrtc/modules/video_coding/utility/libvideo_coding_utility.a obj/third_party/webrtc/modules/video_coding/codecs/vp8/libwebrtc_vp8.a obj/third_party/webrtc/modules/libvideo_render_module.a obj/third_party/libjingle/libpeerconnection.a obj/third_party/webrtc/video_engine/libvideo_engine_core.a obj/third_party/webrtc/modules/librtp_rtcp.a obj/third_party/webrtc/modules/libpaced_sender.a obj/third_party/webrtc/modules/libremote_bitrate_estimator.a obj/third_party/webrtc/modules/remote_bitrate_estimator/librbe_components.a obj/third_party/webrtc/modules/libbitrate_controller.a obj/third_party/webrtc/modules/libvideo_processing.a obj/third_party/webrtc/modules/libvideo_processing_sse2.a obj/third_party/webrtc/voice_engine/libvoice_engine.a obj/third_party/webrtc/modules/libaudio_conference_mixer.a obj/third_party/webrtc/modules/libaudio_processing.a obj/third_party/webrtc/modules/libaudioproc_debug_proto.a obj/third_party/webrtc/modules/libaudio_processing_sse2.a obj/third_party/webrtc/modules/libaudio_device.a obj/components/libcdm_renderer.a obj/components/libcdm_common.a obj/components/libplugins_renderer.a obj/components/libvisitedlink_renderer.a obj/extensions/libextensions_renderer.a obj/media/cast/libcast_sender.a obj/media/cast/libcast_rtcp.a obj/third_party/smhasher/libmurmurhash3.a obj/content/libcontent_utility.a obj/mojo/libmojo_service_manager.a  -Wl,--end-group -L/usr/local/lib -lexecinfo -lkvm -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lintl -levent -L/usr/local/lib -lexecinfo -lnss3 -lsmime3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -licui18n -licuuc -licudata -lz -lgconf-2 -lgio-2.0 -lprotobuf -lpthread -lre2 -lxml2 -lfontconfig -lfreetype -lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lpango-1.0 -lm -lexpat -lpng15 -ljpeg -lX11 -lXi -lXcursor -lXext -lXfixes -lXrender -lXcomposite -lpci -lasound -lXdamage -lXtst -lXrandr -lwebp -lwebpdemux -lharfbuzz-icu -lharfbuzz -lxslt -liconv -lsnappy -lminizip -lcups -lssl -lcrypto -pthread -lcrypt -lgcrypt -lgpg-error -lFLAC -lspeex -ldbus-1 -lspeechd -lusb -lgtk-x11-2.0 -lgdk-x11-2.0 -lXinerama -latk-1.0 -lgdk_pixbuf-2.0 -lXss
/usr/local/bin/ld: warning: libssl.so.6, needed by /usr/local/lib/libcups.so, may conflict with libssl.so.8
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** [do-build] Error code 1

Stop in /usr/ports/www/chromium.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall20140819-5581-1yl3k0t env make FETCH_BEFORE_ARGS=-q
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
        ! www/chromium  (unknown build error)

-------------------------------------------------------------------------------

libssl.so.6 is in /usr/lib and was installed 2014 Jul 10 13:59.

libssl.so.8 is in /usr/local/lib and was installed 2014 Aug 15 15:17.
Its Makefiel version is
"$FreeBSD: head/security/openssl/Makefile 364855 2014-08-14 16:25:11Z dinoex $".

"uname -a" gives:
"FreeBSD  9.1-RELEASE-p17 FreeBSD 9.1-RELEASE-p17 #0 r268477: Thu Jul 10 12:56:00 EST 2014     root@:/usr/obj/usr/src/sys/GENERIC  amd64".


Following the above advise I tried setting "MAKE_JOBS_UNSAFE=yes", but this did not change anything.

I eventually got the build to finish and chrome to work by running:

export WITH_OPENSSL_PORT="YES"
portupgrade -fr cups-client
Comment 1 John Marino freebsd_committer 2014-08-20 07:36:14 UTC
over to chromium team
Comment 2 Tony Narlock 2015-06-14 00:48:56 UTC
Affects me also. 

FreeBSD 10.1-RELEASE-p10

make showconfig
===> The following configuration options are available for chromium-43.0.2357.125:
     CODECS=on: Compile and enable patented codecs like H.264
     DEBUG=off: Build with debugging support
     GCONF=off: GConf configuration backend support
     KERBEROS=on: Kerberos support
     PULSEAUDIO=off: PulseAudio sound server support
     TEST=off: Build and/or run tests
===> Use 'make config' to modify these settings


MAKE_JOBS_UNSAFE=yes make package    
===>  Building for chromium-43.0.2357.125
ninja: Entering directory `out/Debug'
[1/1] LINK chrome
FAILED: c++ -fstack-protector -Wl,-z,now -Wl,-z,relro -Wl,--fatal-warnings -pthread -Wl,-z,noexecstack -fPIC -Wl,--no-keep-memory -L. -Wl,--export-dynamic -L/usr/local/lib -L/usr/local/lib/nss -m64 -o chrome -Wl,--start-group obj/content/public/common/chrome_initial.content_switches.o obj/chrome/app/chrome_initial.chrome_exe_main_aura.o 
...
obj/third_party/pdfium/libfxcodec.a obj/third_party/pdfium/libfxcrt.a obj/third_party/pdfium/libfxedit.a obj/third_party/pdfium/libfxge.a obj/third_party/pdfium/libjavascript.a obj/third_party/pdfium/libjsapi.a obj/third_party/pdfium/libpdfwindow.a obj/third_party/pdfium/third_party/libfreetype.a -Wl,--end-group  -L/usr/local/lib -lexecinfo -lkvm -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lintl -levent -licui18n -licuuc -licudata -L/usr/local/lib -lexecinfo -lnss3 -lsmime3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lgio-2.0 -lfontconfig -lfreetype -lpangocairo-1.0 -lcairo -lpthread -lpangoft2-1.0 -lpango-1.0 -lharfbuzz -lpng16 -ljpeg -lX11 -lXi -lXcursor -lXext -lXfixes -lXrender -lXss -lxml2 -lre2 -latk-1.0 -lXcomposite -lasound -lm -lXdamage -lXtst -lXrandr -lwebp -lwebpdemux -lxslt -lz -lsnappy -lexpat -lrt -lcups -lssl -lcrypto -lcrypt -lspeechd -lusb -lFLAC -lspeex -ldbus-1 -lgtk-x11-2.0 -lgdk-x11-2.0 -lgdk_pixbuf-2.0
/usr/bin/ld: warning: libssl.so.7, needed by /usr/local/lib/libcups.so, may conflict with libssl.so.8
/usr/bin/ld: warning: libcrypto.so.7, needed by /usr/local/lib/libcups.so, may conflict with libcrypto.so.8
c++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/chromium
*** Error code 1

Stop.
make: stopped in /usr/ports/www/chromium
Comment 3 Tijl Coosemans freebsd_committer 2016-03-05 16:46:10 UTC
cups uses gnutls now so this is no longer an issue