make test: fcntl IOError:[Errno 22]

Ryan Thomas rthomas at uiuc.edu
Fri Aug 27 04:07:07 EDT 1999


Installing Python 1.5.2 on Mac OS X Server (Mach/BSD 4.4, descendant of
nextstep).

./configure       # went fine
make              # went fine except "make[1]: [add2lib] Error 1
(ignored)"
make install      # went fine (no errors)

Later ran into a problem with fcntl (using mailman).

So, I ran make test and get this:

test test_fcntl crashed -- exceptions.IOError : [Errno 22] Invalid
argument

I searched for fcntl issues and saw recent thread "Python 1.5.2 on HP-UX
10.20" which discusses the *exact same error*.  Coincidence?
Unfortunately, the fixes there don't seem to apply (see my FCNTL.py
appended and /tmp is lockable, I assume).  (?)

Advice?  This is Mac OS X Server (descendant of nextstep).

Thanks.
-Ryan


# Generated by h2py from /usr/include/fcntl.h

# Included from sys/fcntl.h

# Included from sys/types.h

# Included from sys/cdefs.h
def __P(protos): return protos

def __STRING(x): return #x

def __P(protos): return ()

def __STRING(x): return "x"

def __attribute__(x): return

def __COPYRIGHT(s): return __IDSTRING(copyright,s)

def __RCSID(s): return __IDSTRING(rcsid,s)

def __SCCSID(s): return __IDSTRING(sccsid,s)

def __PROJECT_VERSION(s): return __IDSTRING(project_version,s)


# Included from machine/types.h

# Included from machine/ansi.h

# Included from machine/endian.h
def major(x): return ((int32_t)(((u_int32_t)(x) >> 8) & 0xff))

def minor(x): return ((int32_t)((x) & 0xff))

NBBY = 8
FD_SETSIZE = 256
O_RDONLY = 0x0000
O_WRONLY = 0x0001
O_RDWR = 0x0002
O_ACCMODE = 0x0003
FREAD = 0x0001
FWRITE = 0x0002
O_NONBLOCK = 0x0004
O_APPEND = 0x0008
O_SHLOCK = 0x0010
O_EXLOCK = 0x0020
O_ASYNC = 0x0040
O_FSYNC = 0x0080
O_CREAT = 0x0200
O_TRUNC = 0x0400
O_EXCL = 0x0800
FMARK = 0x1000
FDEFER = 0x2000
FHASLOCK = 0x4000
O_NOCTTY = 0
def FFLAGS(oflags): return ((oflags) + 1)

def OFLAGS(fflags): return ((fflags) - 1)

FAPPEND = O_APPEND
FASYNC = O_ASYNC
FFSYNC = O_FSYNC
FNONBLOCK = O_NONBLOCK
FNDELAY = O_NONBLOCK
O_NDELAY = O_NONBLOCK
F_DUPFD = 0
F_GETFD = 1
F_SETFD = 2
F_GETFL = 3
F_SETFL = 4
F_GETOWN = 5
F_SETOWN = 6
F_GETLK = 7
F_SETLK = 8
F_SETLKW = 9
F_PREALLOCATE = 42
F_SETSIZE = 43
F_RDADVISE = 44
F_RDAHEAD = 45
F_READBOOTSTRAP = 46
F_WRITEBOOTSTRAP = 47
FD_CLOEXEC = 1
F_RDLCK = 1
F_UNLCK = 2
F_WRLCK = 3
F_WAIT = 0x010
F_FLOCK = 0x020
F_POSIX = 0x040
F_ALLOCATECONTIG = 0x00000002
F_ALLOCATEALL = 0x00000004
F_PEOFPOSMODE = 3
LOCK_SH = 0x01
LOCK_EX = 0x02
LOCK_NB = 0x04
LOCK_UN = 0x08
O_POPUP = 0x80000000
O_NO_MFS = 0x40000000
O_ALERT = 0x20000000





More information about the Python-list mailing list