View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010567ParaViewBugpublic2010-04-16 10:362010-05-04 20:03
ReporterDavid Partyka 
Assigned ToDavid Partyka 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version3.8 
Target VersionFixed in Version3.8 
Summary0010567: Fix building Ogg/Theora on Solaris
DescriptionI'd like to suggest a patch to be able to easily compile ParaView 3.8.0 RC1 on
SPARC Solaris (SunOS 5.10, using self-compiled GCC 4.3.4 64bit) with Ogg/Theora
support enabled (-DVTK_USE_OGGTHEORA_ENCODER:BOOL=ON). Currently, that fails with

> /usr/ccs/bin/ld: illegal option -- version-script=/data/PV3.8.0RC1/VTK/Utilities/vtkoggtheora/vtkoggtheora.vscript
> usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?] file(s)
> [-64] enforce a 64-bit link-edit
> [-a] create an absolute file
> [-b] do not do special PIC relocations in a.out
> [-B direct | nodirect]
> establish direct bindings, or inhibit direct binding
> to, the object being created
> [-B dynamic | static]
> search for shared libraries|archives
> [-B eliminate] eliminate unqualified global symbols from the
> symbol table
> [...]

According to the ld man page, the option --version-script is only meaningful on
ELF platforms anyway, no wonder Solaris ld bails out.

With kind regards,
Sven
Additional InformationFrom c58d34b6b5a27b6626335d0493f1b9d33b575cef Mon Sep 17 00:00:00 2001
From: Sven Buijssen <sven.buijssen@tu-dortmund.de>
Date: Wed, 14 Apr 2010 13:01:24 +0200
Subject: [PATCH] COMP: Avoid command line option incompatible with Sun ld on Sun OS.

---
 VTK/Utilities/vtkoggtheora/CMakeLists.txt | 10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/VTK/Utilities/vtkoggtheora/CMakeLists.txt b/VTK/Utilities/vtkoggtheora/CMakeLists.txt
index 2059c2c..b455c38 100644
--- a/VTK/Utilities/vtkoggtheora/CMakeLists.txt
+++ b/VTK/Utilities/vtkoggtheora/CMakeLists.txt
@@ -126,12 +126,16 @@ IF(APPLE)
     "-read_only_relocs suppress -Wl,-exported_symbols_list,${VTKOGGTHEORA_SOURCE_DIR}/vtkoggtheora.exp"
     )
 ENDIF(APPLE)
-# assume that -Wl,--version-script works on UNIX systems (excluding Mac and Cygwin).
+# assume that -Wl,--version-script works on UNIX systems (excluding Mac, Cygwin and Solaris SPARC).
 # otherwise the user can always set to an empty string
 IF(UNIX AND NOT APPLE AND NOT CYGWIN)
- SET( VTKOGGTHEORA_SHARED_LINKER_FLAGS
- "-Wl,--version-script=${VTKOGGTHEORA_SOURCE_DIR}/vtkoggtheora.vscript"
+ IF("${CMAKE_SYSTEM_NAME}" MATCHES "SunOS")
+ SET( VTKOGGTHEORA_SHARED_LINKER_FLAGS "" )
+ ELSE("${CMAKE_SYSTEM_NAME}" MATCHES "SunOS")
+ SET( VTKOGGTHEORA_SHARED_LINKER_FLAGS
+ "-Wl,--version-script=${VTKOGGTHEORA_SOURCE_DIR}/vtkoggtheora.vscript"
     )
+ ENDIF("${CMAKE_SYSTEM_NAME}" MATCHES "SunOS")
 ENDIF(UNIX AND NOT APPLE AND NOT CYGWIN)
 SET(VTKOGGTHEORA_SHARED_LINKER_FLAGS "${VTKOGGTHEORA_SHARED_LINKER_FLAGS}"
   CACHE STRING "Additional linker flags for vtkoggtheora when building as a shared library"
--
1.7.0.3
TagsNo tags attached.
Project
Topic Name
Type
Attached Files

 Relationships

  Notes
(0020424)
David Partyka (developer)
2010-04-26 22:27

Fixed on master and release in 6f980cffa591e273a514a4ea4cdaf27cd1ff864c.
(0020574)
Alan Scott (manager)
2010-05-04 20:03

Trusting that this does fix builds on SunOS, since I don't have access to this OS.

 Issue History
Date Modified Username Field Change
2010-04-16 10:36 David Partyka New Issue
2010-04-16 10:36 David Partyka Status backlog => tabled
2010-04-16 10:36 David Partyka Assigned To => David Partyka
2010-04-26 22:27 David Partyka Note Added: 0020424
2010-04-26 22:27 David Partyka Status tabled => @80@
2010-04-26 22:27 David Partyka Fixed in Version => 3.8
2010-04-26 22:27 David Partyka Resolution open => fixed
2010-05-04 20:03 Alan Scott Note Added: 0020574
2010-05-04 20:03 Alan Scott Status @80@ => closed


Copyright © 2000 - 2018 MantisBT Team