This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: CVS cygserver compile errors w/gcc 3.4.3
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 30 Sep 2004 18:18:46 +0200
- Subject: Re: CVS cygserver compile errors w/gcc 3.4.3
- References: <Pine.CYG.4.58.0409301052210.2292@fordpc.vss.fsi.com>
- Reply-to: cygwin at cygwin dot com
On Sep 30 10:57, Brian Ford wrote:
> My own, compiled from CVS:
> gcc (GCC) 3.4.3 20040928 (prerelease)
>
> ../../../../cygwin/winsup/cygserver/sysv_sem.cc:179: error: `__offsetof__'
> was not declared in this scope
> ../../../../cygwin/winsup/cygserver/sysv_sem.cc: In function `void
> seminit()':
> ../../../../cygwin/winsup/cygserver/sysv_sem.cc:217: error: `__offsetof__'
> undeclared (first use this function)
> ../../../../cygwin/winsup/cygserver/sysv_sem.cc:217: error: (Each
> undeclared identifier is reported only once for each function it appears
> in.)
>
> This is a mess of macros in code that I'm not familiar with, so I thought
> I'd just report it rather than try to fix it. It's not a showstopper
> for me anyway.
Thanks, I'm aware of this problem. This is original code from FreeBSD,
but the FreeBSD code is plain C while I converted it partly to C++.
Unfortunately the offsetof macro in case of using C++ has drastically
changed with GCC 3.4 and it's said to be more correct this way...
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader mailto:cygwin@cygwin.com
Red Hat, Inc.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/