[LLVMbugs] Compile error on 64-bit x86 Solaris
zvrba at ifi.uio.no
Wed Oct 24 11:27:19 PDT 2007
On Wed, Oct 24, 2007 at 11:51:35AM -0700, Chris Lattner wrote:
> On Wed, 24 Oct 2007, Zeljko Vrba wrote:
> >>>following files:
> >>Ok, which ones are we talking about?
> >Here's the chain of includes (dumped by -H option to g++) that leads
> >to the inclusion of ucontext.h header (each . is an include depth):
> Ugh. We can't hack every #include of <vector>
No, it's not <vector>, but <unistd.h>
> >including <sys/ucontext.h>. The inclusion of <sys/wait.h> in <stdlib.h> is
> >guarded by
> >#if defined(__EXTENSIONS__) || defined(_XPG4)
> >#include <sys/wait.h>
> Please try to find a way to make sure these aren't defined :).
If __EXTENSIONS__ aren't defined (I don't know yet what defines them), I get
the following error (I specify -U__EXTENSIONS__ on the command line):
error: '::vfwscanf' has not been declared
> Are the #defines of DS and CS guarded by anything in wait.h?
They are guarded in <sys/regset.h> by:
#if !defined(_XPG4_2) || defined(__EXTENSIONS__)
More information about the llvm-bugs