Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Thu, 30 Sep 2004 18:18:46 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: CVS cygserver compile errors w/gcc 3.4.3
Message-ID: <20040930161846.GD26915@cygbert.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <Pine.CYG.4.58.0409301052210.2292@fordpc.vss.fsi.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.CYG.4.58.0409301052210.2292@fordpc.vss.fsi.com>
User-Agent: Mutt/1.4.2i

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/

