Bug #2848

component openexr fails to build

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

Status:ResolvedStart date:2012-06-07
Priority:NormalDue date:
Assignee:Andrew Stormont% Done:


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


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 @@
+# 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.
 include ../../make-rules/prep.mk
 include ../../make-rules/configure.mk
 include ../../make-rules/ips.mk
@@ -37,7 +42,7 @@ include ../../make-rules/ips.mk

 # configure seems to add -nolibs, so we add that back the C++ runtime and stdlib
+CXXFLAGS.studio += $(studio_CXXLIB_CSTD)
 # there seems to be no other way to enable large files support
 # 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


#1 Updated by Andrew Stormont almost 3 years ago

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

#2 Updated by Andrew Stormont almost 3 years ago

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

Fixed in 6af5871a611fe813d726c08681ccdd09f84c77d7.

Also available in: Atom PDF