[PyQt] static Python target osx-64 missing util.h

Phil Thompson phil at riverbankcomputing.com
Tue Dec 8 15:45:10 GMT 2015


On 8 Dec 2015, at 3:09 p.m., John Hackett <john.hackett at icon-is.co.uk> wrote:
> 
> Phil,
> 
> the full error message is the following. If I comment out "#define HAVE_UTIL_H 1" I get the same message but without the last few lines.
> 
> 
> Modules/posixmodule.c: In function '_pystat_fromstructstat':
> Modules/posixmodule.c:1455:15: error: 'struct stat' has no member named 'st_atimespec'
> ansec = st->st_atimespec.tv_nsec;
> ^
> Modules/posixmodule.c:1456:15: error: 'struct stat' has no member named 'st_mtimespec'
> mnsec = st->st_mtimespec.tv_nsec;
> ^
> Modules/posixmodule.c:1457:15: error: 'struct stat' has no member named 'st_ctimespec'
> cnsec = st->st_ctimespec.tv_nsec;
> ^
> In file included from Modules/posixmodule.c:29:0:
> Modules/posixmodule.c:1483:54: error: 'struct stat' has no member named 'st_gen'
> PyInt_FromLong((long)st->st_gen));
> ^
> Include/structseq.h:36:44: note: in definition of macro 'PyStructSequence_SET_ITEM'
> (((PyStructSequence *)(op))->ob_item[i] = v)
> ^
> Modules/posixmodule.c:1489:22: error: 'struct stat' has no member named 'st_birthtime'
> bsec = (long)st->st_birthtime;
> ^
> Modules/posixmodule.c:1491:17: error: 'struct stat' has no member named 'st_birthtimespec'
> bnsec = st->st_birthtimespec.tv_nsec;
> ^
> In file included from Modules/posixmodule.c:29:0:
> Modules/posixmodule.c:1506:54: error: 'struct stat' has no member named 'st_flags'
> PyInt_FromLong((long)st->st_flags));
> ^
> Include/structseq.h:36:44: note: in definition of macro 'PyStructSequence_SET_ITEM'
> (((PyStructSequence *)(op))->ob_item[i] = v)
> ^

That's a separate (but similar) problem.

> Modules/posixmodule.c: At top level:
> Modules/posixmodule.c:3869:18: fatal error: util.h: No such file or directory
> #include <util.h>
> ^
> compilation terminated.
> make: *** [.obj/posixmodule.o] Error 1

There seems to be a problem with your setup. You should be able to find util.h in the Xcode stuff...

find /Applications/Xcode.app -name util.h

Phil


More information about the PyQt mailing list