help regarding installation of pkg-config in Mingw on Windows

Dan Nicholson dbn.lists at gmail.com
Mon Apr 29 03:07:48 PDT 2013


On Mon, Apr 29, 2013 at 2:30 AM, Hardik Gohil <hardikgohil1988 at gmail.com> wrote:
>
> dirent.h is included in file

What do you mean by this? You're error below suggests that either
HAVE_DIRENT_H is not defined and dirent.h is not being included or
mingw's dirent.h with the appropriate definitions are not being used.
Can you tell which it is?

> here is full error screen
>
> make[6]: Entering directory `/home/system/webkit/pkg-config-0.28/glib/glib'
>   CC       gdir.lo
> gdir.c:60:3: error: unknown type name '_WDIR'
> gdir.c: In function 'g_dir_open_utf8':
> gdir.c:109:3: warning: implicit declaration of function '_wopendir'
> [-Wimplicit-function-declaration]
> gdir.c:109:14: warning: assignment makes pointer from integer without a cast
> [enabled by default]
> gdir.c: In function 'g_dir_read_name_utf8':
> gdir.c:222:7: warning: implicit declaration of function '_wreaddir'
> [-Wimplicit-function-declaration]
> gdir.c:222:14: warning: assignment makes pointer from integer without a cast
> [enabled by default]
> gdir.c:224:30: error: dereferencing pointer to incomplete type
> gdir.c:225:23: error: dereferencing pointer to incomplete type
> gdir.c:226:9: warning: assignment makes pointer from integer without a cast
> [enabled by default]
> gdir.c:231:42: error: dereferencing pointer to incomplete type
> gdir.c: In function 'g_dir_rewind':
> gdir.c:301:3: warning: implicit declaration of function '_wrewinddir'
> [-Wimplicit-function-declaration]
> gdir.c: In function 'g_dir_close':
> gdir.c:319:3: warning: implicit declaration of function '_wclosedir'
> [-Wimplicit-function-declaration]

This all suggests to me that some dirent.h is being found and it's not
the appropriate mingw one that has the wide character versions in it.
Does the include/dirent.h file in your mingw install and see if it
defines any of these things like _WDIR? Can you do "make V=1" so it
shows the whole command being run? Then maybe you can look at the -I
paths and see if there's some other dirent.h it might be finding.

--
Dan


More information about the pkg-config mailing list