[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnulib is not running for me
From: |
Bruno Haible |
Subject: |
Re: gnulib is not running for me |
Date: |
Mon, 31 May 2010 22:09:55 +0200 |
User-agent: |
KMail/1.9.9 |
Hi Markus,
> rm -f getopt.h-t getopt.h && \
> { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
> sed -e 's|@''HAVE_GETOPT_H''@|1|g' \
> -e 's|@''INCLUDE_NEXT''@|include_next|g' \
> -e 's|@''PRAGMA_SYSTEM_HEADER''@|#pragma GCC system_header|g' \
> -e 's|@''NEXT_GETOPT_H''@|<getopt.h>|g' \
> -e '/definition of _GL_ARG_NONNULL/r arg-nonnull.h' \
> < ./getopt.in.h; \
> } > getopt.h-t && \
> mv -f getopt.h-t getopt.h
This part looks OK.
> gcc -DHAVE_CONFIG_H -I. -I../src -g -O2 -MT getopt.o -MD -MP -MF
> .deps/getopt.Tpo -c -o getopt.o getopt.c
> In file included from getopt.h:31,
> from getopt.c:26:
> ./getopt.h:195: error: redefinition of 'struct option'
It looks like the generated getopt.h is including itself recursively,
which normally should work. But this is tricky stuff.
> Then I copied the tar archive created before to my centos machine,
> "configure && make" and got the above error again.
> ...
> If it helps, I can send you a tarball created after the failing make for
> analysis. I estimate it's less than 2 MB.
Yes, please. If you could send this tarball to me and Eric Blake?
It may be only a tiny detail that went wrong. The entire tarball is a good
starting point for analysing the problem.
Last not least, what's `gcc --version` on the CentOS machine?
Bruno