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

Re: Bug#677861: lftp: FTBFS[kfreebsd-i386]: error: conflicting declaration 'typedef __int32_t gl_intptr_t'



Hi,

On Tue, 30 Oct 2012 14:04:42 -0700
Christoph Egger <christoph@debian.org> wrote:
> Andreas Henriksson <andreas@fatal.se> writes:
> > I guess someone needs to untangle all the preprocessor and configure
> > macros in lib/stdint.in.h.
> > If someone from the kfreebsd camp could post the generated
> > lib/stdint.h that would be helpful to be able to see things a bit
> > more clearly.
Here is some further analysis:

lftp’s configure script checks for a working stdint.h and that test
fails on kfreebsd-i386 (tested on fischer.debian.org). The test contains
these lines at the top of the file:

#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
#include <stdint.h>

#if !(defined WCHAR_MIN && defined WCHAR_MAX)
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
#endif

However, libc0.1-dev:kfreebsd-i386’s /usr/include/stdint.h defines
WCHAR_MIN and others within a block that is guarded by:

/* The ISO C99 standard specifies that in C++ implementations these
   macros should only be defined if explicitly requested.  */
#if !defined __cplusplus || defined __STDC_LIMIT_MACROS

Looking at the current version of the corresponding m4 file, it seems
like this was already fixed in autotools:
http://codesearch.debian.net/show?file=m4_1.4.16-3%2Fm4%2Fstdint.m4&line=70&numfiles=185#L70

I therefore think that this bug can be fixed by "simply" rebuilding
lftp’s configure. However, I have no clue on what the best way to do
this is, so I’ll leave that up to somebody else.

-- 
Best regards,
Michael


Reply to: