[gs-bugs] [Bug 691453] error, patch and warnings from sunstudio linux

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Mon Jul 12 07:20:26 UTC 2010


Hin-Tak Leung <hintak at ghostscript.com> changed:

           What    |Removed                     |Added
         AssignedTo|hintak at ghostscript.com      |chris.liddell at artifex.com

--- Comment #2 from Hin-Tak Leung <hintak at ghostscript.com> 2010-07-12 07:20:25 UTC ---
The time struct problem can be worked around by a __SUNPRO_C as below (just
like the __INTEL_COMPILER, it seems). Chris, can you give this a try to see how
it fares on Solaris with Sunstudio? (i.e. review and possibly commit)

diff --git a/base/time_.h b/base/time_.h
index 2aed563..c06573f 100644
--- a/base/time_.h
+++ b/base/time_.h
@@ -35,7 +35,7 @@
 #  include <sys/time.h>
 #  if defined(Plan9) || defined(M_UNIX) || defined(_IBMR2) || \
       defined(_SEQUENT_) || defined(__GNUC__) || defined(__INTEL_COMPILER) ||\
-      defined(__hpux)
+      defined(__hpux) || defined(__SUNPRO_C)
      /* Plan 9, SCO, AIX and Sequent's DYNIX/ptx need both time.h and
       * sys/time.h! As of version 2.2, at least some glibc
       * installations also require both files. 

with this small change, compilation almost goes to completion until the last
part where -rdynamic needs to be removed (this probably does not apply to

Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the gs-bugs mailing list