Message 73562 - Python tracker (original) (raw)

When building Python on Solaris, I don't get the os.mknod function. This seems to be a combination of two errors:

  1. The definition of posix_mknod() in posixmodule.c is surrounded by:

#if defined(HAVE_MKNOD) && defined(HAVE_MAKEDEV) It works fine if I remove the HAVE_MAKEDEV define.

  1. The reason why HAVE_MAKEDEV doesn't work, is that the Python configure script only looks for makedev in <sys/types.h>, while on Solaris you need to include <sys/mkdev.h> as well.

cc -V gives: cc: Sun C 5.9 SunOS_sparc Patch 124867-01 2007/07/12 uname -a gives: SunOS zelda 5.9 Generic_117171-07 sun4us sparc FJSV,GPUZC-M