pkgsrc-Bugs archive

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

pkg/49802: archivers/pigz won't build on Solaris



>Number:         49802
>Category:       pkg
>Synopsis:       archivers/pigz won't build on Solaris
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 31 01:15:00 +0000 2015
>Originator:     Brad Forschinger
>Release:        2014Q4
>Organization:
>Environment:
SunOS x 5.10 Generic_Virtual sun4u sparc SUNW,SPARC-Enterprise
cc: Sun C 5.12 SunOS_sparc Patch 148917-08 2014/09/10
>Description:

cc -O3 -Wall -Wextra -I/usr/include  -c -o yarn.o yarn.c
"/usr/include/sys/feature_tests.h", line 337: #error: "Compiler or options invalid for pre-UNIX 03 X/Open applications  and pre-2001 POSIX applications"

>How-To-Repeat:

>Fix:

--- yarn.c.orig Tue Mar 31 12:10:39 2015
+++ yarn.c      Tue Mar 31 12:11:25 2015
@@ -22,8 +22,10 @@
  */
 
 /* for thread portability */
+#ifndef __sun
 #define _XOPEN_SOURCE 700
 #define _POSIX_C_SOURCE 200809L
+#endif
 #define _THREAD_SAFE
 
 /* use large file functions if available */



Home | Main Index | Thread Index | Old Index