bug-gnulib
[Top][All Lists]
Advanced

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

Re: error: redefinition of 'struct option'


From: Bruno Haible
Subject: Re: error: redefinition of 'struct option'
Date: Fri, 19 Feb 2010 00:59:17 +0100
User-agent: KMail/1.9.9

Bruce Korb wrote:
> there is a bizarre
> dependency problem that causes close-hook.c to be recompiled for me,
> but you don't see it.  Just for grins, try removing close-hook.o and
> see if it rebuilds correctly.  :-}
> ...
> Some more data points.  sharutils-bld/lib/getopt.h gets rewritten
> somewhere along the line.

Indeed: You have a getopt.h in CVS. Upon the first "make", since
GETOPT_H is empty, the Makefile rule that rebuilds getopt.h is not
triggered. But when close-hook.c is compiled, a file .deps/close-hook.Po
is created that contains a dependency to getopt.h. After removing
close-hook.o, the next "make" therefore rebuilds getopt.h _although_
you are on a platform which already has a complete <getopt.h>.

I bet that once you remove that old getopt.h from your CVS, everything
will be fine.

Bruno




reply via email to

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