public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Csaba Raduly <rcsaba@gmail.com>
To: cygwin list <cygwin@cygwin.com>
Subject: Re: Problems with time.h from an inexperienced user?
Date: Fri, 04 Jul 2014 08:20:00 -0000	[thread overview]
Message-ID: <CAEhDDbCgofaKj+sAv8DY4u0QPH9xH6EEj8rOMLtMmrxtkVm3_A@mail.gmail.com> (raw)
In-Reply-To: <CAKEKBE5j83O+t_NQH0BE2eLD5GScvuAzMkj+xt5dnhEfyrfqpQ@mail.gmail.com>

Hi Hal,

On Thu, Jul 3, 2014 at 11:37 PM, Hal Wills wrote:
> Apparently there is a discrepancy between how Cygwin handles timeval.h
> and how most Linux distributions handle it, because I am unable to
> build htop and ncmpcpp with visualizer support on Cygwin.
>
> Here are the errors when I attempt to 'make' ncmpcpp and './configure' htop:
>
>
> then mv -f ".deps/cmdargs.Tpo" ".deps/cmdargs.Po"; else rm -f
> ".deps/cmdargs.Tpo"; exit 1; fi
> In file included from cmdargs.cpp:41:0:
> visualizer.h:72:2: error: 'timeval' does not name a type
>   timeval m_timer;
>   ^
> Makefile:444: recipe for target 'cmdargs.o' failed
> make[2]: *** [cmdargs.o] Error 1
> make[2]: Leaving directory '/home/ullr/ncmpcpp/src'
> Makefile:305: recipe for target 'all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory '/home/ullr/ncmpcpp'
> Makefile:217: recipe for target 'all' failed
> make: *** [all] Error 2
>
>
> In file included from Header.h:13:0,
>                  from Settings.h:15,
>                  from AvailableMetersPanel.h:12,
>                  from AvailableMetersPanel.c:8:
> Meter.h:88:19: error: field 'time' has incomplete type
>     struct timeval time;
>                    ^

This _may_ be due to differences in how one system file includes another.

You could run the following on both Cygwin and Linux and try to figure
out the differences:
gcc -E ...... > cmdargs.i
gcc -H ..... 2> cmdargs.include-tree

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2014-07-04  8:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-03 21:37 Problems with time.h from an inexperienced user?‏ Hal Wills
2014-07-04  8:20 ` Csaba Raduly [this message]
2014-07-04  8:43 ` Problems with time.h from an inexperienced user? Csaba Raduly

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=CAEhDDbCgofaKj+sAv8DY4u0QPH9xH6EEj8rOMLtMmrxtkVm3_A@mail.gmail.com \
    --to=rcsaba@gmail.com \
    --cc=cygwin@cygwin.com \
    /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).