delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/30/12:17:52

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Thu, 30 Sep 2004 18:18:46 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
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: <Pine DOT CYG DOT 4 DOT 58 DOT 0409301052210 DOT 2292 AT fordpc DOT vss DOT fsi DOT com>
Mime-Version: 1.0
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 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019