bug-gnulib
[Top][All Lists]
Advanced

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

conflicting types for 'rpl_getcwd'


From: Marc-André Lureau
Subject: conflicting types for 'rpl_getcwd'
Date: Wed, 17 Aug 2011 18:15:32 +0200

Hi

I am trying to compile libvirt which uses gnulib on f16 mingw32:

make[4]: Entering directory `/usr/src/libvirt/gnulib/lib'
  CC     pipe2.lo
In file included from ./sys/stat.h:375:0,
                 from ./fcntl.h:56,
                 from pipe2.c:26:
/usr/i686-w64-mingw32/sys-root/mingw/include/direct.h:57:17: error:
conflicting types for 'rpl_getcwd'
./unistd.h:853:1: note: previous declaration of 'rpl_getcwd' was here
make[4]: *** [pipe2.lo] Error 1

Apparently, getcwd get replaced by gnulib, perhaps because:

configure:11532: checking whether getcwd (NULL, 0) allocates memory for result
configure:11597: result: guessing no

but there is already a declaration of getcwd in mingw direct.h:

  char *__cdecl getcwd(char *_DstBuf,int _SizeInBytes)
__MINGW_ATTRIB_DEPRECATED_MSVC2005;

If I put #include <unistd.h> after #include <fcntl.h>, compilation goes on

regards

-- 
Marc-André Lureau



reply via email to

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