delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/10/01/16:21:08

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=OUtiMLgMCEdUQ2SY
WiMZ6GcP+udgUqc5lkUKlJ4O2t0wMPX9cdGBw1it5DlrgczjOW7tVC5SbP+mpIYm
urxQY6k6+ipLN4kz7JeH4ONgazaV30D7JR88HffpnPT3YlyYnpT2P3sE87VV1kJE
glrfBDUjb55GAO+mHNuP/8DeEzA=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=JsEDS/livndA0PMDUdWfAW
loMdI=; b=I1YWl5hiKL87Ww6sjHXyxqaa+e66e1UJUkyu94YQ9VpqkRFJYxAIih
lYdsdTbU+C7coEBu1UZP8MB4cY8d194VcWeglKTduYPZdFuzsOKCQP9ET287izMB
PgADQMWTdr38w0y2UkfFX6WBSJf6Lrz6GePMIoFnOgw7MEXwSMsL8=
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=-0.8 required=5.0 tests=AWL,BAYES_20,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: limerock02.mail.cornell.edu
X-CornellRouted: This message has been Routed already.
Subject: Re: New C compilation error using the Openwindow/xview-devel toolkit on current (September 2015) 32 bit Cygwin
To: cygwin AT cygwin DOT com
References: <CAB_pihYb0Na6xzMbnBniYFZnpPj2ik=76-dzq5euL3Y01igfQw AT mail DOT gmail DOT com>
From: Ken Brown <kbrown AT cornell DOT edu>
Message-ID: <560D95A3.9050403@cornell.edu>
Date: Thu, 1 Oct 2015 16:20:51 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
MIME-Version: 1.0
In-Reply-To: <CAB_pihYb0Na6xzMbnBniYFZnpPj2ik=76-dzq5euL3Y01igfQw@mail.gmail.com>
X-IsSubscribed: yes

On 10/1/2015 2:38 PM, Paul Morgan wrote:
> I can no longer compile C code linked to the Openwindows/xview-devel
> toolkit using gcc in Cygwin 32 bits, installed on Windows 7 32 or 64
> bit systems. I run setup-x86 weekly to update Cygwin - compilation ran
> fine in August 2015 but by mid September 2015 it was failing on the
> same code.
>
> I can reproduce this by compiling C code from the xview-examples
> package (from e.g., Debian i386
> https://packages.debian.org/jessie/xview-examples ), to eliminate any
> issues with my specific code. For example,
>
> $ cd usr/share/doc/xviewg/examples/panels
>
> $ cc -O -I/usr/openwin/include simple_panel.c -L/usr/openwin/lib
> -lxview -lolgx -lX11 -o simple_panel
>
> In file included from /usr/openwin/include/xview/pkg.h:27:0,
>                   from /usr/openwin/include/xview/pkg_public.h:19,
>                   from /usr/openwin/include/xview/generic.h:39,
>                   from /usr/openwin/include/xview/xview_xvin.h:41,
>                   from /usr/openwin/include/xview/xview.h:18,
>                   from simple_panel.c:5:
> /usr/openwin/include/xview/notify.h:34:13: error: conflicting types
> for ‘ucontext_t’
>   typedef int ucontext_t;
>               ^
> In file included from /usr/include/sys/signal.h:357:0,
>                   from /usr/include/signal.h:5,
>                   from /usr/openwin/include/xview/xview_xvin.h:18,
>                   from /usr/openwin/include/xview/xview.h:18,
>                   from simple_panel.c:5:
> /usr/include/sys/ucontext.h:24:3: note: previous declaration of
> ‘ucontext_t’ was here
>   } ucontext_t;
>     ^
>
> There now appears to be an issue with the definition of ucontext_t in
> xview-devel with respect to Cygwin. If I manually edit
> /usr/openwin/include/xview/base.h and change line 70 from undef to
> #define SYSV_UCONTEXT
> ... the example above then compiles fine.
>
> I cannot find any reference to recent Cygwin updates related to the
> definition of ucontext_t

https://cygwin.com/ml/cygwin-announce/2015-08/msg00033.html

--
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