d...@blackshard.net (Matthew R. Trower) writes:
> I'll try to set up an environment with 12.3 tomorrow, and see what
> happens.
>
>
Alright, so...
SolarisStudio12.3 compiles this fine. SunStudio12.1 encounters the
problem. It seems to me this is probably a compiler bug, then.
However...
Political reasons aside, SunStudio is available in-repo, from
OpenSolaris through latest OpenIndiana Hipster, with no Oracle account
required, no signed repos, no hassling with web downloads, etc... It's
there, and it won't be updated. Seeing as it's just this one line of
code preventing a clean build, I'd really like to maintain support for
this version.
Jon, would you be willing to apply either my previous one-liner (which
Ulrich confirmed works fine for him), or the patch I've attached here
(which just wraps that one-liner to only compile on SunStudio 12.1, and
explains it so no one unwittingly reverts it)?
-- Matthew R. Trower
>From 1b040e1e561639d69d454df00882d6eafc16c01a Mon Sep 17 00:00:00 2001
From: "Matthew R. Trower" <d...@blackshard.net>
Date: Wed, 13 Jun 2018 22:16:14 -0500
Subject: [PATCH] nsgml: Resolve symbol collision when building with SunStudio
12.1
---
cde/programs/nsgmls/Ptr.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/cde/programs/nsgmls/Ptr.h b/cde/programs/nsgmls/Ptr.h
index d8f2970a..21601fd7 100644
--- a/cde/programs/nsgmls/Ptr.h
+++ b/cde/programs/nsgmls/Ptr.h
@@ -93,7 +93,14 @@ public:
const T &operator*() const { return *Ptr<T>::pointer(); }
void swap(ConstPtr<T> &p) { Ptr<T>::swap(p); }
using Ptr<T>::isNull;
+
+#if __SUNPRO_CC == 0x5100
+ /* Needed to avoid symbol export collision */
+ void clear() { Ptr<T>::clear(); }
+#else
using Ptr<T>::clear;
+#endif
+
Boolean operator==(const Ptr<T> &p) const { return Ptr<T>::operator==(p); }
Boolean operator!=(const Ptr<T> &p) const { return Ptr<T>::operator!=(p); }
Boolean operator==(const ConstPtr<T> &p) const {
--
2.16.2
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel