delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/18/17:30:53

X-Spam-Check-By: sourceware.org
Date: Sun, 18 Dec 2005 17:30:47 -0500
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Call for testing Cygwin snapshot (d_ino)
Message-ID: <20051218223047.GB8136@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <Pine DOT OSF DOT 4 DOT 21 DOT 0512182309350 DOT 5025-100000 AT ax0rm1 DOT roma1 DOT infn DOT it>
Mime-Version: 1.0
In-Reply-To: <Pine.OSF.4.21.0512182309350.5025-100000@ax0rm1.roma1.infn.it>
User-Agent: Mutt/1.5.11
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On Sun, Dec 18, 2005 at 11:22:33PM +0100, Angelo Graziosi wrote:
>
>Christopher Faylor wrote:
>>
>>>   Angelo Graziosi wrote:
>>>
>>>
>>> I built ROOT-5.06.00, a CERN application, at Nov 10 2005 using
>>> GCC-3.3.3-3 and the snapshot of that time.
>>>
>>> All worked fine.
>>>
>>> Now I have repeated the build using the same method, the same
>>> GCC-3.3.3-3, but with the current snapshot 20051216 23:59:19.
>>> 
>>> The build fails:
>>> 
>>> -------------------------------------------
>>> unix/src/TUnixSystem.cxx: In static member function `static const char* 
>>>    TUnixSystem::UnixGetdirentry(void*)':
>>> unix/src/TUnixSystem.cxx:3388: error: 'struct dirent' has no member
>>> named 'd_ino'
>>> make: *** [unix/src/TUnixSystem.o] Error 1
>>> -------------------------------------------
>>> 
>>> The code that causes this error should be :
>>> 
>>> -------------------------------------------
>>> #if defined(_POSIX_SOURCE)
>>> // Posix does not require that the d_ino field be present, and some
>>> // systems do not provide it.
>>> #   define REAL_DIR_ENTRY(dp) 1
>>> #else
>>> #   define REAL_DIR_ENTRY(dp) (dp->d_ino != 0)
>>> #endif
>>> -------------------------------------------
>>> 
>>> ...
>>> 
>>> Is there a workaround ?
>>
>> .....
>>
>> http://cygwin.com/ml/cygwin/2005-12/msg00205.html
>>
>> cgf
>
>If I have well understood, I should change
>
>
>   #   define REAL_DIR_ENTRY(dp) (dp->d_ino != 0)
>
>
>with 
>
>   #   define REAL_DIR_ENTRY(dp) (dp->__deprecated_d_ino != 0)
>
>
>Is this correct?

No.  In fact, I'll change that field to "__invalid_d_ino" just to
make it clearer that there is nothing there.

You should not be using it at all.

cgf

--
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