[Top][All Lists]
[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
- error: redefinition of 'struct option', Bruce Korb, 2010/02/17
- Re: error: redefinition of 'struct option', Eric Blake, 2010/02/17
- Re: error: redefinition of 'struct option', Bruce Korb, 2010/02/18
- Re: error: redefinition of 'struct option', Bruno Haible, 2010/02/18
- Re: error: redefinition of 'struct option', Bruce Korb, 2010/02/18
- Re: error: redefinition of 'struct option', Bruce Korb, 2010/02/18
- Re: error: redefinition of 'struct option',
Bruno Haible <=
- Re: error: redefinition of 'struct option', Bruce Korb, 2010/02/18
- new gnulib-tool option --find, Bruno Haible, 2010/02/19
- Re: error: redefinition of 'struct option', Bruce Korb, 2010/02/18
- Re: error after adding #includes to config.h, Bruno Haible, 2010/02/18
- Re: error after adding #includes to config.h, Bruce Korb, 2010/02/18
- Re: sharutils configuration, Bruno Haible, 2010/02/19
- Re: sharutils configuration, Bruce Korb, 2010/02/19