public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: John Dubchak <lists@johndubchak.com>
To: gcc-help@gcc.gnu.org
Subject: Re: Compile error: 'siginfo_t' is not declared using gcc-4.8.2 on RedHat, 6.4
Date: Mon, 27 Jan 2014 22:39:00 -0000	[thread overview]
Message-ID: <52E6E030.1020104@johndubchak.com> (raw)
In-Reply-To: <alpine.DEB.2.10.1401272314560.4027@laptop-mg.saclay.inria.fr>

On 1/27/14 2:20 PM, Marc Glisse wrote:
> On Mon, 27 Jan 2014, John Dubchak wrote:
>
>> However, after installing it with 'make' and 'make install' and
>> compiling with C++11 support using:
>>
>> /usr/local/gcc-4.8.2/bin/g++-48 -v -std=c++11 -c -I . -I
>> ./workspace/http/http-server/src -I ./jsoncpp-src-0.5.0/include -Wall
>> main.cpp -o main.o
>>
>> I get this error:
>>
>> In file included from main.cpp:14:
>> /usr/include/sys/wait.h:155:52: error: 'siginfo_t' has not been declared
>>  extern int waitid (idtype_t __idtype, __id_t __id, siginfo_t *__infop,
>>                                                     ^
>>
>> Here is the code that generates the error:
>>
>> #include <sys/wait.h>
>
> man waitpid
>
> SYNOPSIS
>         #include <sys/types.h>
>         #include <sys/wait.h>
>
> Did you try that?
>

Thanks for your reply, Marc.  Yes, I have tried that as well.  Here are 
the headers I am including:

#include <cerrno>
#include <sys/types.h>
#include <sys/wait.h>

The error persists:

In file included from http_server_signals.hpp:12:0,
                  from http_server.hpp:21,
                  from http_service_traits.hpp:15,
                  from main.cpp:14:
/usr/include/sys/wait.h:155:52: error: ‘siginfo_t’ has not been declared
  extern int waitid (idtype_t __idtype, __id_t __id, siginfo_t *__infop,

Thanks,
John


  reply	other threads:[~2014-01-27 22:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-27 21:57 John Dubchak
2014-01-27 22:20 ` Marc Glisse
2014-01-27 22:39   ` John Dubchak [this message]
2014-01-27 22:44     ` Jonathan Wakely
     [not found]       ` <52E6E3CB.3050503@johndubchak.com>
     [not found]         ` <CAH6eHdSnAaFvtopT_UsLfStWPaVqfLX8vei4OO8H=a=XC=1OLg@mail.gmail.com>
     [not found]           ` <52E6EE2E.5040909@johndubchak.com>
     [not found]             ` <CAH6eHdQ=QnbjN4VHexhbbZuOK3P4eAeYfXefcC1DqfkDxbUB5w@mail.gmail.com>
2014-01-28  0:20               ` John Dubchak
2014-01-28  1:51                 ` Jonathan Wakely
2014-01-28 18:10                   ` John Dubchak
2014-01-28 18:22                     ` John Dubchak
2014-01-28 18:47                       ` Jonathan Wakely
2014-01-28 18:42                     ` Jonathan Wakely
  -- strict thread matches above, loose matches on Subject: below --
2014-01-27 21:57 John Dubchak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52E6E030.1020104@johndubchak.com \
    --to=lists@johndubchak.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).