Bug #2848

component openexr fails to build

Added by Andrew Stormont almost 2 years ago. Updated almost 2 years ago.

Status:Resolved Start date:2012-06-07
Priority:Normal Due date:
Assignee:Andrew Stormont % Done:

100%

Category:-
Target version:-
Difficulty:Medium Tags:needs-triage

Description

openexr fails to build with studio with cryptic linker errors. Since it builds with gcc, lets switch it over to that for now.

Proposed fix:

diff --git a/components/openexr/Makefile b/components/openexr/Makefile
index ea43873..127fef9 100644
--- a/components/openexr/Makefile
+++ b/components/openexr/Makefile
@@ -18,6 +18,7 @@
 #
 # CDDL HEADER END
 #
+# Copyright (c) 2012 Nexenta Systems, Inc.  All rights reserved.
 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
 #
 include ../../make-rules/shared-macros.mk
@@ -30,6 +31,10 @@ COMPONENT_ARCHIVE=      $(COMPONENT_SRC).tar.gz
 COMPONENT_ARCHIVE_HASH= sha1:b3650e6542f0e09daadb2d467425530bc8eec333
 COMPONENT_ARCHIVE_URL=  http://download.savannah.nongnu.org/releases/openexr/$(COMPONENT_ARCHIVE)

+# For some reason openexr fails to link when building with studio.
+# Need to investigate but for now lets just use gcc.
+COMPILER = gcc
+
 include ../../make-rules/prep.mk
 include ../../make-rules/configure.mk
 include ../../make-rules/ips.mk
@@ -37,7 +42,7 @@ include ../../make-rules/ips.mk
 PATCH_LEVEL = 0

 # configure seems to add -nolibs, so we add that back the C++ runtime and stdlib
-CXXFLAGS += $(studio_CXXLIB_CSTD)
+CXXFLAGS.studio += $(studio_CXXLIB_CSTD)
 # there seems to be no other way to enable large files support
 CXXFLAGS += $(CPP_LARGEFILES)
 # it seems that --with-pic doesn't get PIC flags to the C++ compiler

Related issues

blocks illumian-userland - Bug #2721: illumian-userland fails to build in its entirety New 2012-05-12

History

Updated by Andrew Stormont almost 2 years ago

  • Project changed from illumos-userland to illumian-userland
  • Assignee set to Andrew Stormont

Updated by Andrew Stormont almost 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Fixed in 6af5871a611fe813d726c08681ccdd09f84c77d7.

Also available in: Atom PDF