Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 30 Sep 2004 18:18:46 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: CVS cygserver compile errors w/gcc 3.4.3 Message-ID: <20040930161846.GD26915@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 AT cygwin DOT 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/