pcp
[Top] [All Lists]

New OpenIndiana build failure

To: "Frank Ch. Eigler" <fche@xxxxxxxxxx>
Subject: New OpenIndiana build failure
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed, 19 Feb 2014 05:32:55 -0500 (EST)
Cc: PCP <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <1156313559.10896389.1392805834068.JavaMail.zimbra@xxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: L1YF8VmoXjNXebzdmRnJKKyhMLKRDA==
Thread-topic: New OpenIndiana build failure
Hi,

I've just starting seeing build failure this for the first time...

$ uname -a 
SunOS munch 5.11 oi_151a8 i86pc i386 i86pc Solaris

[...]
g++ -g -O2 -fPIC -fno-strict-aliasing -m64  -Wall -O2 -g -DPCP_DEBUG 
-DPCP_VERSION=\"3.9.0\" -I../../src/include -I../../src/include/pcp   -c 
pmmgr.cxx -o pmmgr.o
In file included from /usr/include/iso/stdlib_iso.h:46,
                 from /usr/include/stdlib.h:34,
                 from ../../src/include/pcp/pmapi.h:19,
                 from pmmgr.h:19,
                 from pmmgr.cxx:17:
/usr/include/sys/feature_tests.h:355:2: #error "Compiler or options invalid; 
UNIX 03 and POSIX.1-2001 applications      require the use of c99"
make: *** [pmmgr.o] Error 1


The following seems to workaround it (#undef doesn't strangely)...

diff --git a/src/pmmgr/pmmgr.cxx b/src/pmmgr/pmmgr.cxx
index f9de01b..cc6ecb0 100644
--- a/src/pmmgr/pmmgr.cxx
+++ b/src/pmmgr/pmmgr.cxx
@@ -12,7 +12,9 @@
  * for more details.
  */
 
+#ifndef _XOPEN_SOURCE
 #define _XOPEN_SOURCE 600
+#endif
 #include "pmmgr.h"
 #include "impl.h"


?  Or would a configure update & addition to the existing
BUILD_PMMGR check be better?

cheers.

--
Nathan

<Prev in Thread] Current Thread [Next in Thread>