pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/44586: print/poppler does not compile on solaris



>Number:         44586
>Category:       pkg
>Synopsis:       print/poppler does not compile on solaris
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 16 21:20:10 +0000 2011
>Originator:     Stefan
>Release:        Sparc Solaris 9
>Organization:
>Environment:
>Description:
pkgsrc 2010Q4: compiling poppler/TextOutputDev.cc: symbols fmin and fmax are 
not found.
>How-To-Repeat:
bmake
>Fix:
add defined(__sun) around the defintions of fmin and fmax in 
poppler/TextOutputDev.cc:


--- poppler/TextOutputDev.cc.orig       Wed Feb 16 11:59:48 2011
+++ poppler/TextOutputDev.cc    Wed Feb 16 12:04:17 2011
@@ -63,7 +63,7 @@
 #include "ICSupport.h"
 #endif
 
-#if defined(__DragonFly__) || defined(__NetBSD__)
+#if defined(__DragonFly__) || defined(__NetBSD__) || defined(__sun)
 #include <sys/param.h>
 #if !(defined(__DragonFly__) && __DragonFly_version >= 200204) && 
!(defined(__NetBSD__) && (__NetBSD_Version__ >= 599002100 || 
(__NetBSD_Version__ >= 501000000 && __NetBSD_Version__ < 599000000)))
 static double fmax(double x, double y) { if (isnan(x)) return y; if (isnan(y)) 
return x; return (x > y ? x : y);}




Home | Main Index | Thread Index | Old Index