[Poppler-bugs] [Bug 28537] poppler can't be built with SunStudio Compiler (Patch inside)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jun 22 10:51:45 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=28537

--- Comment #7 from Daniel Flinkmann <dflinkmann at gmx.de> 2010-06-22 10:51:46 PDT ---
Hello again, 

i have sucessfully build poppler 0.14 with following patch:

less poppler-0.14.0.patch 
--- poppler-0.14.0/goo/gstrtod.cc       2010-01-16 23:43:07.000000000 +0000
+++ poppler-0.14.0_mod/goo/gstrtod.cc   2010-06-14 09:23:49.942061000 +0000
@@ -22,10 +22,11 @@

 #include "gstrtod.h"

-#include <clocale>
 #include <cerrno>
-#include <cstdlib>
-#include <cstring>
+#include <stdlib.h>
+#include <math.h>
+#include <string.h>
+#include <locale.h>

 #define ascii_isspace(c) \
   (c == ' ' || c == '\f' || c == '\n' || c == '\r' || c == '\t' || c == '\v')
--- poppler-0.14.0_orig/poppler/SplashOutputDev.cc      2010-05-29
09:14:11.000000000 +0000
+++ poppler-0.14.0/poppler/SplashOutputDev.cc   2010-06-14 12:09:28.145198000
+0000
@@ -72,6 +72,12 @@
 #define isfinite(x) _finite(x)
 #endif

+#ifdef __SUNPRO_CC
+#include <ieeefp.h>
+#define isfinite(x) finite(x)
+#endif
+
+
 //------------------------------------------------------------------------

 // Divide a 16-bit value (in [0, 255*255]) by 255, returning an 8-bit result.




when using  CPPFLAGS=-DFILE=__FILE -D_XPG6 


configure reported following support flags: 
Building poppler with support for:
  font configuration: fontconfig
  splash output:      yes
  cairo output:       yes
  abiword output:     no
  qt wrapper:         no
  qt4 wrapper:        no
  glib wrapper:       yes
    use GDK:          no
  cpp wrapper:        yes
  use gtk-doc:        no
  use libjpeg:        yes
  use libpng:         yes
  use zlib:           no
  use libcurl:        no
  use libopenjpeg:    no
  use cms:            no
  command line utils: yes


My suggestion would be a change in the configure script to utilize the CPPFLAGS
when using  __SUNPRO_CC   

Kind regards,

Daniel

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list