bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: test-fcntl-h-c++.cc:32: error: 'open' is not a member of 'gnulib'


From: Jim Meyering
Subject: Re: test-fcntl-h-c++.cc:32: error: 'open' is not a member of 'gnulib'
Date: Sat, 20 Mar 2010 22:54:53 +0100

Bruno Haible wrote:
> Hi Jim,
>
>> >>       test-fcntl-h-c++.cc:32: error: 'open' is not a member of 'gnulib'
>> >>       make[4]: *** [test-fcntl-h-c++.o] Error 1
>> >
>> > On which platform, please? And which C++ compiler?
>>
>> Fedora 12, gcc-c++-4.4.3-4.fc12.x86_64
>>
>> FYI, I pushed the grep changes, so if you get the latest,
>> revert the latest bootstrap.conf change (which avoids the
>> failing test), then ./bootstrap && ./configure etc. should
>> demonstrate the failure.
>
> I did this - same version of grep sources, gcc 4.4.3, but not on Fedora 12 -,
> and "make check" passes for me:
>
>   PASS: test-fcntl-h
>   PASS: test-fcntl-h-c++
>
> In order to progress, I would need from your machine
>   - the result of preprocessing test-fcntl-h-c++.cc (g++ -E ...)
>   - the set of defined macros in this compilation (g++ -E -dM ...).

Thanks for checking!

Actually, I can reproduce it now.

Here's the line it's complaining about:

static int (* __attribute__ ((__unused__)) signature_check32) (const char *, 
int, ...) = gnulib::open;


I produced the preprocessed output using this trick:

    make -C gnulib-tests AM_CXXFLAGS='-dD -E' test-fcntl-h-c++.o

here it is, in spite of the odd name:

Attachment: test-fcntl-h-c++.o.xz
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]