bug-gnulib
[Top][All Lists]
Advanced

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

Re: ./getopt.h:195: error: redefinition of 'struct option'


From: Eric Blake
Subject: Re: ./getopt.h:195: error: redefinition of 'struct option'
Date: Fri, 04 Jun 2010 08:26:33 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b2pre Mnenhy/0.8.2 Thunderbird/3.0.4

On 06/04/2010 08:05 AM, Richard W.M. Jones wrote:
> 
> On Fri, Jun 04, 2010 at 03:16:38PM +0200, Bruno Haible wrote:
>> The first one is fine. The second one should not be there.
> 
> Yes, I see now that gnulib/lib/getopt.h is present on the machine
> which fails and absent on the other one.
> 
>> Conclusion: You had a getopt.h that was necessary for one platform, and you
>> transported it to another platform where it is not needed.
> 
> Obviously I wouldn't have done that, but I'll see if make distclean
> will fix it.

Meanwhile, gnulib could help the situation, by splitting a portion of
the current getopt{,-gnu} module out into a new header getopt-h that
guarantees a valid getopt.h wrapper even for glibc, allowing us to
implement GNULIB_POSIXCHECK semantics.

It's not my highest priority, but I might be able to help with that task.

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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