public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: cygwin@cygwin.com
Subject: Re: New C compilation error using the Openwindow/xview-devel toolkit on current (September 2015) 32 bit Cygwin
Date: Thu, 01 Oct 2015 20:20:00 -0000	[thread overview]
Message-ID: <560D95A3.9050403@cornell.edu> (raw)
In-Reply-To: <CAB_pihYb0Na6xzMbnBniYFZnpPj2ik=76-dzq5euL3Y01igfQw@mail.gmail.com>

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

  reply	other threads:[~2015-10-01 20:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-01 18:38 Paul Morgan
2015-10-01 20:20 ` Ken Brown [this message]
2015-10-03 13:13   ` Jon Turney

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=560D95A3.9050403@cornell.edu \
    --to=kbrown@cornell.edu \
    --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).