delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/07/04/04:20:39

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; q=dns; s=default; b=b1
DgqrW+poiE8B23LwIFAl/IEb6V67WKEm6WZQSWLDyjOSdGZUpYex5Bk9j1HYVg8z
QfwjY/U6wZGw7pQSb3GTmtCcVSOjI1i9NTEUapOKN7G7GKRtyhvIq36y7kKI1eXw
i3RZYslK1onhUd+vWUKRiWI/LukPxY004bH3/4aWI=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; s=default; bh=LgvhVt4B
YmEoAfcvZuO885DJbCg=; b=geBcjrZecpfa8hx9pWJ3TIo2ES1MXDHdolWiqBnV
AdPgdwQRFqmQUbPCVK0IQ2v7Wf8i4OnUfhhF9bOzaqK/6r3yeJzzjve7G/hgIDwj
Ocue4Rsn+a81Mdluph7BklXmUGsdyKRbmVKrbTZmsxZ8b9pUWbZsIgjynFm0lGfp
Msg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-wi0-f180.google.com
MIME-Version: 1.0
X-Received: by 10.180.92.65 with SMTP id ck1mr16529532wib.48.1404462009162; Fri, 04 Jul 2014 01:20:09 -0700 (PDT)
In-Reply-To: <CAKEKBE5j83O+t_NQH0BE2eLD5GScvuAzMkj+xt5dnhEfyrfqpQ@mail.gmail.com>
References: <CAKEKBE5j83O+t_NQH0BE2eLD5GScvuAzMkj+xt5dnhEfyrfqpQ AT mail DOT gmail DOT com>
Date: Fri, 4 Jul 2014 10:20:09 +0200
Message-ID: <CAEhDDbCgofaKj+sAv8DY4u0QPH9xH6EEj8rOMLtMmrxtkVm3_A@mail.gmail.com>
Subject: Re: Problems with time.h from an inexperienced user?
From: Csaba Raduly <rcsaba AT gmail DOT com>
To: cygwin list <cygwin AT cygwin DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019