[New-bugs-announce] [issue3928] os.mknod missing on Solaris

Erik Sandberg report at bugs.python.org
Mon Sep 22 11:38:54 CEST 2008


New submission from Erik Sandberg <sandberg at virtutech.com>:

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.

2. 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

----------
components: Extension Modules
messages: 73562
nosy: sandberg
severity: normal
status: open
title: os.mknod missing on Solaris
type: behavior
versions: Python 2.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3928>
_______________________________________


More information about the New-bugs-announce mailing list